---
sourceDocument: Xanadu Build or modify applications
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/application-development

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Mutually exclusive tests

# Mutually exclusive tests {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Prevent conflicting tests from running in parallel by marking them as mutually exclusive. For example, when the system identifies tests that modify the same record, the system makes these tests mutually exclusive. You can also manually mark tests as mutually exclusive.

The system marks tests as mutually exclusive when there is a potential resource conflict.
When the system can't detect resource conflicts automatically, you can create your own mutual
exclusion rules that can prevent conflicting tests from running in parallel. For example, if a
test changes a sys_properties record, the record shows up under Records Modified of that test. If the validation path of another test depends on the
same sys_properties record without any change, that test fails. This can occur if the previous
test runs at the same time.

You can view mutually exclusive tests on the Mutually Exclusive Tests related list in the
test form. This related list shows all tests that don't run in parallel with the current test
and the reason. The same test might appear more than once in the list if there are multiple
reasons.

## Mutually exclusive tests reasons {#mutual-exclusion-rule__section_sr2_4ts_thb}

Tests are marked mutually exclusive for the following reasons.

* Two or more tests modify the same record.
* A test that runs in parallel with itself.
* You can create your own mutual exclusion rules when the system can't detect resource conflicts automatically.
{#mutual-exclusion-rule__ul_lxy_dwg_phb}

## Mark tests as mutually exclusive {#mutual-exclusion-rule__section_egk_ztm_thb}

You can mark tests as mutually exclusive using any of the following methods.

Mutually Exclusive Tests tab
:   Select a test from the Tests list and navigate to Mutually Exclusive TestsAdd Mutual Exclusion to make the selected test mutually exclusive with another test.

Tests list
:   Select one or more tests from the Tests list and choose Add mutually exclusive test from the Action on selected rows context menu. Enter one
    test in the Add mutually exclusive test dialog box to make the selected tests mutually
    exclusive with the current test.

Parallel Test Runs tab
:   When two or more tests run in parallel, navigate to Test ResultsParallel Test Runs. Select one or more tests and choose Add mutually exclusive test from the Action on selected rows context menu to mark the selected
    tests as mutually exclusive.  
    Note:  
    The Parallel Test Runs tab is visible only if the test runs in parallel with one or more tests.

*[\>]: and then


