GUI Functional Scenarios Summary
API Explorer: /masters/{masterId}/xbt-scenarios-summary?testId={testId}
To get GUI functional scenarios summary statistics, you will need a masterId and the corresponding testId for that master. The sample code returns the scenarios summary stats for the masterId of 12345678 attached to testId of 1234567. Use the masterId and the testId of the actual master in place of 12345678 and its corresponding test in place of 1234567.
GUI Functional Scenarios Summary
curl 'https://a.blazemeter.com/api/v4/masters/12345678/xbt-scenarios-summary?testId=1234567' \
--user 'api_key_id:api_key_secret'
GUI Functional Scenarios Summary Response Attributes
All timestamps are in UNIX Epoch Time.
Attributes
-
scenariosarrayList of scenarios that ran with the GUI functional test
Show/Hide Child Attributes
-
testSuiteUniqueAliasstringThe unique alias for the test suite
-
testSuiteNamestringThe name of the test suite
-
sessionsarrayThe list of the sessions that ran the scenario
Show/Hide Child Attributes
-
browserNamestringThe name of the browser used for this test case
-
browserVersionstringThe browser version used for this test case
-
sessionIdstringThe
sessionIdfor the test case -
sessionNamestringThe name of the session for this test case
-
statusintegerThe status level of the test. The value
140indicates the test was completed -
definedStatusstringDenotes if the test case
passedorfailedor isbrokenor isundefined
-
-
definedStatusstringDenotes if the test suite
passedorfailedor isbrokenor isundefined
-
-
summaryobjectThe summary details for the GUI functional test
Show/Hide Child Attributes
-
uniqueTestCasesCountintegerThe unique number of test cases in this test
-
uniqueSuitesCountintegerThe unique number of test suties in this test
-
passedTestCasesCountintegerThe number of test cases that are in a
passedstate -
failedTestCasesCountintegerThe number of the test cases that are in a
failedstate -
brokenTestCasesCountintegerThe number of test cases that are in a
brokenstate -
totalTestCasesCountintegerThe total number of test cases
-
undefinedTestCasesCountintegerThe number of test cases that are in a
undefinedstate -
testCasesCountintegerThe number of test cases in this test
-
passedPercentintegerThe percentage of test cases that passed (
1being 100 percent) -
startedfloatThe timestamp for when this test began
-
endedfloatThe timestamp for when this test ended
-
definedStatusstringDenotes if the test
passedorfailedor isbrokenor isundefined -
suitesPassedintegerThe number of test suites that passed
-
sessionsPassedintegerThe number of sessions that passed
-
-
uniqueLocationNamesarrayList of unique locations used in this test
Response200 OK
{
"api_version": 4,
"error": null,
"result": {
"scenarios": [
{
"testSuiteUniqueAlias": "Scenario 1-1",
"testSuiteName": "Scenario 1",
"sessions": [
{
"browserName": "chrome",
"browserVersion": "77.0.3865.120",
"platformName": null,
"platformVersion": null,
"sessionId": "r-sg-5ef24af96a077",
"testDataIterationId": null,
"sessionName": "chrome_77",
"status": 140,
"definedStatus": "passed"
}
],
"definedStatus": "passed"
}
],
"summary": {
"uniqueTestCasesCount": 1,
"uniqueSuitesCount": 1,
"passedTestCasesCount": 1,
"failedTestCasesCount": 0,
"brokenTestCasesCount": 0,
"totalTestCasesCount": 1,
"undefinedTestCasesCount": 0,
"testCasesCount": 1,
"passedPercent": 1,
"started": 1592937232.7655351,
"ended": 1592937251.8649161,
"definedStatus": "passed",
"suitesPassed": 1,
"suitesTotal": 0,
"sessionsPassed": 1,
"sessionsTotal": 0
},
"uniqueLocationNames": [
"US West (Oregon) - Functional GUI Test"
],
"reportUrl": null
},
"request_id": "5ef3abb011481"
}