Skip to main content

Recording Actions

Learn how to create workflows automatically by recording your interactions with the application.

Overview​

The record action feature allows you to create workflows by simply performing the actions you want to automate. EZ Testing captures your interactions and converts them into a reusable workflow, making test creation faster and more intuitive.

Prerequisites​

  • Active EZ Testing account
  • Target application accessible for recording
  • Basic understanding of the test scenario you want to record

Step-by-Step Guide​

1. Start Recording Session​

  1. Navigate to Workflows → Create New Workflow
  2. Select "Record" option
  3. Configure recording settings:
    • Select Browser: Choose a browser to record your actions from the available options (Chrome or Edge)
    • Select Device Type: Choose your target device type from the dropdown menu (Desktop or Mobile)

2. Perform the Actions​

  1. Start Recording: Click the record button to begin capturing actions
  2. Perform Actions Naturally:
    • Navigate through your application as a normal user would
    • Click buttons, fill forms, navigate between pages
    • Perform all steps in your test scenario

3. Stop and Review Recording​

  1. End Recording: Click stop when your scenario is complete

  2. Review Captured Actions:

    • Examine the generated step sequence
    • Verify all actions were captured correctly
    • Check for any missing or incorrect steps
  3. Edit Generated Steps:

    • Modify step names for clarity
    • Adjust selectors if needed
    • Add or remove steps as necessary
    • Set up workflow input parameters

4. Test and Validate​

  1. Run Test Execution:

    • Execute the recorded workflow immediately
    • Verify all steps execute correctly
    • Check that assertions pass as expected
  2. Debug Issues:

    • Review failed steps
    • Adjust timing and waits
    • Fix selector issues
  3. Optimize Performance:

    • Remove unnecessary steps
    • Consolidate similar actions
    • Optimize wait times

Best Practices​

Recording Preparation​

  • Clean Environment: Start with a clean state
  • Consistent Data: Use predictable test data
  • Stable Network: Ensure reliable network connectivity
  • Clear Objectives: Know exactly what you want to test

During Recording​

  • Natural Pace: Don't rush through actions
  • Wait for Loading: Allow pages and elements to fully load
  • Avoid Shortcuts: Don't use keyboard shortcuts that might not be portable
  • Stay Focused: Complete one test scenario per recording

Post-Recording Optimization​

  • Meaningful Names: Use descriptive names for steps and workflows
  • Add Validations: Include appropriate assertions and checkpoints
  • Handle Edge Cases: Consider error scenarios and edge cases
  • Documentation: Add comments for complex or business-specific logic

Troubleshooting​

Recording Issues​

Recording Doesn't Start

  • Check browser extension is enabled
  • Verify permissions are granted
  • Ensure target application is accessible
  • Try refreshing the page and starting again

Actions Not Captured

  • Slow down interaction speed
  • Ensure elements are fully loaded before interaction
  • Check if elements are in viewport

Playback Failures

  • Review element selectors
  • Adjust wait times and timeouts
  • Check for dynamic content issues
  • Verify test data availability

Quality Issues​

Flaky Tests

  • Add explicit waits for dynamic content
  • Use more robust element selectors
  • Handle timing-sensitive operations properly
  • Implement retry logic for unstable elements

Performance Problems

  • Remove unnecessary steps
  • Optimize selector strategies
  • Reduce screenshot frequency
  • Use efficient wait strategies

Next Steps​