cancel
Showing results for 
Search instead for 
Did you mean: 

Server version: how to mark test execution like "automation" via API

paltsevpavel
Occasional Visitor

Server version: how to mark test execution like "automation" via API

We have TM4J server version and create test execution via API. But we get "manual execution" in web form of test.

We don't use UserKey and AsignedTo like writing at https://support.smartbear.com/zephyr-scale-cloud/docs/api-and-test-automation/rest-api-overview.html 

"When you post a test-execution result using the API and include a username, it appears as a manual execution. This design allows you to mark an execution as manual, even if it has been added via the API."

How can we mark test execution as autorun?

test_execution_2.jpg

1 REPLY 1
jfelix
Staff

Re: Server version: how to mark test execution like "automation" via API

Hi, @paltsevpavel! Thank you for your question.

 

On Zephyr Scale Server v8.0.3, posting an execution using the POST /rest/atm/1.0/testresult endpoint with a payload like the one below sets the execution as automated.

 

 

{
  "projectKey": "DEF",
  "testCaseKey": "DEF-T1"
}

 

 

Can you please share with us the endpoint you're using and a payload sample?

 

Cheers!

New Here?
Join us and watch the welcome video:
Top Kudoed Authors