Reusable Components
ContextQA Walkthrough: Using Reusable Components
Reusable components in ContextQA help you build test cases faster, maintain consistency, and scale your automation efforts. This guide walks you through how to use prerequisites, step groups, test data profiles, environments, and test suites—matching each step to what’s shown in the ContextQA interface.
Introduction
Reusable content allows you to confidently build and update your test automation. You’ll reduce duplication, avoid outdated tests, and keep everything aligned across your team. Here’s how to get started with reusable components in ContextQA.
Open the test development section.

Review your basic login test case. Notice the steps: navigate to the URL, enter the username, enter the password, then click on Login.



Use this login test case as a prerequisite for other tests. Click the plus sign (+) to add a new test case.

Click Start recording to begin creating a manual test case.

Enter a name like Swag Labs Test case for your new test case.

In the Prerequisite section, click the dropdown and search for your login test case. Select it to add as a prerequisite.


Enter the step details (e.g., AI Agent) for your test, then click the three dots for editing actions.


Add the required step and click Create to save your changes.

Execute the test. The system first runs the login prerequisite, then proceeds to your new test steps, keeping your testing flow modular.
To add a step group, select your test case and click Add step. Then, use the left dropdown and pick Step group.


Search for your prepared step group, select it, and click Create.


Add a test data profile. Click the corresponding button, choose For loop data profile, and select your test data profile (such as user account details).



Pick data for users 1 to 4, then click Create. This lets you reuse profiles across tests.

To reuse environment variables, go to the test case editor and click the edit button. Use the environment selection for items like username and password, then click Update for each field.






Using Test Suites and Test Plans
Go to the Test suite section to view or manage your existing test suite environments.

Open the test plan area. Click New test plan.


Name your test plan (e.g., environment) and click Next.

Click Add Test suite, search for your suite, and drag it into your plan.

Add a machine or device—such as naming it Chrome.

Choose the web browser (like Chromium), then click Create.


If needed, set parallel execution to control how many times the test runs in parallel.

Click Create to finalize your test plan.

See confirmation that your test plan was created.

Conclusion
With ContextQA’s reusable components—prerequisites, step groups, test data profiles, environments, and test suites—you’ll automate testing smarter and faster. Use these features to keep your QA process robust and efficient.
Last updated