Get 404 on stepResult if test never executed


I have an issue or a misunderstanding about service "/rest/zapi/latest/stepResult?executionId="

I defined a test "T" and add it in a Test Cycle "TC".

My case is:

  1. I call "execution/" to get the executionId of "T"
  2. I call "/rest/zapi/latest/stepResult?executionId=" to get the Step executionId for each step and got a HTTP 404 Not Found
  3. I click on "E" button of my Test in my Test Cycle via the graphical interface. (Execution button)
  4. Call again "/rest/zapi/latest/stepResult?executionId=" and the service respond correctly.

I want the service respond correctly without clicking on "E" button for each tests. (Actually have around 120 tests and create new test cycle every two weeks.

Do you have an idea or a workaround?


3 answers

Pressing the "E" button simulates this call:


then run  "/rest/zapi/latest/stepResult?executionId=

I have a 500 response for this service: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <status> <status-code>500</status-code> <message>query should not be null!</message> Can't find any documentation on this service.

Hello @Clément Guillot


The reason you are getting the 404 error is because you are trying to retrieve the step execution id without executing the step. Basically you are missing one step after you execute a test case (your point 1.), you need to execute a teststep using REST CALL: POST: http://localhost:2990/jira_server/rest/zapi/latest/jira_server/rest/zapi/latest/teststep/issueId/ and then retrieve the test step execution id using /rest/zapi/latest/stepResult?executionId= 


Kindly let me now if you still have any issues


Kind Regards



Hi, Thx for your response but the response of "/rest/zapi/latest/stepResult?executionId=" return an empty array. The array is not empty after press button "E" in user interface..

I also tried this solution ..http://localhost:8080/secure/ExecuteTest!default.jspa?scheduleId=x&issueId=x (Found it in the discussion forum) , but this call(get) only works when i execute it in browser, but through code it gives 200 response but after this still i received an empty json file on executing "/rest/zapi/latest/stepResult?executionId=" . Please suggest how to get rid off from this problem? or am I missing any call?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

460 views 8 27
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you