Xray and Gitlab integartion through CI pipeline: Failed to upload test result to Xray.

sreepriya September 25, 2020

Hi, I am working on test automation and trying to integrate  Xray and Gitlab. Below are my working environment

Language : python + selenium

framework : Behave

Execution : CI pipeline

 

Below steps I have done so far:

-I have created my test cases in Xray as Test sets - Done

-Exported feature files automatically to Gitalb - SUCCESS

-Executed the tests as well - SUCCESS

-Generated Json output file- SUCCESS

-Export results back to Xray. - SUCCESS. 

Overall Pipeline status is  "Job succeeded"

 

But the ISSUE is I couldn't see any result status pass/fail in Xray. 

 

Below commands I have used in my yaml file

 

- echo "Fetching features from xray."
- curl -u $user:$password "$jira_server_url/rest/raven/1.0/export/test?keys=Test-74&fz=true" -o tests/uat/features/features.zip
- rm -f features/*.feature
- unzip -o tests/uat/features/features.zip -d tests/uat/features/features_zip/


- echo "Executing with cucumber...."
- behave tests/uat/features/features_zip --format=json.pretty -o data.json

- echo "Uploading results to Xray..."
- curl -u $user:$password --data @Data.json "$jira_server_url/rest/raven/1.0/import/execution/behave"


- echo "Done"

 

could you please help me to resolve this issue

1 answer

0 votes
Sergio Freire - Xblend
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2020

Hi @sreepriya 

Concerning the issue you're having, I recommend you reach out Xray support and the team will be glad to help you out.

 

Best Regards,

Sérgio Freire, Solution Architect and Testing Advocate @Xray

Personal blog on testing, Agile and software development: https://sergiofreire.com

Follow me on Twitter: https://twitter.com/darktelecom

sreepriya September 25, 2020

Hi Sergio,

Ok . I will. 

 

Thank you

Sreepriya

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events