Jobs › Fetch Scenario details associated with your Job ID
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.
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 Authorization string header required
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters jobID string required
Enter your Job ID
Query Parameters limit integer
Limits the number of scenarios shown in the response (default is 10, max is 20).
cursor string
Helps in moving across pagination. Accepts an "id" value and returns scenarios with an "id" greater than or equal to it.
status string
Filter scenarios based on their execution status.
search_text string
Filter response based on occurrences of the search text in the 'name' field.
Response 200▼
application/json Successful operation
data object[]
▶ Hide child attributesdata. id string
Example: "00x0x0xx-x0x0-0000-0000-00xx0x000x00"
data. taskID string
Example: "00xx000-0x0x-000x-0xxx-00000x000xxx"
data. name string
Example: "aliasing.spec.js"
data. iteration number
Example: 0
data. status string
Example: "completed"
data. group_number number
Example: 2
data. duration string
Example: "00:00:23"
metadata object
▶ Hide child attributesmetadata. total number
Example: 1
metadata. cursor string
Example: ""
metadata. hasmore boolean
Example: false
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"
}