Skip to main content

Modules

Reuse common steps across multiple tests

The Module feature addresses the challenge of repetitive creation of common steps across multiple tests. By introducing Modules, users can create named groups of steps that are reusable across tests, reducing redundancy and streamlining test maintenance.

Few examples that demonstrate the diverse applications of the Module feature

  1. Common Login Module:
    • Open the application, enter credentials, and click Login.
    • Import into tests that require login to maintain consistent authentication.
  2. User Registration Module:
    • Open registration page, fill user details, submit, and validate registration.
    • Standardizes user registration across multiple tests.
  3. API Testing Module:
    • Make API calls with specified parameters, validate the response.
    • Ensures reusability and consistency in backend validation across tests.
  4. Navigation Module:
    • Navigate to the dashboard, access a specific module, go to the target page.
    • Simplifies common navigation steps across multiple tests targeting a specific page.

You can create, edit, and import modules, ensuring that changes made to a module are reflected across all tests where the module is used.

Create a Module

You can select a continuous set of steps and create a module with a unique and meaningful name.

Import a Module

You can easily import any module by navigating to the step where you want to import, click the Add step option and click Import a module. Import a module in a test

Edit a Module

Any edits made to the module are reflected across all tests where the module is used. You can add, modify, or remove a step in a module.

  1. Open Low Code Automation and select Tests from the left panel.
  2. Choose the desired test and perform the following actions:
    • Add a step: To add a new step to the module, click Edit with recorder. You can auto-execute or manually pause the recorder to add a new step to the module. For more information, refer to the Edit a test with the recorder page.
    • Edit a step: Under the Test steps tab, modify other configurations, such as URLs and timeouts, without using the recorder. For more information, refer to the Edit a test without the recorder page. Edit a step in a module
    • Delete a step: To remove a step or module, select the desired step(s) or module, then click the Delete icon at the top. Delete a step in a module
  3. Click Save changes.
Note:
  • Modules cannot be nested.
  • The Extract Value, Custom Variable and API Step variables can be used inside the module only if they are created within the module.

Variables in Modules

  • Variables used within a module have a module namespace, similar to dataset variables.
  • Variables from the module can be used outside the module in other steps within the test.
  • Variables from outside the module cannot be used inside the module during import. This is enforced during module creation.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle