Skip to main content
JobsFetch Scenario details associated with your Job ID
TestMu AI
StatusCommunityBlog
Jobs

Fetch Scenario details associated with your Job ID

This API retrieves scenario-level execution details for a given Job ID. A scenario in HyperExecute represents a logical stage or group of test cases executed within a [Job](https://www.lambdatest.com/support/docs/hyperexecute-guided-walkthrough/#jobs-page). Each job consists of multiple tasks, and each task may contain one or more scenarios.

GET
/v2.0/job/{jobID}/scenarios
Fetch Scenario details associated with your Job ID
curl --request GET \
--url "https://api.hyperexecute.cloud/v2.0/job/{jobID}/scenarios" \
--header "Authorization: Basic <encoded-value>"
{
"data": [
{
"id": "00x0x0xx-x0x0-0000-0000-00xx0x000x00",
"taskID": "00xx000-0x0x-000x-0xxx-00000x000xxx",
"name": "aliasing.spec.js",
"iteration": 0,
"status": "completed",
"group_number": 2,
"duration": "00:00:23"
}
],
"metadata": {
"total": 1,
"cursor": "",
"hasmore": false
},
"status": "success"
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

jobIDstringrequired

Enter your Job ID

Query Parameters

limitinteger

Limits the number of scenarios shown in the response (default is 10, max is 20).

cursorstring

Helps in moving across pagination. Accepts an "id" value and returns scenarios with an "id" greater than or equal to it.

statusstring

Filter scenarios based on their execution status.

search_textstring

Filter response based on occurrences of the search text in the 'name' field.

Response

application/json

Successful operation

dataobject[]
data.idstring
Example: "00x0x0xx-x0x0-0000-0000-00xx0x000x00"
data.taskIDstring
Example: "00xx000-0x0x-000x-0xxx-00000x000xxx"
data.namestring
Example: "aliasing.spec.js"
data.iterationnumber
Example: 0
data.statusstring
Example: "completed"
data.group_numbernumber
Example: 2
data.durationstring
Example: "00:00:23"
metadataobject
metadata.totalnumber
Example: 1
metadata.cursorstring
Example: ""
metadata.hasmoreboolean
Example: false
statusstring
Fetch Scenario details associated with your Job ID
curl --request GET \
--url "https://api.hyperexecute.cloud/v2.0/job/{jobID}/scenarios" \
--header "Authorization: Basic <encoded-value>"
{
"data": [
{
"id": "00x0x0xx-x0x0-0000-0000-00xx0x000x00",
"taskID": "00xx000-0x0x-000x-0xxx-00000x000xxx",
"name": "aliasing.spec.js",
"iteration": 0,
"status": "completed",
"group_number": 2,
"duration": "00:00:23"
}
],
"metadata": {
"total": 1,
"cursor": "",
"hasmore": false
},
"status": "success"
}