Test Management
Learn how to create, configure, and manage tests in Verex, including best practices for writing effective tests.
Managing Tests in Verex
A Test in Verex defines a specific validation or scenario that the system should execute. Tests belong to a Test Suite, allowing you to organize and run multiple tests efficiently.
Creating a Test
To create a new test:
- Navigate to a Test Suite.
- Click Add Test.
- Enter a Title (e.g., "Can scroll down").
- Define the Criteria – a clear objective that Verex will evaluate to determine test success.
- Set whether the test should be Active.
- (Optional) Assign Test Credentials.
- Click Save.
Writing Effective Tests
Verex allows you to define tests using natural language. A good test should:
- Have a clear and measurable objective.
- Be specific enough for AI-based evaluation.
- Provide enough context for debugging if it fails.
Example Test Cases
Example 1: Checking Page Scroll Functionality
Title: Can scroll down
Criteria: Ensure that the user can scroll down the page without issues. If the page does not scroll, the test should fail.
Example 2: Logging into a Dashboard
Title: User can log in
Criteria: Given valid credentials, the user should be able to log into the dashboard and see the home screen.
Example 3: Searching for a Product
Title: Product search returns results
Criteria: When searching for "wireless headphones," at least one product should appear in the results.
Test Credentials
Tests can use Test Credentials, which can be:
- Set at the test suite level (applies to all tests in the suite).
- Overridden at the test level (applies to that specific test).
- Currently, credentials cannot be modified at runtime, but this may change in future updates.
For more details, visit Test Credentials.
Running Tests
Once your tests are created, you can execute them as part of a test suite. Refer to Running Tests for more details.