Problems integrating RobotFramework and Zephyr Scale
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Problems integrating RobotFramework and Zephyr Scale
In the last few days I tried to follow the guidelines of this link "https://support.smartbear.com/zephyr-scale-cloud/docs/test-automation/robot-framework-integration.ht..." to integrate the Robot results with the Zefhyr Test Cases but I have not been successful in the requests. Has anyone ever had this kind of problem? I tried all options to connect key and test but without success.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
I am a bit confused about the way you are making this request. It looks like you show us a screenshot of a web browser in which you have used the URL to upload results. Do I understand it correctly?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi David !!!
Thanks for the answer !!!
I will try to explain the steps I took below.
1- I inserted the test key inside the test case name that is in the robotframework:
2 - Later I run the test using the parameter "-x" to generate the xml file:
3 - I generated an access token
4 - Creating the requisition
* Response in terminal*
* Response using Insomnia *
I've tried following the steps in this example, but as you can see it doesn't work.
I'm newbie forgive me if there is any stupid mistake !!!
Anyone who can help with guidelines I'm very grateful!!!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In Insomnia, can you try to add a Query parameter which would be named autoCreateTestCases. The value needs to be set to true. That should solve your issue and you can see the results in Scale.
You mentioned you added test case keys to your robot tests. Do you have a test case key for each of your tests or some of your tests do not have a corresponding test case key?
If you want to use the curl command, you probably need to escape some characters in the URL.
https://api.zephyrscale.smartbear.com/v2/automations/executions/junit\?projectKey\="CORE"\&autoCreateTestCases\=true
or you could try to use the URL like this (between double quotes)
"https://api.zephyrscale.smartbear.com/v2/automations/executions/junit?projectKey=CORE&autoCreateTestCases=true"
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @DavidL, I have an additional question regarding your comment:
DavidL : "...or you could try to use the URL like this (between double quotes) 'https://api.zephyrscale.smartbear.com/v2/automations/executions/junit?projectKey=CORE&autoCreateTestCases=true' "
Question: I wanted to edit the environment of my test execution and can't seem to make it work. This is what I was trying out "https://api.zephyrscale.smartbear.com/v2/automations/executions/junit?projectKey=CORE&environmentName=Dev"
Cheers
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Unfortunately, you cannot modify the environment for your executions when using our automation endpoints.
David
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the quick reply @DavidL! To clarify, are we only allowed to use these 2 -- 'projectKey' and 'autoCreateTestCases' when using the automation endpoint? No other parameters can be added?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can also customize your test cycle using the testCycle parameter as described here:
