---
title: "Test"
canonical: "https://docs.getxray.app/space/XRAYCLOUD/44565156/Test"
format: markdown
---
> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> > Macro (toc)

# Introduction

In Software Engineering, a Test is a sequence of steps coupled with conditions or variables, Test inputs, and an expected result. It is intended to establish a piece of the system's quality, performance, or reliability, i.e., the Test target. Usually, every [Requirement](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44566527) or objective the Test target is expected to achieve needs at least one Test. The success of the Test is determined by comparing predicted and actual results. In Xray, a Test is represented by a Test Work Item.

## Test Types

There are four default Test Types:

- **Cucumber**: of the [Gherkin](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565320) kind.
- **Generic**: of the [Unstructured](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565327) kind.
- **Manual**: of the [Steps](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565316) kind.
- Exploratory.

> ℹ️ You may add other values for the Test Type in Xray's [Global](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565853) or [Space settings](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44567037).

# Operations

## Creating a Test Work Item

> Macro (rw-ui-steps-macro)
> 
> > Macro (rw-step)
> 
> On your Jira Cloud instance, click the *Create* button (Figure 1 - 1). 
> 
> A modal will open (Figure 1).
> 
> ![Figure 1 - Create](media://872a8e12-d811-4a18-9960-afee643b0fc8)
> 
> > Macro (rw-step)
> 
> Select the *Space* (mandatory; Figure 1 - 2). 
> 
> > Macro (rw-step)
> 
> On the *Space Type*, select *Test *(mandatory; Figure 1 - 3).
> 
> > Macro (rw-step)
> 
> Type a *Summary* (mandatory; Figure 1 - 4). 
> 
> Complete all remaining fields if necessary.
> 
> > Macro (rw-step)
> 
> Once you're done, click the *Create* button (Figure 1 - 6). 
> 
> > ⚠️ If you select the *Create another* option (Figure 1 - 5), a new **modal** appears. This new Work Item will be automatically pre-populated with your previous Test Work Item details while leaving the *Summary* field blank.

## Editing a Test Work Item

> ℹ️ <span style="color: #172b4d">Xray Test Work Item sections support inline editing similar to Jira native and custom fields inline editing. This prevents full-page reloads when modifying fields.</span>
> ℹ️ 
> ℹ️ You can only inline-edit Xray fields if you have permission to edit the Test Work Item.

### Inline Edit Fields

> Macro (rw-ui-steps-macro)
> 
> > Macro (rw-step)
> 
> Go to the Test Work Item you want to edit (Figure 2).
> 
> > Macro (rw-step)
> 
> ![Figure 2 - Edit](media://8841f1fb-261e-4426-b2cd-7182ff474663)
> 
> > Macro (rw-step)
> 
> To inline edit a field, hover over the field view area and click it.
> 
> The following Test fields support inline editing:
> 
> - **Type**: the Test Work Item Type (Figure 2 - 1).
> - **Definition:** the automated generic Test definition (only visible for Generic Tests).

#### <span style="color: #172b4d">Inline-editing Automated Test Work Items - Cucumber Test</span>

- <span style="color: #172b4d">Hover over the </span><span style="color: #172b4d">*Test Type*</span><span style="color: #172b4d">, click it, and change it to another available Type (Figure 2 - 1).</span>
- <span style="color: #172b4d">Hover over the </span><span style="color: #172b4d">*Scenario*</span><span style="color: #172b4d"> field, click it, and edit its contents (Figure 2 - 2).</span>

#### <span style="color: #172b4d">Inline-editing Automated Test Work Items - Generic Test</span>

- <span style="color: #172b4d">Hover over the </span><span style="color: #172b4d">*Test Type*</span><span style="color: #172b4d">, click it, and change it to another available Type (Figure 3 - 1).</span>
- <span style="color: #172b4d">Hover over the </span><span style="color: #172b4d">*Definition*</span><span style="color: #172b4d"> field, click it, and edit its contents (Figure 3 - 2).</span>

![Figure 3 - Generic](media://996ad2e7-97f9-424b-9ade-68688ea4a3a3)

###   
Manual Test Steps

To edit the steps of a Manual Test, please check [this](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565316) page.

### Changing the Type of a Test

> Macro (rw-ui-steps-macro)
> 
> > Macro (rw-step)
> 
> When the Type of a Test is changed by clicking the desired option from the menu (Figure 3 - 1), **the details of the previous information along with the associated **<u>[Preconditions](https://docs.getxray.app/space/XRAYCLOUD/44565159)</u>** will be lost.**
> 
> > Macro (rw-step)
> 
> When changing the Test Type, you will see a warning message (Figure 4). 
> 
> Click Confirm to proceed (Figure 4 - 1).
> 
> ![Figure 4 - Confirm.png](media://b7df5608-c096-4817-bc4d-f396db38067a)
> 
> > ❌ This operation is permanent and not reversible.

## Cloning a Test

Cloning a Test Work Item creates a new Test with all the information of the cloned Test, except its executions. Therefore, the cloned Work Item will not be associated with any [Test Execution](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565117) Work Item.

> Macro (rw-ui-steps-macro)
> 
> > Macro (rw-step)
> 
> Go to the Test Work Item you want to clone.
> 
> > Macro (rw-step)
> 
> Click the ellipsis icon (Figure 5 - 1) and then *Clone* (Figure 5 - 2).
> 
> ![Figure 5 - Clone](media://fb125449-fa61-4761-81c0-8b918c7192e9)
> 
> > Macro (rw-step)
> 
> A modal will open for you to confirm the cloning of the Test Work Item (Figure 6). You can use the boxes to include Links/Clone sprint value (Figure 6 - 1).
> 
> > Macro (rw-step)
> 
> Click *Clone* to proceed (Figure 6 - 2).
> 
> ![Figure 6 - Clone](media://00de5e70-acfe-46df-a4a7-d2cf17bd787a)
> 
> > Macro (rw-step)
> 
> After the Work Item is created, you will see a success message with the cloned Work Item information and a link for you to open the Work Item (Figure 7 - 1).
> 
> ![Figure 7 - Success](media://3374aa99-34f6-4351-b2f0-3dd6dc3c0bf8)
> 
> > ℹ️ On some occasions, the cloned Work Item page may open before the Xray information is cloned and, as a result, the new Test will appear empty. When this happens, you will see a warning message with a *Refresh issue* button (Figure 8 - 1). By clicking that button, the Issue page will be reloaded, and the cloned information will be visible.
> > ℹ️ 
> > ℹ️ ![Figure 8 - Refresh](media://2e959747-ea89-42f8-8c07-6f65a6ad12f8)

## Moving a Test Work Item

> Macro (rw-ui-steps-macro)
> 
> > Macro (rw-step)
> 
> Go to the Test Work Item you want to move.
> 
> > Macro (rw-step)
> 
> Click the ellipsis icon (Figure 9 - 1) and then *Move* (Figure 9 - 3).
> 
> ![Figure 9 - Moving](media://d98a25a5-5bc8-4054-9ef9-bde4cf2a43cc)
> 
> > Macro (rw-step)
> 
> A new screen (Figure 10) will open for you to set these details: destination Space and Work Item type (Figure 10 - 1), and for you to confirm these changes (Figure 10 - 2).
> 
> ![Figure 10 - Moving](media://b912cea8-ddc8-458a-b5b3-dd2caa87b3b3)

## Xray History

Any changes to the Test data are recorded in the Xray History section. You can see them on the Work Item by scrolling down and clicking the *Xray History* option (Figure 11).

![Figure 11 - History](media://3e7ac252-ee9a-4a6c-a573-d5924922a1c0)


These updates include:

- Changing the Test Type.
- Changing the Test Definition or Steps.
- Linking the Test with other entities (Preconditions, [Test Plans](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565153), [Test Sets](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565163), etc.).
- Moving the Test between folders on the [Test Repository](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565166).
- Attachment addition.
- Test Execution.

> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> If you have questions or technical issues, please [contact the Support team via the Customer Portal (Jira service management)](https://jira.getxray.app/servicedesk/customer/portal/2/user/login?destination=portal%2F2%2Fcreate%2F28) or [send us a message using the in-app chat](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44577312).