Modules
Reuse common step sequences across multiple tests.
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
- Common Login Module:
- Open the application, enter credentials, and click Login.
- Import into tests that require login to maintain consistent authentication.
- User Registration Module:
- Open registration page, fill user details, submit, and validate registration.
- Standardizes user registration across multiple tests.
- API Testing Module:
- Make API calls with specified parameters, validate the response.
- Ensures reusability and consistency in backend validation across tests.
- 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.
- If the steps within a module were originally recorded on a different browser tab, Low Code Automation will execute those module steps on the currently focused tab that was active just before module execution starts.
- To ensure the steps run on the intended tab, add a navigation or validation step to bring the expected tab into focus before the module is executed. 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.
- Open Low Code Automation and select Tests from the left panel.
- 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.
- Edit a step: Under the Test steps tab, modify other configurations, such as URLs and timeouts, without using the recorder.
- Delete a step: To remove a step or module, select the desired step(s) or module, then click the Delete icon at the top.
- Click Save changes.
- 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. Ungroup a Module Ungrouping a module breaks down grouped steps into independent steps. This feature is helpful when reverting a module without deleting it and re-recording individual steps.
- Ungroup a module with the recorder: While recording, hover over the module and click the Ungroup icon.
- Ungroup a module without the recorder: In the Test steps section, hover over the module and click the Ungroup icon on the right.
- Ungrouping a module converts all its variables into test variables. If the module’s variables were overridden, the new test variables keeps the overridden values.
- Ungrouping a module does not impact other instances where the module is used, whether in the same test or in different tests.
Was this page helpful?