Ask a Question

Problems integrating RobotFramework and Zephyr Scale

serra94
New Contributor

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.

 

WhatsApp Image 2022-06-27 at 18.54.59.jpeg

3 REPLIES 3
DavidL
Staff

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?

serra94
New Contributor

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:

 

serra94_0-1656510530259.png

 

serra94_1-1656510557563.png

 

2 - Later I run the test using the parameter "-x" to generate the xml file:

 

serra94_2-1656510730931.png

 

serra94_3-1656510844580.png

 

3 - I generated an access token

 

serra94_4-1656511145235.png

 

serra94_5-1656511153337.png

 

4 - Creating the requisition

 

serra94_6-1656511524589.png

 

* Response  in terminal*

 

serra94_7-1656511582608.png

 

 

Response using Insomnia *

 

serra94_8-1656511938464.png

 

serra94_9-1656511955966.png

 

serra94_10-1656511965656.png

 

I've tried following the steps in this example, but as you can see it doesn't work.

 

serra94_11-1656512309586.png

link: https://support.smartbear.com/zephyr-scale-cloud/docs/test-automation/robot-framework-integration.ht...

 

I'm newbie forgive me if there is any stupid mistake !!!

 

Anyone who can help with guidelines I'm very grateful!!!

 

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"

cancel
Showing results for 
Search instead for 
Did you mean: