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&testPlanKey=SEM-3&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!