Ask a Question

Update Test Executions

SOLVED
parisgambit
New Contributor

Update Test Executions

Zephyr Scale API for JIRA - Test Executions. There is no method to update test executions within Jira API. It only allows to create test executions. We have automated tests and we need to update the executions via the API.

https://support.smartbear.com/zephyr-scale-cloud/api-docs/#tag/Test-Executions

 

I found the apiary docs, which is quite different and has sensible methods there.  https://zfjcloud.docs.apiary.io/#reference/execution

 

So is the Jira API doc up-to-date? or is it by design that the API method is not available for Jira users?

1 ACCEPTED SOLUTION

Accepted Solutions
josh42
Community Leader

Re: Update Test Executions

Hi guys,

 

that is actually on thing that I noticed when I was looking into the Cloud version of ZS. We also have automated tests and right now we're using the server API to update test executions. In Cloud, i don't think, this is even possible, which for us is a show stopper.

In webinars, SmartBear always talks about synchronising Cloud and Server features and I think, they once mentioned the API, but right now, it's not in there.

 

It might be possible as Andy said, that you can use the POST, to update an existing execution but I doubt it. Maybe you can let us know, if you've tried (and failed?).

 

Cheers

Josh

View solution in original post

4 REPLIES 4
MisterB
Community Leader

Re: Update Test Executions

I'm not sure I understand the issue, and I'm currently not a user of the API functions but I will try to help.

 

There are two sets of Zephyr APIs, one for the Server install version, and one for Cloud version.  You're using the documentation for the Cloud version.  I've added a link to the Server version in case you need that instead: Zephyr Scale Server API (v1) (smartbear.com).

 

Looking at the Cloud API methods you mentioned, I know it says "Create test execution" but the POST method seems to have the data needed to update an existing execution.  But I'm guessing you tried that already, by trying to update with an existing testCaseKey, and it didn't work?

 

Hope that's of some use but I'm guessing not, and linking in @josh42 - he might be able to help.

 

josh42
Community Leader

Re: Update Test Executions

Hi guys,

 

that is actually on thing that I noticed when I was looking into the Cloud version of ZS. We also have automated tests and right now we're using the server API to update test executions. In Cloud, i don't think, this is even possible, which for us is a show stopper.

In webinars, SmartBear always talks about synchronising Cloud and Server features and I think, they once mentioned the API, but right now, it's not in there.

 

It might be possible as Andy said, that you can use the POST, to update an existing execution but I doubt it. Maybe you can let us know, if you've tried (and failed?).

 

Cheers

Josh

View solution in original post

MisterB
Community Leader

Re: Update Test Executions

Thanks Josh.  And interesting to know about this potentially loss of feature.

parisgambit
New Contributor

Re: Update Test Executions

Thanks for the answers. POST /testexecutions endpoint doesn't update but creates a new execution. The cloud API is extremely limited. Simple things are not possible to do in cloud api, like you can't get a list of tests cases under a test cycle, or you can't update an execution or you can't get test cycles under a plan... 

I don't see any specific reason why some of the existing API methods are not made available for Cloud API. I didn't look at the differences between Server and Cloud API but there's a significant price difference for the same amount of users. May be this is a factor for not having the methods available for Cloud API?

cancel
Showing results for 
Search instead for 
Did you mean: