Forum Discussion
i'm using the server documentation,
maybe the problem can be with the endpoint?
following documentation https://support.smartbear.com/zephyr-scale-server/api-docs/v1/ it should to be something like
http://your-jira-host:port/your-jira-context/rest/atm/1.0/
but taking a look at the network in chrome i found a call with this endpoint
and the api works using /rest/tests/1.0/testcase/search but not using /rest/atm/1.0/ as described
but if i point to
https://jira.namirial.com/rest/tests/1.0/automation/execution/CUSTOMPRJ
i obtain
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<status>
<status-code>404</status-code>
<message>null for uri: https://jira.namirial.com/rest/tests/1.0/automation/execution/CUSTOMPRJ</message>
</status>
instead if i point to https://jira.namirial.com/rest/atm/1.0/automation/execution/CUSTOMPRJ
the endpoint is recognized but the api respond that there are a invalid custom format json file
i tried with
- xml generated by pytest
- xml generated by jest
- xml downloaded online
As a test, you could use another rest/atm endpoint to make sure it's working for you. This endpoint works for me:
https://jira.[YOUR INSTANCE].com/rest/atm/1.0/testrun/[YOUR TEST CYCLE]/testresults
If that's working for you, and the JSON file you're providing is in the correct format as mentioned in the documentation here (smartbeartm4j / tm4j-junit-integration — Bitbucket) then I'm sorry I can't help. I've only used the APIs for GET functions and not very often.