Basic Workflow

1

Define Test Goal

Determine what user journey or functionality to test
2

Add Steps Sequentially

Build your test by adding navigation, interaction, and verification steps
3

Configure Test Data

Set up variables and data handling for dynamic testing
4

Run and Validate

Execute the test and ensure all steps work correctly

Step Types

Direct the test to specific pages:
  • Navigate to homepage
  • Go to /dashboard
  • Open checkout page

Interactions

Perform actions on page elements:
  • Click 'Add to Cart' button
  • Type 'user@example.com' in email field
  • Select 'Premium' from plan dropdown
  • Upload invoice.pdf

Verifications

Confirm expected behavior:
  • Verify success message appears
  • Check total equals $99.99
  • Ensure redirect to dashboard
  • Confirm submit button disabled

Wait Conditions

Handle timing and loading:
  • Wait for spinner to disappear
  • Wait until chart loads
  • Pause for 2 seconds

Building Common Test Flows

Login Test

1. Navigate to application
2. Click 'Sign In' link
3. Enter email address
4. Enter password
5. Click login button
6. Verify dashboard loads
7. Check welcome message appears

E-commerce Purchase

1. Search for product
2. Click first result
3. Select size and color
4. Add to cart
5. Navigate to cart
6. Verify item details
7. Proceed to checkout
8. Fill shipping info
9. Complete purchase
10. Verify order confirmation

Advanced Features

Conditional Logic

Add intelligent branching:
  • If popup appears, close it
  • If not logged in, perform login
  • When price > $100, verify free shipping

Data Handling

Use dynamic data:
  • Generate random email
  • Use timestamp for username
  • Select date 7 days from now

Error Handling

Build resilient tests:
  • If error appears, capture message
  • On timeout, retry action
  • If element missing, check alternatives

Test Organization

Structure Your Tests

Group steps logically: Setup
  • Prepare test environment
  • Navigate to starting point
  • Handle prerequisites
Main Flow
  • Core user actions
  • Primary functionality
Verification
  • Check expected outcomes
  • Validate data changes
Cleanup
  • Reset test data
  • Return to initial state

Best Practices

One Scenario Per Test

Keep tests focused on a single user flow

Clear Step Names

Use descriptive names that explain the action

Handle Edge Cases

Include error scenarios and validation

Maintainable Structure

Use reusable components and clear organization

Common Patterns

Form Submission

1. Navigate to form
2. Fill required fields
3. Fill optional fields
4. Submit form
5. Verify success message
6. Check data saved

User Authentication

1. Navigate to login page
2. Enter credentials
3. Submit login
4. Verify dashboard access
5. Check user profile loaded

Email Verification Flow

1. Create test email inbox
2. Navigate to signup page
3. Fill registration form with test email
4. Submit registration
5. Wait for verification email
6. Extract verification code from email
7. Enter code on verification page
8. Confirm account activated

Data Validation

1. Enter invalid data
2. Verify error messages
3. Correct the data
4. Ensure errors clear
5. Submit successfully
6. Confirm acceptance

Working with Elements

Element Selection

Use natural descriptions:
  • Button text: Click 'Submit Order'
  • Field labels: Type in 'Email Address' field
  • Location: Click menu in top navigation

Dynamic Content

Handle changing elements:
  • Wait for content to load
  • Use flexible selectors
  • Verify element state before interaction

Tips for Success

Start Simple

  1. Build basic happy path first
  2. Add verifications
  3. Include error handling
  4. Expand to edge cases

Preview Steps

  • Test each step as you build
  • Catch issues early
  • Refine element selection
  • Adjust timing as needed

Maintain Tests

  • Update when UI changes
  • Keep data requirements current
  • Remove obsolete verifications
  • Optimize execution time
Building tests manually gives you complete control over test flow. Use AI assistance to suggest steps and optimize element selection.