Best Practices | Bondar Academy
Course: AI-based testing with testRigor
Module: Introduction
Instructor: Artem Bondar
Lesson Summary
In this lesson, we review the best practices for test triggers to ensure effective test automation. Here are the key points to remember: Best Practices Overview Make Tests Repeatable: Avoid copying and pasting steps. Create reusable rules for common actions. End with Validation: Each test should conclude with a validation step. Follow the Arrange-Act-Assert format: Arrange: Set up preconditions. Act: Perform the action. Assert: Validate the outcome. Readable Tests: Use descriptive names for rules and variables. Interact with elements as a user would, using visible text instead of IDs. User Perspective: Automate scenarios based on how users interact with the application, prioritizing visible elements. No Duplicated Code: Avoid copy-pasting. Create reusable rules instead. Independent Tests: Ensure tests can run in parallel without dependencies on each other. Test Data Management: Store test data in variables instead of hardcoding them in test steps. One Test Case per Flow: Focus on a single user flow per test case to maintain clarity and manageability. Utilize Built-in Functionality: Use Test Rigor's built-in features for stability and performance, such as email testing and smart login methods. Make sure to bookmark the Test Trigger Documentation and refer to it regularly to reinforce these practices in your development process.