Skip to content

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.

When you run a test case, InsightJet:

  1. Converts the test case to an executable format (JSON DSL steps)
  2. Sends it to a cloud Playwright instance on EC2
  3. Executes each step in a real Chromium browser
  4. Streams step-by-step results back to your browser via WebSocket
  5. Captures video, screenshots, and assertion results
  6. Saves the complete run to your execution history

  1. Open a test case from the Test Cases tab

  2. Click the run (▶) button on the test case (or ask the AI chat: “Run the login test”)

  3. Configure options (optional):

    • Video recording — capture a video of the entire execution
    • Test datasets — provide dynamic data (username, password, etc.)
  4. 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
  5. Review results — when execution completes:

    • Overall pass/fail status
    • Step-by-step breakdown with timing
    • Assertion results
    • Video recording (if enabled)

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

Run multiple test cases at once:

  1. Select test cases using checkboxes in the Test Cases tab
  2. Click Run in the toolbar (it shows how many are selected)
  3. Configure batch options:
    • Parallel execution — run tests concurrently
    • Stop on failure — halt the batch when a test fails
    • Video recording — record each test
  4. 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.


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.


InsightJet can execute test cases from any of these formats:

FormatHow it’s executed
JSON DSLExecuted natively — each step maps to a Playwright action
GherkinParsed and converted to JSON DSL steps before execution
Playwright codeParsed to extract navigation and action steps

View past execution results for any test case:

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

Expand any run to see:

  • Full execution summary
  • Error information with stack traces (for failures)
  • Browser info (type, version)
  • Raw execution data (JSON)

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

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.


When a test fails:

  1. Check the failed step — the Steps tab shows exactly which step failed and the error message
  2. Watch the video — see what the browser actually did leading up to the failure
  3. Review selectors — the most common failure is a changed selector. Update it in the test case editor
  4. Re-run — after fixing, click Execute again to verify the fix
  5. Use the AI chat — ask “Why did this test fail?” for analysis and suggested fixes