Overview

The Supatest Test Editor provides a powerful interface for creating and modifying test steps with precise control and flexibility.

Editor Interface

Step Management

  1. Step Creation

    • Add steps via ”+” button
    • Select from available step types
    • Configure step parameters
    • Set assertions and validations
  2. Step Organization

    • Drag-and-drop reordering
    • Grouping related steps
    • Snippet integration
    • Conditional logic

Step Configuration

  1. Selector Strategy Priority hierarchy for element selection:

    1. Element ID
    2. Data test ID
    3. XPath selectors Best practices:
    • Avoid brittle position-based selectors
    • Utilize unique, stable attributes
    • Consider long-term maintainability
    • Document selector rationale
  2. Action Configuration

    • Input parameters
    • Wait conditions
    • Validation rules
    • Error handling

Best Practices

Step Design

  1. Modularity

    • Create reusable step sequences
    • Maintain logical grouping
    • Optimize step count
    • Consider snippet extraction
  2. Maintainability

    • Use descriptive step names
    • Document complex logic
    • Implement clear error handling
    • Regular step review and cleanup

Error Handling

  1. Robust Step Design

    • Strategic wait implementations
    • Element state verification
    • Dynamic content handling
    • Comprehensive error checking
  2. Debugging Support

    • Clear error messages
    • Step-level logging
    • State inspection points
    • Recovery procedures