Test Execution — Run Playwright Tests in the Cloud
InsightJet executes your test cases against real browsers in the cloud using Playwright. You get real-time step-by-step progress, video recordings, and detailed execution history.
How It Works
Section titled “How It Works”When you run a test case, InsightJet:
- Converts the test case to an executable format (JSON DSL steps)
- Sends it to a cloud Playwright instance on EC2
- Executes each step in a real Chromium browser
- Streams step-by-step results back to your browser via WebSocket
- Captures video, screenshots, and assertion results
- Saves the complete run to your execution history
Running a Test
Section titled “Running a Test”-
Open a test case from the Test Cases tab
-
Click the run (▶) button on the test case (or ask the AI chat: “Run the login test”)
-
Configure options (optional):
- Video recording — capture a video of the entire execution
- Test datasets — provide dynamic data (username, password, etc.)
-
Monitor progress — watch steps execute in real time:
- Each step shows its status (running, passed, failed)
- Duration per step
- Error messages for failed steps
- Live progress bar
-
Review results — when execution completes:
- Overall pass/fail status
- Step-by-step breakdown with timing
- Assertion results
- Video recording (if enabled)
Execution Panel
Section titled “Execution Panel”The execution panel shows three tabs during and after a run:
Real-time view of each test step:
- Step description and action type
- Status icon (running spinner, green checkmark, red X)
- Duration in milliseconds
- Error message and details for failed steps
Console output from the Playwright execution, including browser logs and network activity.
Embedded video player showing the full execution recording. Download or copy the video URL for sharing.
Batch Execution
Section titled “Batch Execution”Run multiple test cases at once:
- Select test cases using checkboxes in the Test Cases tab
- Click Run in the toolbar (it shows how many are selected)
- Configure batch options:
- Parallel execution — run tests concurrently
- Stop on failure — halt the batch when a test fails
- Video recording — record each test
- Monitor all executions in the Execution Queue sidebar
The Execution Queue shows all active and recent executions with:
- Test name and status
- Elapsed time
- Step count progress
- Stop/dismiss controls
Click any execution in the queue to switch the main panel to that test’s results.
Test Datasets
Section titled “Test Datasets”Before running a test, you can provide dynamic data values:
{ "username": "testuser@example.com", "password": "SecurePass123", "productName": "Widget Pro"}These values are injected into test steps that reference data fields, allowing you to run the same test with different inputs.
Supported Formats
Section titled “Supported Formats”InsightJet can execute test cases from any of these formats:
| Format | How it’s executed |
|---|---|
| JSON DSL | Executed natively — each step maps to a Playwright action |
| Gherkin | Parsed and converted to JSON DSL steps before execution |
| Playwright code | Parsed to extract navigation and action steps |
Execution History
Section titled “Execution History”View past execution results for any test case:
Run History Modal
Section titled “Run History Modal”Open a test case and choose More actions → History to see:
- Summary stats: total runs, success rate (%), average execution time
- History table with:
- Status badge (passed/failed/error)
- Run date and time
- Duration with percentage change from previous run
- Steps passed/failed count
- Assertions passed/failed count
- Average step time with performance trend
- Video and highlights links
- Detailed view button
Run Details
Section titled “Run Details”Expand any run to see:
- Full execution summary
- Error information with stack traces (for failures)
- Browser info (type, version)
- Raw execution data (JSON)
Performance Comparison
Section titled “Performance Comparison”The history table highlights performance trends:
- Green arrow down — faster than previous run
- Red arrow up — slower than previous run
- Performance badge — “Improved” or “Slower” based on trend
Apps That Need a Sign-In
Section titled “Apps That Need a Sign-In”A test run has no username, password or cookie fields. Crawls and ticket runs reach pages behind your app’s sign-in through the sign-in InsightJet keeps for the app; see Apps that need a sign-in. Running a page object suite asks for the values its .env.example names, such as the base URL.
Troubleshooting Failed Tests
Section titled “Troubleshooting Failed Tests”When a test fails:
- Check the failed step — the Steps tab shows exactly which step failed and the error message
- Watch the video — see what the browser actually did leading up to the failure
- Review selectors — the most common failure is a changed selector. Update it in the test case editor
- Re-run — after fixing, click Execute again to verify the fix
- Use the AI chat — ask “Why did this test fail?” for analysis and suggested fixes