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.
HTTP method
POST
Request
http://{Job Scheduling API IP}:{port#}/{space_name}/SuiteExecution/start
Example header format:
Authorization: Basic <authorization token returned from the login method>
Content-Type: application/json
Parameter | Description/Comments |
---|---|
space_name | CloudShell domain in which the suite will be executed. (string) |
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: | |
name: Job's name. (string) | |
description: Option description for the job. (string) | |
durationBufferInMinutes: Job's execution buffer, in minutes. (Numeric) | |
blueprint: Blueprint attached to the job. name: Blueprint's name. (string) inputs: Published global inputs defined in the job's blueprint.
|
|
abstractRequirements: Published requirements in the blueprint's abstract resources.
|
|
additionalInputs: Published additional inputs in the blueprint's abstract resources.
|
|
serviceInputs: Published inputs belonging to services in the blueprint.
|
|
tests: | |
name: Name of the test. (string) | |
path: Path to the test's containing folder. (string) | |
durationInMinutes: Test's duration in minutes. (Numeric) | |
|
inputs: Test's inputs.
|
repositoryName: Name of the online repository containing the test. For example: "GitHub" |
{
"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
{
"id": "a7f13fe5-ddee-4ec8-971f-a0e6784c8387"
}
Parameter | Description/Comments |
---|---|
id |
Suite execution id. (guid) |