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.

Image

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

Image
Image
Image

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

Image

Click Start recording to begin creating a manual test case.

Image

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

Image

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

Image
Image

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

Image
Image

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

Image

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.

Image
Image

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

Image
Image

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).

Image
Image
Image

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

Image

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.

Image
Image
Image
Image
Image
Image

Using Test Suites and Test Plans

Go to the Test suite section to view or manage your existing test suite environments.

Image

Open the test plan area. Click New test plan.

Image
Image

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

Image

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

Image

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

Image

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

Image
Image

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

Image

Click Create to finalize your test plan.

Image

See confirmation that your test plan was created.

Image

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.

Supporting Videoarrow-up-right

Last updated