Essentials
Test Editor
Helps you to record test like you interact with your application normally
Overview
The Supatest Test Editor provides a powerful interface for creating and modifying test steps with precise control and flexibility.
Editor Interface
Step Management
-
Step Creation
- Add steps via ”+” button
- Select from available step types
- Configure step parameters
- Set assertions and validations
-
Step Organization
- Drag-and-drop reordering
- Grouping related steps
- Snippet integration
- Conditional logic
Step Configuration
-
Selector Strategy Priority hierarchy for element selection:
- Element ID
- Data test ID
- XPath selectors Best practices:
- Avoid brittle position-based selectors
- Utilize unique, stable attributes
- Consider long-term maintainability
- Document selector rationale
-
Action Configuration
- Input parameters
- Wait conditions
- Validation rules
- Error handling
Best Practices
Step Design
-
Modularity
- Create reusable step sequences
- Maintain logical grouping
- Optimize step count
- Consider snippet extraction
-
Maintainability
- Use descriptive step names
- Document complex logic
- Implement clear error handling
- Regular step review and cleanup
Error Handling
-
Robust Step Design
- Strategic wait implementations
- Element state verification
- Dynamic content handling
- Comprehensive error checking
-
Debugging Support
- Clear error messages
- Step-level logging
- State inspection points
- Recovery procedures