Start adhoc suite execution
Description
Runs an adhoc suite execution. Adhoc suites are created on-the-fly for the execution and cannot be edited, deleted nor rerun.
URL
http://{Job Scheduling API IP}:{port#}/{space_name}/SuiteExecution/start
Parameter | Description/Comments |
---|---|
space_name | CloudShell domain in which the suite was executed. (string) |
HTTP method
POST
Request
Headers
Example header format:
Authorization: Basic <authorization token returned from the login method>
Content-Type: application/json
Request body
Suite details. The parameters of the adhoc suite execution method include:
Parameter | Description/Comments |
---|---|
name | Name of the suite execution. (string) |
description | Optional description for the suite execution. (string) |
testTypeName | Type of tests to run. (string) Currently, the value to use is "Robot". |
jobs | Job details:
|
Request example
{
"name": "my ad-hoc robot execution",
"description": "string",
"testTypeName": "Robot",
"jobs": [
{
"name": "job 1",
"description": "string",
"durationBufferInMinutes": 3,
"blueprint": {
"name": "my blueprint",
"inputs": [
{
"name": "Sandbox number",
"value": "4"
}],
"abstractRequirements": [
{
"type": "Quantity",
"resource": "DUT resource",
"name": "Quantity",
"value": "1"
}],
"additionalInputs": [{
"resource": "DUT resource",
"name": "Firmware version",
"value": "1.00.2"
}],
"serviceInputs": [{
"resource": "Controller service",
"name": "Service.Address",
"value": "192.168.45.112"
}]
},
"tests": [
{
"name": "run-traffic.robot",
"path": "Traffic tests",
"durationInMinutes": 1,
"inputs": [
{
"name": "Additional CMD Parameters",
"value": ""
}
],
"repositoryName": "GitHub"
}
]
}
]
}
Response
Response example
{
"id": "a7f13fe5-ddee-4ec8-971f-a0e6784c8387"
}
Response summary
Parameter | Description/Comments |
---|---|
id | Suite execution id. (guid) |