Modules Versioning and Enhancements
This guide provides step-by-step instructions on how to enhance the usability of the module section. By implementing module versioning and improving user interaction, users can efficiently manage modules, track changes, and reuse them across various test cases.
Step 1: Viewing and Creating Modules
- Navigate to the Modules section.
- View the list of available modules or click Create a New Module to add one.
- The updated interface allows for improved module visibility and usability.
Step 2: Accessing Module Details
- Click on a module to view its complete details, including:
- Descriptions
- Tags
- Version history
- Utilize Version History to track changes and reuse module updates in multiple test cases.

Step 3: Comparing and Reverting Module Versions
- Compare different versions of a module.
- Review modifications made between versions.
- Revert to a previous version if required.

Step 4: Creating a Module from KNI Agent
- If test steps are already present:
- Pause the test.
- Select the relevant test steps.
- Click Create Module to extract them into a reusable module.
- Modules now support variables, parameters, and secrets.

Step 5: Defining Module Properties
- Click on the module and enter details such as:
- Module Name (e.g., Sample Module)
- Description and Tags
- Click Create Module to save the test step as a reusable module with a specific version.

Step 6: Editing and Importing Modules
- Click on an existing module to modify its steps or properties.
- To import a module into the web agent:
- Click the slash icon
- Select Add Module
- Choose from the list of created modules

Step 7: Executing Test Steps
- Click Add in Queue to execute test steps.
- The executed test steps will be displayed in the results section.

Step 8: Updating Module Versions
- If changes are made to an existing module, a new version will be created automatically.
- For example, adding a test step (e.g., clicking on login) will prompt an updated version (e.g., from 1.1 to 1.2).

Step 9: Version Selection Flexibility
- Users can choose to either:
- Accept the new version.
- Continue using the current version.
- The newly updated version will reflect the added test step.
By implementing these enhancements, module management is now more efficient, flexible, and user-friendly. Users can seamlessly create, modify, and reuse test modules to streamline automation testing.
