Creating Test Cases
Create web test cases in minutes using ContextQA's AI agent — no code required. Every step, screenshot, video, and trace captured automatically.
Real execution evidence below. Every screenshot on this page was captured live by the ContextQA AI agent. Watch the full session recording →
Overview
ContextQA lets you create web test cases through three methods: AI-assisted generation, browser recording, and manual step creation. The AI agent handles navigation, interaction, and evidence capture automatically — you describe what to test, it does the rest.
Step-by-Step Workflow
Navigate to the Login Page
Open https://accounts.contextqa.com/onboard in your browser. The ContextQA authentication page loads with email and password fields.

Screenshot captured by ContextQA AI agent — execution result #47297
Sign In to Your Workspace
Enter your credentials and click Login. On successful authentication, you are redirected to your project dashboard.
Email: your registered email address
Password: your account password
New to ContextQA? Start your free trial — no credit card required.
Execution Evidence
The workflow above was executed by the ContextQA AI agent. All artifacts below were captured automatically:
🎬 Session recording not loading? Open in ContextQA →
Creation Methods in Detail
AI-Assisted Test Generation
Describe your test scenario in plain English. ContextQA's AI generates all steps automatically.
Example prompt:
Navigate to the checkout page. Add the first product to cart.
Enter shipping address: 123 Main St, Chicago, IL 60601.
Complete payment with test card 4242 4242 4242 4242.
Verify the order confirmation page shows the order number.The AI agent:
Parses your description into discrete steps
Generates locators for each element
Handles dynamic content and waits automatically
Captures screenshot at each step
Records full session video + trace
Best for: Complex multi-page flows, form submissions, checkout workflows
Browser Recording
Click through your application while ContextQA records every interaction.
How it works:
Click Start Recording → your browser opens with the recorder active
Navigate and interact with your application normally
ContextQA captures each click, type, and navigation as a step
Click Stop Recording to finalize
Review and edit the captured steps before saving
Best for: UI exploration, click-heavy workflows, onboarding flows
Manual Step Creation
Build test cases step-by-step using the visual step editor.
Available actions:
Navigate to URL— Open a specific pageClick— Click any element by label, text, or selectorType— Enter text into input fieldsAssert— Verify element existence, text content, or stateWait— Pause for element visibility or network idleScroll— Scroll to position or elementHover— Hover over elements to trigger tooltips or menusSelect— Choose dropdown optionsUpload— Upload files to file inputs
Best for: Precise control, complex assertions, API + UI combined tests
Frequently Asked Questions
How long does it take to create a test case?
With AI Assistance, describing a 10-step workflow takes under 60 seconds. The AI generates and validates all steps automatically. Browser recording typically takes 2–5 minutes for a complete user journey. Manual step creation varies by complexity but most teams create 20–30 step test cases in under 10 minutes.
Can I import existing Selenium or Cypress tests?
Yes. Use the Import option when creating a test case. ContextQA supports:
Selenium WebDriver scripts (Java, Python, JavaScript)
Cypress test files
Playwright test scripts
Gherkin / Cucumber feature files
ContextQA converts imported scripts into its visual step format, making them editable without code.
What browsers and devices are supported?
ContextQA supports all major browsers for test execution:
Chrome (desktop + headless)
Firefox
Safari (macOS)
Edge
Mobile Chrome / Safari (via device emulation)
For real-device mobile testing, see the Mobile Testing section.
Are screenshots and videos stored automatically?
Yes. Every test execution automatically captures:
Per-step screenshots — A screenshot is taken after each step completes
Full session video — Complete recording from start to finish (WebM format)
Playwright trace — Detailed trace file with network logs, DOM snapshots, and timing (downloadable ZIP)
All evidence is stored on S3 and linked directly in the execution results. No configuration required.
Can I run the same test case across multiple environments?
Yes. ContextQA supports environment-based test execution. You can define multiple environments (Development, Staging, Production) and run any test case against any environment by selecting it at execution time. Environment-specific variables (base URLs, credentials, API keys) are managed separately so your test cases remain portable.
How does self-healing work if my application changes?
ContextQA's AI Configuration (self-healing) continuously monitors element locators. When an element changes — for example, a button moves or an ID changes — the AI automatically finds the updated element using visual context, text content, and semantic analysis. Failed locators are flagged for review and healed with one click. See Self-Healing Tests for configuration details.
Best Practices
Name tests descriptively — Use the format [Page] - [Action] - [Expected Result] (e.g., Login Page - Valid Credentials - Dashboard Loads). This makes test results immediately understandable.
Start with happy-path tests — Create and validate your positive test cases first, then add negative scenarios (invalid inputs, error states) once the base flow is verified.
Avoid hard-coded waits — Don't use Wait 5 seconds steps. Instead, use Wait for element or Wait for network idle actions. ContextQA's AI handles timing automatically.
Related Documentation
Test Steps Editor — Detailed guide to all available step actions
Managing Test Suites — Organize test cases into suites for batch execution
Self-Healing Tests — AI-powered test maintenance
Test Data Management — Variables, CSV imports, and data-driven testing
Execution & Reporting — Run tests, view results, set up CI/CD
Ready to create your first test?
🚀 Open ContextQA Platform · 📖 View Test Steps Reference · Book a Demo
Last updated
Was this helpful?
