SmoothDeploy Docs

Test Creation Reference

Complete reference for test authoring — step types, configuration, conditions, parameters, and patterns

Complete reference for authoring tests in SmoothDeploy: every step type, every configuration option, conditional execution, variables, frames, and common patterns. New to SmoothDeploy? Start with Your First Test, then return here for depth.

Creation Methods

1. Manual Step Creation

Build tests step-by-step using the visual interface.

When to Use:

  • Complex test logic requiring precise control
  • Tests with conditional logic
  • Integration with external systems
  • Custom validation scenarios

Process:

  1. Navigate to your project
  2. Click "Create New Test"
  3. Add steps one by one:
    • Select action type from dropdown
    • Configure step parameters
    • Set execution conditions
    • Add assertions or validations
  4. Organize steps with groups if needed
  5. Save and name your test

2. Recording Tests

Capture user interactions automatically using the Tauri native app.

When to Use:

  • Quick test creation for common workflows
  • Learning how actions translate to steps
  • Rapid prototyping of test scenarios
  • Non-technical team members

Process:

  1. Open Tauri native app
  2. Click "Start Recording"
  3. Navigate to target application
  4. Perform desired actions:
    • Click buttons and links
    • Fill form fields
    • Navigate between pages
    • Interact with elements
  5. Stop recording
  6. Review generated steps
  7. Edit and refine as needed
  8. Save test

Step Types

  • Navigate: Go to specific URLs
  • Go Back/Forward: Browser navigation
  • Refresh: Reload current page

Interaction Steps

  • Click: Click buttons, links, elements
  • Double Click: Double-click actions
  • Right Click: Context menu interactions
  • Hover: Mouse hover effects
  • Type: Enter text in form fields
  • Clear: Clear input fields
  • Select: Choose from dropdowns

Validation Steps

  • Assert Text: Verify text content
  • Assert Element: Check element presence
  • Assert Attribute: Validate element attributes
  • Assert URL: Verify current URL
  • Screenshot: Capture visual state

Advanced Steps

  • Wait: Pause execution for specified time
  • Wait for Element: Wait for element to appear
  • Scroll: Scroll page or elements
  • Upload File: Handle file uploads
  • Download: Manage file downloads

Step Configuration

Basic Parameters

Each step type has specific parameters:

Click Steps:

  • Target selector (CSS, XPath, text)
  • Click options (left, right, double)
  • Wait conditions

Type Steps:

  • Input text or variables
  • Clear existing text
  • Special key combinations

Assert Steps:

  • Expected values
  • Comparison operators
  • Timeout settings

Advanced Options

Conditions:

  • Always Run: Execute every time
  • If Element Exists: Conditional execution
  • If Variable Equals: Value-based conditions
  • Custom Logic: JavaScript expressions

Variables:

  • Use {{variableName}} syntax
  • Access test parameters
  • Reference previous step outputs
  • Environment-specific values

Frames:

  • Target specific iframes
  • Handle nested frame contexts
  • Switch between frame contexts

Best Practices

Test Structure

  • Start with clear test objectives
  • Use descriptive step names
  • Group related actions
  • Add meaningful assertions

Reusability

  • Create shared steps for common actions
  • Use variables for dynamic values
  • Build step libraries for your domain
  • Document step purposes

Maintenance

  • Keep tests focused and atomic
  • Use data-driven approaches
  • Regular review and updates
  • Version control integration

Performance

  • Minimize unnecessary waits
  • Use efficient selectors
  • Optimize test execution time
  • Consider parallel execution

Common Patterns

Login Flow

  1. Navigate to login page
  2. Type username
  3. Type password
  4. Click login button
  5. Assert successful login

Form Submission

  1. Navigate to form
  2. Fill required fields
  3. Select options
  4. Submit form
  5. Verify success message

Data Validation

  1. Navigate to data view
  2. Assert data presence
  3. Verify data accuracy
  4. Check data formatting
  5. Validate calculations

Troubleshooting

Recording Issues

  • Ensure target application is accessible
  • Check browser compatibility
  • Verify element selectors
  • Review step parameters

Manual Creation

  • Validate step configurations
  • Test individual steps
  • Check variable references
  • Verify assertions

Common Errors

  • Element not found: Update selectors
  • Timeout errors: Adjust wait times
  • Variable errors: Check syntax and scope
  • Assertion failures: Verify expected values