Check File Validation
API Explorer: /tests/{testId}/validations
To get the status of the test file validations, use GET to pull the validation list for a given test (you need to know the testId
). The sample code gets the file validations for a test with a test ID of 1234567
(the 1234567
is contained in the URL).
testId
of the test to update, use List Tests to return a list of your created tests.Check File Validation
curl 'https://a.blazemeter.com/api/v4/tests/1234567/validations' \
--user 'api_key_id:api_key_secret'
Check File Validation Response Attributes
Attributes
-
status
integerThe status of the validation process. A status of
100
means completed -
timestamp
integerThe timestamp of when the validation is updated
-
fileName
stringThe filename of the file being validated
-
errors
arrayA list of errors found during the validation. If this is not empty, the test will not start
-
warnings
arrayA list of warnings found during the validation. The test will still run if this is not empty
-
dependencies
arrayA list of virtual services found during the validation
-
executions
arrayExecutions found in the validated script
Show/Hide Child Attributes-
iterations
integerThe number of iterations to run (same as
iterations
in Taurus) -
locationsWeighted
booleanDenotes whether the locations values are weighted or not. Same as
locations-weighted
in Taurus -
executor
stringThe script type you are running (similar to
executor
in Taurus). Includes the following:gatling
grinder
jmeter
locust
pbench
selenium
siege
-
capabilities
objectThe browser capabilities being used by this script
-
scenario
stringBlazeMeter scenario reference for GUI reports
-
-
commandsExecutionIndex
objectThe details on the commands run for this test validation
Show/Hide Child Attributes-
files_validation
integerThe number of times the validation has been run on the specific file
-
-
isInlineScenarioExists
booleanDenotes if the script contains inline scenario names or not
-
hasUltimateThreadGroup
booleanDenotes if the script contains an Ultimate thread group or not
-
hasMultipleThreadGroups
booleanDenotes if the script contains multiple thread groups or not
-
created
integerThe timestamp of when the validation is created
-
updated
integerThe timestamp of when the validation is updated
-
fileWarnings
arrayList of warnings regarding files
Response200 OK
{
"api_version": 4,
"error": null,
"result": [
{
"status": 100,
"timestamp": 1577735981,
"fileName": "DemoBlaze-Selenium-.yaml",
"errors": [],
"warnings": [
"Please note: Some executions in your script did not configure a concurrency; they will run with 1 concurrent user",
"Please note: Some executions in your script will run according to your plan's duration limitation (execution #1)",
"Please note: Some executions in your script did not configure locations, and will run from the default location"
],
"dependencies": [],
"totalDuration": 0,
"totalConcurrency": 0,
"lastContainerName": "7554662-torero-5e0a572a0c82a",
"lastContainerCommand": "files_validation",
"executions": [
{
"iterations": 1,
"locationsWeighted": true,
"executor": "selenium",
"capabilities": {
"browserName": "chrome"
},
"scenario": "DemoBlaze-Selenium"
}
],
"dedicatedIps": false,
"delayedStart": false,
"splitCsv": false,
"commandsExecutionIndex": {
"files_validation": 2
},
"isInlineScenarioExists": false,
"hasUltimateThreadGroup": false,
"hasMultipleThreadGroups": false,
"globalLocations": [],
"created": 1577464134,
"updated": 1577735981,
"isMultiLocation": false,
"fileWarnings": [],
"totalLoadGenerators": 1
}
],
"request_id": "5e0a5899ee0e0"
}