HomeAPIExecutionsRun/Execute

6.5. Run/Execute

URL: /project/{project_id}/executions/run/{execution_case_id}/1

Once an execution has been created and assigned, execution_case_id can be fetched from information returned from view call.

Acceptable POST Parameters:

Name 
Required? 
 Description
ExecutionRun.notes No Any note or comment for execution of case
ExecutionRun.result Yes Result can be; 0 = Failed, 1 = Passed, 2 = Skipped
ExecutionRun.time_taken No Time taken to run test in seconds.

ExecutionRun.add_defect  No 1 if failure should be reported to integrated issue manager
ExecutionRun.attachments.{n}.name No Attachments hashes returned  from uploading files to test collab server. Here {n} should replaced an index key. There can be multiple attachments

Example Request: 

If you want to attach any artefact with the result then use the following command template:  

curl --data '{"data": {"ExecutionRun": {"notes":"Your note","result":"1","time_taken": "80", "add_defect":0,"attachments":[{"name": "filehash"}] }}}' http://your-testcollab-url.com/index.php/project/{project_id}/executions/run/{execution_case_id}/1.json?API_KEY=yourapikey 

Command template to be used when no attachment is there: 

curl --data '{"data": {"ExecutionRun": {"notes":"Your note","result":"1","time_taken": "80", "add_defect":0}}}' http://your-testcollab-url.com/index.php/project/{project_id}/executions/run/{execution_case_id}/1.json?API_KEY=yourapikey 

Example Response: 

{"data":{"result":{"ok":true,"nextExecutionCaseId":34}}} 

nextExecutionCaseId will contain id of next execution casse id which should be executed. If all execution cases have been completed then nextExecutionCaseId will be false. 

This page was: Helpful | Not Helpful
Test Case Management
Test Collab Support
Product Tour