---
title: "Writing Tests"
canonical: "https://docs.getxray.app/space/XRAYCLOUD/44565047/Writing%20Tests"
format: markdown
---
To investigate, evaluate, and ascertain the completeness and quality of a project, developers perform quality assurance Tests. Testing can be conducted on individual components or units using [Tests](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565156), or on a group of Tests using [Test Sets](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565163). The goal is to verify if specific target requirements are met, even under predefined conditions. This process helps prevent and uncover [Defects](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/1027735560) that could negatively impact the overall usability of the final product.

A full Test specification can be created using a Test Work item, where you specify the [steps](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565316) and the expected results. Sometimes, it is preferable to abstract the initial conditions instead of writing them directly as the first Test steps, allowing you to reuse these conditions in different Tests. In such cases, you can create one or more [Precondition](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565159) Work items and associate them with a Test.

Although Tests can be edited at any time, the immutability of Tests is ensured whenever they are scheduled for execution in a [Test Execution](https://getxraydocs.atlassian.net/wiki/display/XRAYCLOUD/Test+Execution).

# Related

- [Parameterized Tests](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44566351)
- [Modular Tests](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44578265)
- [Test Case Designer](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565543)
- [Test Case Versioning](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565571)

# Learn More

- [Best Practices for Writing Great Test Cases](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44579292)
- [Tips for Organizing Tests](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/659259394)


<details>
<summary>Support/Troubleshooting</summary>

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).
</details>