> For the complete documentation index, see [llms.txt](https://docs.mozark.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mozark.ai/test-context-manager-documentation/test-runs/creating-a-test-run.md).

# Creating a test run

Create a test run from a plan or as an ad-hoc run.

## Creating a test run

Create a test run when you are ready to execute test cases.

### Before you start

Decide whether you want a structured run from a test plan or a one-off ad-hoc run.

Have the target environment and device configuration ready.

You can create a test run from a test plan or as an ad-hoc run.

<figure><img src="https://95054152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIgQEgtjvk4zIWyVkgQ5o%2Fuploads%2F1P48XM1GxNlu4LLAGx7U%2FScreenshot%202026-07-01%20at%202.33.48%E2%80%AFPM.png?alt=media&amp;token=1f6b01aa-f05b-4772-a012-0e75245f615e" alt=""><figcaption></figcaption></figure>

### From a test plan

1. Open the test plan you want to execute.
2. Click **Create Test Run**.
3. Review the pre-populated test cases and configuration.
4. Confirm or adjust the name, environment, and device configuration.
5. Click **Create**.

Runs created from a plan inherit the plan's test cases and configuration.

<figure><img src="https://95054152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIgQEgtjvk4zIWyVkgQ5o%2Fuploads%2FVsrqTmK5hUHOOMtIvalB%2FScreenshot%202026-07-01%20at%202.34.15%E2%80%AFPM.png?alt=media&amp;token=21264216-062e-41dc-a5c0-d93e9cf70d76" alt=""><figcaption></figcaption></figure>

### Ad-hoc test run

1. Open **Test Runs**.
2. Click **Create Test Run**.
3. Choose `Ad-hoc` as the run type.
4. Add test cases manually using search.
5. Set the configuration.
6. Click **Create**.

### Expected result

The new run opens with the selected test cases and saved configuration.

It is now ready for execution.

### Next step

Continue with [Executing a test case](/test-context-manager-documentation/test-runs/creating-a-test-run/executing-a-test-case.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mozark.ai/test-context-manager-documentation/test-runs/creating-a-test-run.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
