Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Using Jenkins to send json results to XRAY through x-ray-connect API

I get a 200 status and the results do not show up in XRAY. I do not get any error when I try to get the results into XRAY. 

 

Here is my console output. 

 

Started by user Adil Ahmed Chaudry
Running as SYSTEM
Building on master in workspace C:\Program Files (x86)\Jenkins\workspace\QFRDB
Parsing POMs
Established TCP socket on 65485
[QFRDB] $ "C:\Program Files (x86)\Jenkins\tools\hudson.model.JDK\JDK_/bin/java" -cp "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven35-agent-1.13.jar;C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven\boot\plexus-classworlds-2.5.2.jar;C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven/conf/logging" jenkins.maven3.agent.Maven35Main "C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven" "C:\Program Files (x86)\Jenkins\war\WEB-INF\lib\remoting-3.36.1.jar" "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven35-interceptor-1.13.jar" "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.13.jar" 65485
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven:  -B -f C:\Users\aachaudr\eclipse-workspace\QFRDB\pom.xml clean install
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------------< com.nasa:QFRDB >---------------------------
[INFO] Building QFRDB 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ QFRDB ---[INFO] Deleting C:\Users\aachaudr\eclipse-workspace\QFRDB\target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ QFRDB ---[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ QFRDB ---[INFO] Compiling 19 source files to C:\Users\aachaudr\eclipse-workspace\QFRDB\target\classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ QFRDB ---[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ QFRDB ---[INFO] Compiling 1 source file to C:\Users\aachaudr\eclipse-workspace\QFRDB\target\test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ QFRDB ---[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.nasa.qfrdb.runner.TestRunnerTest
 ***ReadProperties - userDir*** C:\Users\aachaudr\eclipse-workspace\QFRDB
 ***ReadProperties - loadDriver method:*** chrome
Starting ChromeDriver 79.0.3945.36 (3582db32b33893869b8c1339e8f4d9ed1816f143-refs/branch-heads/3945@{#614}) on port 26077
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Feb 27, 2020 1:29:54 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
02-27-2020 13:29:54 INFO  TestBase:43 - Chrome browser is invoked
02-27-2020 13:29:55 INFO  TestBase:75 - Driver is returned 
ReadProperties - url:  https://qfrdb.test.hq.nasa.gov
Browser Open
02-27-2020 13:30:04 INFO  HomePage:33 - QFRDB  HomePage constructor is invoked
02-27-2020 13:30:07 INFO  HomePage:39 -  Java Home Page Title is returned
Were on Home page and the title is: Access Launchpad
02-27-2020 13:30:07 INFO  HomePageStepDefinition:56 - Completed executing scenario : HomePage Test
 ------------------ runAfterScenario ------------------  : Status: Failed
 ***HomePageStepDefinition - runAfterScenario ***  :Take screenshot
02-27-2020 13:30:07 INFO  HomePageStepDefinition:74 - C:\Users\aachaudr\eclipse-workspace\QFRDB\target\surefire-reports\Screenshots\Failed\HomePage Test-02-27-2020-13-30-07.png
02-27-2020 13:30:07 INFO  TestBase:70 - Driver is closed

Failed scenarios:
src/test/java/com/nasa/qfrdb/feature/qfrdb.feature:9 # Scenario: HomePage Test

1 Scenarios (1 failed)
12 Steps (1 failed, 10 skipped, 1 passed)
0m16.165s

java.lang.AssertionError: We are not on the Home Page expected [true] but found [false]
	at org.testng.Assert.fail(Assert.java:93)
	at org.testng.Assert.failNotEquals(Assert.java:512)
	at org.testng.Assert.assertTrue(Assert.java:41)
	at com.nasa.qfrdb.stepDefinition.HomePageStepDefinition.user_verifies_homepage_title(HomePageStepDefinition.java:119)
	at ?.Then User verifies homepage title(src/test/java/com/nasa/qfrdb/feature/qfrdb.feature:11)

[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.669 s - in com.nasa.qfrdb.runner.TestRunnerTest
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[JENKINS] Recording test results
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ QFRDB ---[INFO] Building jar: C:\Users\aachaudr\eclipse-workspace\QFRDB\target\QFRDB-0.0.1-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ QFRDB ---[INFO] Installing C:\Users\aachaudr\eclipse-workspace\QFRDB\target\QFRDB-0.0.1-SNAPSHOT.jar to C:\windows\system32\config\systemprofile\.m2\repository\com\nasa\QFRDB\0.0.1-SNAPSHOT\QFRDB-0.0.1-SNAPSHOT.jar
[INFO] Installing C:\Users\aachaudr\eclipse-workspace\QFRDB\pom.xml to C:\windows\system32\config\systemprofile\.m2\repository\com\nasa\QFRDB\0.0.1-SNAPSHOT\QFRDB-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  32.483 s
[INFO] Finished at: 2020-02-27T13:30:11-05:00
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving C:\Users\aachaudr\eclipse-workspace\QFRDB\pom.xml to com.nasa/QFRDB/0.0.1-SNAPSHOT/QFRDB-0.0.1-SNAPSHOT.pom
[JENKINS] Archiving C:\Users\aachaudr\eclipse-workspace\QFRDB\target\QFRDB-0.0.1-SNAPSHOT.jar to com.nasa/QFRDB/0.0.1-SNAPSHOT/QFRDB-0.0.1-SNAPSHOT.jar
channel stopped
Starting XRAY: Results Import Task...
##########################################################
####   Xray is importing the feature files  ####
##########################################################
File: C:\Users\aachaudr\eclipse-workspace\QFRDB\target\cucumber.json
Starting to import results from cucumber.json
Response: (200) 
<!DOCTYPE html>
<html lang="en">
<head>
    








<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<meta name="application-name" content="JIRA" data-name="jira" data-version="8.1.0"><meta name="ajs-server-scheme" content="https">
<meta name="ajs-server-port" content="443">
<meta name="ajs-server-name" content="jira.stage.hq.nasa.gov">
<meta name="ajs-behind-proxy" content="null">
<meta name="ajs-base-url" content="https://jira.stage.hq.nasa.gov">
<meta name="ajs-dev-mode" content="false">
<meta name="ajs-context-path" content="">
<meta name="ajs-version-number" content="8.1.0">
<meta name="ajs-build-number" content="801000">
<meta name="ajs-is-beta" content="false">
<meta name="ajs-is-rc" content="false">
<meta name="ajs-is-snapshot" content="false">
<meta name="ajs-is-milestone" content="false">
<meta name="ajs-remote-user" content="aachaudr">
<meta name="ajs-remote-user-fullname" content="Adil Ahmed Chaudry">
<meta name="ajs-user-locale" content="en_US">
<meta name="ajs-user-locale-group-separator" content=",">
<meta name="ajs-app-title" content="JIRA Stage">
<meta name="ajs-keyboard-shortcuts-enabled" content="true">
<meta name="ajs-keyboard-accesskey-modifier" content="Alt">
<meta name="ajs-enabled-dark-features" content="

XRAY_IS_REQUEST_SUCCESSFUL: true
XRAY_TESTS: 
XRAY_ISSUES_MODIFIED: 
XRAY_TEST_EXECS: 
Finished: SUCCESS

 

1 answer

Hi @Adil_Chaudry

Regarding this issue, we need more details from your side.

Please reach out support service desk.

Best Regards,

Team Xray

Suggest an answer

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

New Cloud Apps Roundup - Spring 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

202 views 3 19
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