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
Navigation
Direct the test to specific pages:Navigate to homepageGo to /dashboardOpen checkout page
Interactions
Perform actions on page elements:Click 'Add to Cart' buttonType '[email protected]' in email fieldSelect 'Premium' from plan dropdownUpload invoice.pdf
Verifications
Confirm expected behavior:Verify success message appearsCheck total equals $99.99Ensure redirect to dashboardConfirm submit button disabled
Wait Conditions
Handle timing and loading:Wait for spinner to disappearWait until chart loadsPause for 2 seconds
Building Common Test Flows
Login Test
E-commerce Purchase
Advanced Features
Conditional Logic
Add intelligent branching:If popup appears, close itIf not logged in, perform loginWhen price > $100, verify free shipping
Data Handling
Use dynamic data:Generate random emailUse timestamp for usernameSelect date 7 days from now
Error Handling
Build resilient tests:If error appears, capture messageOn timeout, retry actionIf element missing, check alternatives
Test Organization
Structure Your Tests
Group steps logically: Setup- Prepare test environment
- Navigate to starting point
- Handle prerequisites
- Core user actions
- Primary functionality
- Check expected outcomes
- Validate data changes
- 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
User Authentication
Email Verification Flow
Data Validation
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
- Build basic happy path first
- Add verifications
- Include error handling
- 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.

