> For the complete documentation index, see [llms.txt](https://docs.qapilot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.qapilot.io/detailed-documentation/test-plan-executions/test-rule.md).

# Test Rule

Test Rules feature facilitates the appending/associating of relevant Test Data to the Test Cases under the respective Test Suite. This is the key step before execution of Test cases to check the extent of functionality concerning the app. This specific procedure will determine the validity of Test data for the automation testing process.

***

## Prerequisites

Ensure that you create a [Test Suite](/detailed-documentation/test-plan-executions/test-suite.md) in the Same [Project ](/detailed-documentation/projects.md)before you can manage Test Rules in **QApilot**.

***

## Listing Test Rules

On the Test Suites List page, you will have the below options:

1. Navigate to **Test Rules** in the left-side navbar.
2. You can easily manage test suites on the **Test Rules** list page by **filtering**, or **searching**. The page displays test rules with **titles**, **types**, **creation dates**, **creators**, and **statuses**.
3. Click **Create Test Rule** in the top right corner of the screen.

<figure><img src="/files/uzSkl5FOzOirHUzTBKSK" alt=""><figcaption></figcaption></figure>

***

## Creating Test Rule

1. On the Test Rule Home Page, click on the Create Test Rule as shown below:

<figure><img src="/files/1FdXZ5AWglvGuytcBDyS" alt=""><figcaption></figcaption></figure>

2. A dialog box appears as shown below. Enter the Title in the placeholder text box.
3. Select Operating systems(OS). Click the Save button.

<figure><img src="/files/Yscw5LfmCK1WQ3BnS9eC" alt=""><figcaption></figcaption></figure>

4. The New Test Rule is created and it will be in the Active State.

<figure><img src="/files/nUY3YhhyBqms7ydNds56" alt=""><figcaption></figcaption></figure>

5. Click the View Details option. The below screen is shown.

<figure><img src="/files/wI72uh4HijlBp0sRNOmZ" alt=""><figcaption></figcaption></figure>

6. Click the Import Test Suites option. Add Test Suite from the available Test Suite List.
7. Like test suites, Once the test rule is created, click on the "Run" button to start the [execution](/detailed-documentation/test-plan-executions.md).
8. The system will execute each test suite within the rule sequentially.
9. It allows you to perform various actions on the Test Rule which are: View Details, Edit, Disable, and Delete.

<figure><img src="/files/629BsyWeluXCmIrhxFjl" alt=""><figcaption></figcaption></figure>

10. If you delete the Test Rule, you will lose all test suites associated with it.
