> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qa.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Start Path

> Make a web test begin on a specific page instead of the environment URL or where a dependency ended

A start path is a relative URL, such as `/login`, that makes a web test open a specific page when it starts. Use it when the page a test is about is not where the test would otherwise begin.

The path is relative to the application's base URL, which is the URL of the environment the test runs on. For example, with the environment URL `https://myapp.com` and the start path `/login`, the test begins at `https://myapp.com/login`.

## Where a test starts

Without a start path, a web test starts at one of these pages:

* **No Resume From dependency:** the URL of the environment the test runs on.
* **Resume From dependency:** the page where the dependency ended, with its login session and other browser state. This applies when the dependency ran in the same environment. Otherwise the test starts at the environment URL.

With a start path, the test always opens the start path first. A [Resume From dependency](https://docs.qa.tech/core-concepts/dependencies.md#resume-from) still provides its cookies, local storage, and session storage, so the test stays logged in, but it opens the start path instead of the dependency's last page.

## When to use a start path

* The test covers one page that you can open directly, such as a settings page or a product page, and navigating there from the home page adds nothing to the test.
* Several tests share a Resume From dependency, such as a login test, and each one checks a different page.

Leave the start path empty when a test continues a flow from its dependency. Setting one moves the test away from the page where the dependency ended.

## Set a start path

**1. Open the test**

Open the test and select the **Settings** tab

**2. Enter the path**

Under **Start path**, enter a path that starts with `/`, for example
`/settings/profile`. Do not enter a full URL.

**3. Save the test**

Save the test

The start path is saved with the test revision, so it appears in the test's [revision history](https://docs.qa.tech/test-features/revision-history.md).

## How the start URL is built

QA.tech combines the start path with the environment URL of the environment the test runs on, so the same test works on every environment of the application:

| Environment URL | Start path | Test begins at |
| - | - | - |
| `https://myapp.com` | `/login` | `https://myapp.com/login` |
| `https://staging.myapp.com` | `/login` | `https://staging.myapp.com/login` |
| `https://store.com/se` | `/login` | `https://store.com/login` |
| `https://myapp.com/?key=abc` | `/login?tab=2#form` | `https://myapp.com/login?key=abc&tab=2#form` |

* The start path replaces any path in the environment URL. If your environment URL includes a path, such as a market prefix like `/se`, include it in the start path: `/se/login`.
* Query parameters from both are kept. When both set the same parameter, the value from the environment URL is used.
* A `#fragment` in the start path replaces any fragment in the environment URL.

## Test a different domain

A start path stays on the domain of the environment URL. To start a test on another domain, create an application for that domain in **Settings → Applications & Envs** and run the test on it. See [Applications & Environments](https://docs.qa.tech/core-concepts/applications-and-environments.md). To cover a flow that moves between two applications, see [Cross-Application Tests](https://docs.qa.tech/test-features/cross-application-tests.md).

The agent can still follow links and redirects to other domains while the test runs. See [Dynamic Navigation](https://docs.qa.tech/test-features/dynamic-navigation.md).

## Agent Rules with a URL path filter

An Agent Rule with a URL path filter loads only for tests whose start path contains the filter text. A test without a start path does not load those rules. See [Rules](https://docs.qa.tech/core-concepts/knowledge.md#rules).

## Limitations

* Start paths apply to web application tests. Mobile app tests start in the app, and [API tests](https://docs.qa.tech/best-practices/creating-api-tests.md) use the environment base URL.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.