Smart Folders are structuring items within a Ranorex test suite that help organize modules and module groups hierarchically, similar to a folder system. Some of the key characteristics of Smart Folders:
- Unlike traditional folders, Smart Folders support advanced features such as data binding, iteration control, conditions, and error handling.
- They preserve a clean test suite structure, keeping test cases as the primary containers, while delegating organization and logic to Smart Folders. This enhances readability and maintainability.
How to use Smart Folders in Ranorex
Smart Folders are essential for organizing and optimizing test execution in Ranorex. You can use them as follows:
- Insert Smart Folders beneath test cases to group related modules or maintain certain logic.
- Binding Data - Smart Folders can be bound to external data sources. Review the article Data Driven Testing.
- Define the number of the test scenario to be executed within the smart folder.
- Apply conditions to Smart Folders so they only run when specific criteria are met.
- Include or exclude Smart Folders in selected runs through Run Configurations.
- Smart Folders serve as handy containers for setup and teardown operations. This avoids redundant code and centralizes common routines. Read more about Test Suite Structure.
Best practices for Smart Folders
To get the most out of Smart Folders in your Ranorex test suite, it is important to consider a few best practices:
- Keep hierarchy flat: Avoid deep nesting, limit your overall structure to about 5–6 levels to maintain clarity.
- Test Cases stay as primary containers: Use Smart Folders only for organization and logic, not as replacements for Test Cases.
- Use conditions wisely: Control when a Smart Folder executes to minimize unnecessary runs and streamline logic paths.
- Reduce duplication: Place common setup/teardown logic in Smart Folders rather than repeating across test cases.