Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Not able upload results of test execution to xray through mvn command Getting status code 404.

Kajol Singh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 2, 2022

I am trying to import the test automation execution results from a testng-results.xml in target/surefire-reports folder of maven project through maven command :

eclipse-project-folder>mvn com.xpandit.xray:xray-maven-plugin:xray

but I am getting this error :

04:40:58.531 [main] INFO com.xpandit.xray.service.impl.delegates.UploadDelegate - Uploading to: https://xraypoctesting.atlassian.net/rest/raven/1.0/import/execution/testng?projectKey=SEM&testPlanKey=SEM-3&fixVersion=V1.0
04:40:58.531 [main] DEBUG com.xpandit.xray.service.impl.delegates.UploadResponseResolverDelegate - Status Code of Request:404
04:40:58.535 [main] ERROR com.xpandit.xray.service.impl.delegates.UploadResponseResolverDelegate - Upload Failed! Status:404
04:40:58.536 [main] ERROR com.xpandit.xray.service.impl.delegates.UploadResponseResolverDelegate - Response:<?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>404</status-code><message>null for uri: https://xraypoctesting.atlassian.net/rest/raven/1.0/import/execution/testng?projectKey=SEM&amp;testPlanKey=SEM-3&amp;fixVersion=V1.0</message></status>

in the pom.xml file i am provding my jira credentials under properties tag :

<properties>

<xray.jiraURL>https://xraypoctesting.atlassian.net</xray.jiraURL>
<xray.resultsFormat>TESTNG</xray.resultsFormat>
<xray.username>myusername@gmail.com</xray.username>
<xray.password>PIEN5QeaH0FaZuhif2zXA85C</xray.password>
<xray.projectKey>SEM</xray.projectKey>
<xray.testPlanKey>SEM-3</xray.testPlanKey>
<xray.fixVersion>V1.0</xray.fixVersion>
<xray.surefire.location>${basedir}/target/surefire-reports</xray.surefire.location>

</properties>

for password here i have used atlassian jira api token.

Pls help here!

0 answers

Suggest an answer

Log in or Sign up to answer