SmartBear / zephyr-scale-robot-framework-example

Other
0 stars 0 forks source link

Cannot Upload xml file to Zephyr #6

Open Lucifar2 opened 3 years ago

Lucifar2 commented 3 years ago

Hi, I am trying to do the post request through robot framework to upload the xml file on Zephyr.

curl -H "Authorization: Bearer ${TOKEN}" -F "file=@TestSuites.xml;type=application/xml" https://api.zephyrscale.smartbear.com/v2/automations/executions/junit?projectKey="JQA"&autoCreateTestCases=true

I want to know what should be the path of the argument -F "file=@TestSuites.xml ?

Should I just provide the name of the xml file which is generated after my tests are executed?

elGrogz commented 5 months ago

I'm having the same issue when using the standard robot xunit xml file. If you change the first and closing testsuite tag to testsuites it seems to work though. I discovered this because my predecessor added custom code to add testsuites and I never knew why until encountering this issue