Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to upload TestNG XML results

Iryna R I'm New Here Jun 23, 2021

I'm using Xray for JIRA Jenkins Plugin. Results import task fails with error below. How can I provide a project key or test exec key? 

Shall I write this in testNG config file testng.xml?

Now my testnh.xml looks like:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite verbose="0" name="Suite2" preserve-order="true" parallel="false" thread-count="2">
<listeners>
</listeners>
<test name="User Tests">
<groups>
<run>
<include name="userEmployeeTests"/>
</run>
</groups>
<packages>
<package name="tests.user.employeeTests"/>
</packages>
<classes>
<class name="tests.user.employeeTests.TestOne"/>
<class name="tests.user.employeeTests.TestTwoe"/>
</classes>
</test>
</suite>

How to add project key or test exec key?

Starting XRAY: Results Import Task...
##########################################################
####     Xray is importing the execution results      ####
##########################################################
File found: /var/lib/jenkins/workspace/_tests/src/test/resources/testng.xml
Starting to import results from testng.xml
ERROR: Step ‘Xray: Results Import Task’ failed: Unable to upload TestNG XML results: Please provide a project key or test exec key
Finished: FAILURE

 

1 answer

Hello Iryna! Welcome to the Atlassian Community!

Please take a look at this Community post as is seems similar to your question. If this does not point you in the proper direction, please answer the following:

  • How are you importing the xml file to XRay?
    • Are you using curl? 
    • Command line?
  • Which testing framework are you using (for example, JUnit, Cucumber, etc)? 
  • What else have you tried?

Regards,

Hyrum

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

🤺 Atlympic Event: Partnerships

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

139 views 2 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you