Im trying to automate updating the Zephyr test case status to PASS/FAIL
Can someone please help me to figure out how to get the field names of Test Cycle/Status/Version of a particular Test case??
Hi @Vasu_Repaka ,
You can get the details from the URL. You have to just go to the execution page of the test you are planing to execute. The URL would look something like the below:
https://abc.atlassian.net/plugins/servlet/ac/com.thed.zephyr.je/general-search-test-executions?project.id=14603&issue.id=57087&execution.id=aa57f706-fc1f-401a-a0e6-3370c0f60615&nodeType=cycle&node.id=-1&versionId=-1&maxRecords=10&totalExecutions=2&view=detail#!offset=0&zql=project%20%3D%20%22DON%27T%20TOUCH%22
From the above you can get the cycle and version ID. The below links will be helpful.
Note: For all ZAPI Cloud REST APIs you have to use "https://prod-api.zephyr4jiracloud.com/connect" as base URL.https://support.smartbear.com/kb/getting-started-with-zapi-cloudhttps://support.smartbear.com/kb/how-to-make-a-zapi-cloud-rest-call-from-postmanhttps://support.smartbear.com/kb/how-to-generate-jwt-token-from-command-line-(java)https://zfjcloud.docs.apiary.io/
-Bibek
@Bibek_ikuTeam_ - Thanks for the response but unfortunately i'm unable to access this page
Looks like admin access needed. Is it possible to paste the content here?
@Vasu_Repaka ,
You should pick any execution on your instance and go to the execution page. There you should be able to get the IDs in the URL. I am just adding a sample from my setup.
@Bibek_ikuTeam_ - Thank you.
Actually following is the way i would like to update my test case
Sample code:
Issue issue = jira.getIssue("TA-1"); (here jira is an object of JiraClient)issue.addComment("");issue.createSubtask();
If you see i could able to access all the fields like commenting on the test case(TA-1), creating a sub-task for the same and etc
But here i dint find any relevant method to make my test execution status to change. I don't want to use the rest api calls to make this possible.
Any suggestions please?
It looks like you're new here. Sign in or register to get started.