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

# Run Settings

> Configure all aspects of test execution including retries, delays, timeouts, parallelism, setup/teardown, environment variables, and notifications.

<Frame>
  <img src="https://mintcdn.com/stablyai/WSnPb8SMIsluP_7v/images/test-execution/run-configuration/suite-settings.png?fit=max&auto=format&n=WSnPb8SMIsluP_7v&q=85&s=bdfd8eb641a3d8a82b4e507d3cf13196" alt="Run settings" width="1464" height="1286" data-path="images/test-execution/run-configuration/suite-settings.png" />
</Frame>

Configure these settings to improve the accuracy and reliability of your tests. Each setting can be tailored to match your application's behavior and testing requirements.

<AccordionGroup>
  <Accordion title="Execution Options">
    ### Individual Test Retries

    * **Function**: Number of times a test is run again after a failure
    * **Default Value**: 0
    * **Purpose**: Automatically retry failed tests to handle flaky failures

    ### Action Delay

    * **Function**: Adds a delay to each Playwright operation
    * **Default Value**: 750 ms
    * **Purpose**: Slow down test execution to handle timing issues or simulate real user behavior

    ### Test Timeout

    * **Function**: Length of time before each test times out
    * **Default Value**: 8 minutes
    * **Purpose**: Prevent tests from hanging indefinitely and ensure timely test completion

    <Frame>
      <img src="https://mintcdn.com/stablyai/WSnPb8SMIsluP_7v/images/test-execution/run-configuration/execution-options.png?fit=max&auto=format&n=WSnPb8SMIsluP_7v&q=85&s=0cfc6f27c4006482187277ce2f02a9d1" alt="Execution options" width="1600" height="466" data-path="images/test-execution/run-configuration/execution-options.png" />
    </Frame>
  </Accordion>

  <Accordion title="Parallelism Settings">
    ### Parallelism Options

    * **Auto (RECOMMENDED)**: Enables high parallelism with smart concurrency detection. This allows hundreds and thousands of parallel tests to run in parallel. Reach out if you need more workers.
    * **Manual**: Choose a specific number of parallel tests

    <Frame>
      <img src="https://mintcdn.com/stablyai/WSnPb8SMIsluP_7v/images/test-execution/run-configuration/parallelism-settings.png?fit=max&auto=format&n=WSnPb8SMIsluP_7v&q=85&s=fe9e1e56df9894931cc2a167f27aed29" alt="Parallelism settings" width="1596" height="364" data-path="images/test-execution/run-configuration/parallelism-settings.png" />
    </Frame>

    <Warning>
      Ensure your tests are not interdependent before running them in parallel!
    </Warning>
  </Accordion>

  <Accordion title="Setup and Teardown">
    ### Setup

    * **Function**: Tests that run before the main test suite execution
    * **Purpose**: Initialize test environment, create test data, or set up prerequisites

    ### Teardown

    * **Function**: Tests that run after the main test suite execution
    * **Purpose**: Clean up test environment, remove test data, or perform cleanup tasks

    ### Before Each

    * **Function**: Tests that run before each individual test in the suite
    * **Purpose**: Set up conditions specific to each test case

    ### After Each

    * **Function**: Tests that run after each individual test in the suite
    * **Purpose**: Clean up after each test case

    <Frame>
      <img src="https://mintcdn.com/stablyai/gQcjGEzeMU3Scby6/images/Screenshotfrom2025-07-2118-51-04.png?fit=max&auto=format&n=gQcjGEzeMU3Scby6&q=85&s=b17416971b9e0360f217192067ec9cb1" alt="Screenshot from 2025-07-21 18-51-04.png" width="833" height="165" data-path="images/Screenshotfrom2025-07-2118-51-04.png" />
    </Frame>
  </Accordion>

  <Accordion title="Environment Variables">
    ### Environment

    * Set the environment to use the [environment variables](/core-configuration/test-data#environment-variables) from the selected environment

    ### Custom Variables

    * **Function**: Add custom environment variables specific to this suite
    * **Purpose**: Override existing environment variables in this suite with new values

    <Frame>
      <img src="https://mintcdn.com/stablyai/WSnPb8SMIsluP_7v/images/test-execution/run-configuration/env-vars.png?fit=max&auto=format&n=WSnPb8SMIsluP_7v&q=85&s=55eb1aee239162b20e0778c6cbcc9c5a" alt="Environment variables" width="1774" height="670" data-path="images/test-execution/run-configuration/env-vars.png" />
    </Frame>
  </Accordion>

  <Accordion title="Notifications">
    ### Notification Settings

    * **Options**:
      * **Use project level settings**: Use the project notification settings
      * **Use suite specific settings**: Override the notification settings for this suite (RECOMMENDED)
      * **Disable notifications**: No notifications will be sent
    * **Purpose**: Configure how test results are communicated to the team

    ### Notifications

    * **Purpose**: Send Slack and email notifications for test results

    <Frame>
      <img src="https://mintcdn.com/stablyai/WSnPb8SMIsluP_7v/images/test-execution/run-configuration/suite-notifications.png?fit=max&auto=format&n=WSnPb8SMIsluP_7v&q=85&s=72b7966e18b1c372683e277a85d00e9d" alt="Notifications" width="2058" height="324" data-path="images/test-execution/run-configuration/suite-notifications.png" />
    </Frame>
  </Accordion>
</AccordionGroup>
