# Setting Test Execution Priority

Testery enables you to set a Test Execution Priority to optimize how your test runs are queued up. When there are multiple test runs in a queued state, the test runs with the lowest numbered priority will be executed first. If you would like multiple test runs to execute at the same time, make sure that you have also [set the number of parallel tests](https://docs.testery.io/get-to-know-testery/setting-the-number-of-parallel-tests) to a number lower than your account limit.

#### Setting Default Priority for a Pipeline Stage

To set the priority for different Pipeline Stages, navigate to `Environments` and click `Pipeline Stages`. <br>

![](https://4041872331-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MK0kYmwONk3GqQ8OhVA%2Fuploads%2Fgit-blob-04c61b364c9373c0295ccf40917972ebf38e1121%2Fimage.png?alt=media)

Here you can select a Test Execution Priority for the Pipeline Stage. When two test runs are queued up, the test run with the lowest numbered Test Execution Priority will be executed first.

#### Setting Priority for an Ad Hoc Test Run

Test Execution Priority may also be set for an individual ad hoc test run. To do this, expand `Show Advanced Options` and set the Priority for the test run.

![](https://4041872331-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MK0kYmwONk3GqQ8OhVA%2Fuploads%2Fgit-blob-5db938084c921c99290a68e0f42f8b33c156e87b%2Fimage.png?alt=media)

#### Setting Priority for a Scheduled Test Run

Test Execution Priority can be set for [Schedules](https://docs.testery.io/get-to-know-testery/schedules) as well. To do this, expand `Show Advanced Options` when creating or editing a schedule.

![](https://4041872331-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MK0kYmwONk3GqQ8OhVA%2Fuploads%2Fgit-blob-77616b20b0f6f35317648514c0561fd03bfa2409%2Fimage.png?alt=media)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.testery.io/get-to-know-testery/setting-test-execution-priority.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
