Currents Documentation
Currents.devGitHubChangelog
  • Getting Started
    • What is Currents?
    • Playwright
      • Playwright: Quick Start
      • Troubleshooting Playwright
    • Cypress
      • Your First Cypress Run
      • Integrating with Cypress
        • Compatibility
        • Alternative Cypress Binaries
      • Troubleshooting Cypress
    • Jest
      • Your First Jest Run
      • Detox + Jest
      • Troubleshooting Jest
    • Others
    • CI Setup
      • GitHub Actions
        • Cypress - GitHub Actions
        • Playwright - GitHub Actions
        • Jest - GitHub Actions
        • Node.js - GitHub Actions
        • Commit data for GitHub Actions
        • Custom Docker runners
        • Named Runners
      • GitLab
        • Cypress - GitLab CI/CD
        • Playwright - GitLab CI/CD
        • Custom Docker runners
      • Jenkins
        • Cypress - Jenkins
        • Playwright - Jenkins
      • CircleCI
        • Cypress - CircleCI
        • Playwright - CircleCI
      • Bitbucket
        • Cypress - Bitbucket Pipelines
      • Azure DevOps
        • Cypress - Azure DevOps
        • Playwright - Azure DevOps
      • AWS Code Build
        • Cypress - AWS Code Build
        • Playwright - AWS Code Build
      • NX
        • Playwright - NX
        • Cypress - NX
  • Guides
    • Record Key
    • CI Build ID
    • Reporting
      • Reporting Strategy
      • Reporting in CI
      • Step-Level Reporting
    • CI Optimization
      • Playwright Parallelization
      • Orchestration Setup
      • Fully Parallel Mode
      • Re-run Only Failed Tests
      • Cloud Spot Instances
      • Failing Fast
      • Load Balancing
    • Code Coverage
      • Code Coverage for Playwright
      • Code Coverage for Cypress
    • Currents Actions
      • Setup Currents Actions
      • Using Currents Actions
      • Reference
        • Conditions
        • Actions
    • Playwright Component Testing
    • Playwright Visual Testing
    • Playwright Annotations
    • Playwright Tags
    • MCP Server
  • Dashboard
    • Projects
      • Projects Summary view
      • Project Settings
      • Archive and Unarchive Projects
    • Runs
      • Run Status
      • Run Details
      • Commit Information
      • Tags
      • Run Timeouts
      • Cancelling Runs
      • Deleting Runs
      • Run Progress
    • Tests
      • Spec File Status
      • Test Status
      • Flaky Tests
      • Test History
    • Test Suite Explorer
      • Test Explorer
      • Spec Files Explorer
      • Error Explorer
      • Reference
  • Automated Reports
  • Insights and Analytics
  • Administration
    • Email Domain Based Access
    • SSO SAML2.0
      • SAML2.0 Configuration
      • SCIM User Provisioning
      • IdP-initiated Sessions
      • JumpCloud
        • JumpCloud User provisioning
      • Okta
        • Okta User provisioning
      • Troubleshooting SSO
    • Billing & Usage
  • Billing and Pricing
  • Resources
    • Reporters
      • cypress-cloud
        • Batched Orchestration
        • Migration to Cypress@13
      • @currents/cli
      • @currents/playwright
        • Configuration
        • pwc
        • pwc-p (orchestration)
        • Playwright Fixtures
      • @currents/jest
      • @currents/node-test-reporter
      • @currents/cmd
        • currents api
        • currents upload
        • currents cache
        • currents convert
      • Data Format Reference
    • Integrations
      • GitHub
        • GitHub App
        • GitHub OAuth
      • GitLab
      • Slack
      • Microsoft Teams
      • HTTP Webhooks
      • Bitbucket
    • API
      • Introduction
      • Authentication
      • API Keys
      • Errors
      • Pagination
      • API Resources
        • Instances
        • Runs
        • Projects
        • Spec Files
        • Test Signature
        • Test Results
    • Data Privacy
      • Access to Customer Data
      • Data Retention
      • Cloud Endpoints
    • Support
Powered by GitBook
On this page
  • GET v1/test-results/:signature
  • Path Parameters
  • Query Parameters
  • Response

Was this helpful?

  1. Resources
  2. API
  3. API Resources

Test Results

API Reference - Test Results

This API resource allows to query test results based on its signature.

Learn how to retrieve before using this resource Test Signature

GET v1/test-results/:signature

Path Parameters

signature:string required

The unique signature of the test, see Test Signature.

Query Parameters

date_start:string (ISO Datetime) required

Date start - the test results included within the date range will be included.

date_end:string (ISO Datetime) required

Date end - the test results included within the date range will be included.

Pagination Parameters

Pagination cursor, see Pagination.

starting_after:string

Pagination cursor.

ending_before:string

Pagination cursor.

limit:number

Pagination limit 1-100. Default: 10

branch[]: string

Git branches filter. To provide multiple values, use branch[]=valueA&branch[]=valueB

tag[]: string

Tags filter. To provide multiple values, use branch[]=valueA&branch[]=valueB

git_author[]: string

Git authors filter. To provide multiple values, use git_author[]=valueA&git_author[]=valueB

group[]: string

Group filter. To provide multiple values, use group[]=valueA&group[]=valueB

status[]: Enum<failed | passed | pending | skipped>

Test status filter. To provide multiple values, use status[]=failed&status[]=passed

Response

{
  "status": "OK",
  "has_more": false,
  "data": [
    {
      "cursor": "67b8dac9413406575084b5b0",
      "signature": "a298aed2635166ffd75a5a88d29aaba4",
      "framework": {
        "clientVersion": "1.9.0",
        "type": "pw",
        "version": "1.49.0"
      },
      "createdAt": "2025-02-21T19:57:41.437Z",
      "projectId": "C3lBM6",
      "groupId": "Project A",
      "runId": "1aadb82f23eec93c",
      "instanceId": "Kw9tznsG3FUqMkGX",
      "spec": "1-failing.spec.ts",
      "machineId": "Iod3wzFiqQUF",
      "tags": ["basic"],
      "title": ["basic test @basic"],
      "testId": "57ab34a754efae6a0981-782e8b09a9c1dd694d18",
      "displayError": "Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)\n\nLocator: locator('.todo-list')\nExpected string: \"Learn Playwright\"\nReceived string: \"Learn JavaScript\"\nCall log:\n  - expect.toHaveText with timeout 5000ms\n  - waiting for locator('.todo-list')\n    9 × locator resolved to <ul class=\"todo-list\">…</ul>\n      - unexpected value \"Learn JavaScript\"",
      "commit": {
        "branch": "test-staging-pr",
        "authorEmail": "author@email.com",
        "authorName": "John Smith",
        "sha": "768c70d1946661182e5029c35169405e9c0c0473",
        "message": "Testing staging PR"
      },
      "duration": 18658,
      "flaky": false,
      "expectedStatus": "passed",
      "status": "failed",
      "attempts": [
        {
          "attemptId": "xUFASNJTFZ0B79Pt-0",
          "state": "failed",
          "error": {
            "message": "Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)\n\nLocator: locator('.todo-list')\nExpected string: \"Learn Playwright\"\nReceived string: \"Learn JavaScript\"\nCall log:\n  - expect.toHaveText with timeout 5000ms\n  - waiting for locator('.todo-list')\n    9 × locator resolved to <ul class=\"todo-list\">…</ul>\n      - unexpected value \"Learn JavaScript\"",
            "stack": "Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)\n\nLocator: locator('.todo-list')\nExpected string: \"Learn Playwright\"\nReceived string: \"Learn JavaScript\"\nCall log:\n  - expect.toHaveText with timeout 5000ms\n  - waiting for locator('.todo-list')\n    9 × locator resolved to <ul class=\"todo-list\">…</ul>\n      - unexpected value \"Learn JavaScript\"\n\n    at /Users/agoldis/playwright-gh-actions-demo/basic/1-failing.spec.ts:13:26",
            "location": {
              "line": 13,
              "column": 26,
              "file": "/Users/agoldis/playwright-gh-actions-demo/basic/1-failing.spec.ts"
            }
          },
          "startedAt": "2025-02-21T19:57:41.437Z",
          "duration": 6482
        },
        {
          "attemptId": "xUFASNJTFZ0B79Pt-1",
          "state": "failed",
          "error": {
            "message": "Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)\n\nLocator: locator('.todo-list')\nExpected string: \"Learn Playwright\"\nReceived string: \"Learn JavaScript\"\nCall log:\n  - expect.toHaveText with timeout 5000ms\n  - waiting for locator('.todo-list')\n    9 × locator resolved to <ul class=\"todo-list\">…</ul>\n      - unexpected value \"Learn JavaScript\"",
            "stack": "Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)\n\nLocator: locator('.todo-list')\nExpected string: \"Learn Playwright\"\nReceived string: \"Learn JavaScript\"\nCall log:\n  - expect.toHaveText with timeout 5000ms\n  - waiting for locator('.todo-list')\n    9 × locator resolved to <ul class=\"todo-list\">…</ul>\n      - unexpected value \"Learn JavaScript\"\n\n    at /Users/agoldis/playwright-gh-actions-demo/basic/1-failing.spec.ts:13:26",
            "location": {
              "line": 13,
              "column": 26,
              "file": "/Users/agoldis/playwright-gh-actions-demo/basic/1-failing.spec.ts"
            }
          },
          "startedAt": "2025-02-21T19:57:48.278Z",
          "duration": 5760
        },
        {
          "attemptId": "xUFASNJTFZ0B79Pt-2",
          "state": "failed",
          "error": {
            "message": "Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)\n\nLocator: locator('.todo-list')\nExpected string: \"Learn Playwright\"\nReceived string: \"Learn JavaScript\"\nCall log:\n  - expect.toHaveText with timeout 5000ms\n  - waiting for locator('.todo-list')\n    9 × locator resolved to <ul class=\"todo-list\">…</ul>\n      - unexpected value \"Learn JavaScript\"",
            "stack": "Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)\n\nLocator: locator('.todo-list')\nExpected string: \"Learn Playwright\"\nReceived string: \"Learn JavaScript\"\nCall log:\n  - expect.toHaveText with timeout 5000ms\n  - waiting for locator('.todo-list')\n    9 × locator resolved to <ul class=\"todo-list\">…</ul>\n      - unexpected value \"Learn JavaScript\"\n\n    at /Users/agoldis/playwright-gh-actions-demo/basic/1-failing.spec.ts:13:26",
            "location": {
              "line": 13,
              "column": 26,
              "file": "/Users/agoldis/playwright-gh-actions-demo/basic/1-failing.spec.ts"
            }
          },
          "startedAt": "2025-02-21T19:57:54.406Z",
          "duration": 5689
        }
      ]
    }
  ]
}
type ResponsePayload = {
  status: "FAILED";
  error: string;
};

Test

Name
Type
Description

cursor

String

projectId

String

groupId

String

ID of the group which the current test belongs to.

runId

String

instanceId

String

spec

String

machineId

String

ID of the machine which executed the test.

signature

String

title

Array<String>

testId

String

ID of the test as reporter by its framework.

expectedStatus

String<failed | passed | pending | skipped>

Spected status of the test. Only available for Playwright.

status

String<failed | passed | pending | skipped>

Final status of the test after the execution

framework

Framework

displayError

String

Latest error from the test execution

commit

Commit

createdAt

String (ISO Datetime)

Date of the test execution

duration

Number

Total duration of the test execution in milliseconds

flaky

Boolean

attempts

Array<Attempt>

annotations

Array<Annotation>

Commit

Name
Type
Description

branch

String

Git Commit Branch of the recorded result

authorEmail

String

Git Commit Author Email of the recorded result

authorName

String

Git Commit Author Name of the recorded result

sha

String

Git Commit SHA of the recorded result

message

String

Git Commit Message of the recorded result

Framework

Name
Type
Description

clientVersion

String

Version of the reporter used in the test execution

type

Enum

Type of the test execution framework

version

String

Version of the testing framework

Annotation

Name
Type
Description

type

String

Type of the annotation

description

String

Description of the annotation

Attempt

Name
Type
Description

attemptId

String

ID of the attempt

state

Enum<failed | passed | pending | skipped>

Status of the attempt

startedAt

String (ISO Datetime)

Start date of the attempt

duration

Number

Total duration of the attempt in milliseconds

error

Error

Error

Name
Type
Description

message

String

Description of the error

stack

String

More detailed description of the error

location

Location

Location

Name
Type
Description

line

Number

Code line where an error occurred

column

Number

Code column where an error occurred

file

String

File path where an error occurred

PreviousTest SignatureNextData Privacy

Last updated 2 months ago

Was this helpful?

Used for pagination. See

ID of the project of the test.

ID of the run which the current test belongs to.

ID of the instance which the current test belongs to.

Name of the spec file which the test belongs to.

Signature of the test

Title of the test. .

Information about the framework and reporter used for the test execution

Git commit information

Property that shows if the test is marked as flaky

List of test execution attempts

List of test annotations

Error object of the attempt in case of failure

Specific code location where the error happened

Pagination
Projects
Runs
Instances
Spec Files
Test Signature
Flaky Tests
Framework
Commit
Attempt
Annotation
Error
Location
See test title