QAbyAI logo
Features

Modules

Create reusable test modules to share common workflows across test cases

Modules allow you to create reusable test sequences that can be shared across multiple test cases. This reduces duplication and makes your test suite easier to maintain.

What are Modules?

A module is a test case that can be executed as a step within other test cases. Common use cases include:

  • Login flows - Reuse the same login sequence across all tests that require authentication
  • Setup procedures - Common navigation or data setup steps
  • Shared validations - Standard checks that apply to multiple scenarios

Using Modules

To use a module in your test case, add a Module step and select the module test case to execute.

Configuration:

  • moduleId (required): The ID of the module test case to execute

When the module step runs, all steps from the referenced test case are executed in sequence before continuing with the rest of your test.

Creating a Module

Any test case can be used as a module. To create a reusable module:

  1. Create a new test case with the common steps you want to reuse
  2. Mark it as a module in the test case settings
  3. Reference it from other test cases using the Module step

Best Practices

  • Keep modules focused - Each module should do one thing well
  • Use descriptive names - Make it clear what the module does
  • Avoid deep nesting - Modules calling modules can make debugging harder
  • Share variables - Modules can set variables that subsequent steps can use

Benefits

  • DRY (Don't Repeat Yourself) - Write common flows once
  • Easier maintenance - Update a module and all tests using it are updated
  • Consistent behavior - Ensure common flows work the same everywhere
  • Faster test creation - Build new tests from existing building blocks