Tips & Tricks – Reports by Label and Passing Parameters by Hooks
Blog post from testRigor
In a session led by Artem Golubev, participants learned how to efficiently organize test reports within a test suite using labels and how to implement "before" and "after" test suite hooks to manage test parameters. Golubev demonstrated the process of adding labels to test cases, allowing for dynamic report breakdowns and better visibility into test results, including those segregated by browsers. The session also covered the use of hooks to execute scripts that set up and clean up test data before and after running tests, which is particularly useful in parallel test executions. This approach ensures that parameters needed for tests are set up dynamically, even if they are not specified in the test data. Golubev also addressed a question about using labels versus folder structures for organizing tests, explaining the versatility of labels and hinting at the potential future inclusion of folder structures to enhance test management.