Reusable Rules | Bondar Academy
Course: AI-based testing with testRigor
Module: Reusability and Optimization
Instructor: Artem Bondar
Lesson Summary
In this lesson, we explore reusable rules in Test Trigger, which help eliminate duplication in test scripts. Here are the key points discussed: Understanding Reusable Rules Reusable rules allow you to create a single command that can replace repetitive steps across multiple test cases. This is particularly useful when: The structure of your application changes (e.g., renaming or relocating pages). You want to enhance the readability of your test cases. Creating a Reusable Rule To create a reusable rule: Navigate to the Reusable Rules section. Click on New Rule and name your rule (e.g., Navigate to Form Layouts page ). Add relevant labels for easier searching. Input the steps (e.g., click Forms , click Form Layouts ) and save the rule. Using Reusable Rules in Test Cases Once created, you can use the reusable rule in your test cases: Type the command (e.g., navigate to ) and select the rule from the suggestions. This simplifies the test case and enhances readability. Updating Test Cases If changes are made to the reusable rule, you can use the Save and Find and Replace feature to update all related test cases simultaneously. Benefits of Reusable Rules Overall, reusable rules: Optimize code and improve reusability. Simplify maintenance by allowing changes in one place. Enhance the clarity of test cases. To quickly navigate to a reusable rule from a test case, use Command + click on Mac or Control + click on Windows. In summary, reusable rules are a powerful feature in Test Trigger that streamline the testing process and improve overall efficiency.