When updating test results to my cycle/test execution through zapi I would like to update the status, executedOn with the time my test finished and executedBy with a user name of the automated user.
The status updates correctly, however the executedOn does not. The HTTP response is 200. Is the executedOn field writeable? It seems that it changes only when the status field is changed. I would like to have the executedOn reflect the value in the test result log if possible. Is this the correct api?
id='188'
status='1'
executedOn="140409"
curl -ujhordes:Welcome123 --include --header "Content-Type: application/json" \
--request PUT \
--data-binary "{
\"status\": ${status} , \
\"executedOn\": ${executedOn} }" "http://slc03sgh:8080/rest/zapi/latest/execution/${id}/execute"
Hello Jan,
This question has been answered for you through our support portal. Here is the answer that was shared with you "The 'executedOn' and 'executedBy' fields are generated by the system when the status is changed. There is no call that allows these fields to be modified. As a workaround for your need, you may put additional execution information in the comment of the execution, which users can view when clicking the 'E' button for the execution".
Kind Regards,
Swapna Kumar Vemula.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.