I am trying to import a cucumber json report file using Xray import from Jenkins.
Its throwing the following error -
22:54:56 Starting XRAY: Results Import Task... 22:54:56 ########################################################## 22:54:56 #### Xray is importing the execution results #### 22:54:56 ########################################################## 22:54:56 File: /var/jenkins_home/workspace/Core-TestAutomation-ServiceXraytest/MicroServiceTest/target/jsonReports/CreateAccount.json 22:55:10 Starting to import results from CreateAccount.json 22:55:10 ERROR: Step ?Xray: Results Import Task? failed: Unable to confirm Result of the upload..... Upload Failed! Status:400 Response:{"error":"Error parsing info file!"}
Json trying to import via jenkins -
[
{
"line": 2,
"elements": [
{
"start_timestamp": "2022-04-29T03:45:37.759Z",
"line": 13,
"name": "Test For Validate create Account",
"description": "",
"id": "account-service-:-create-a-new-account;;2",
"type": "scenario",
"keyword": "Scenario Outline",
"steps": [
{
"result": {
"duration": 1933907129,
"status": "passed"
},
"line": 6,
"name": "\"Creating new account for card with payment method XXX\" issue a new \"XXX\" of \"XXX\" card on \"XXX\"",
"match": {
"arguments": [
{
"val": "\"Creating new account for XXX card XXX\"",
"offset": 0
},
{
"val": "\"XXX\"",
"offset": 83
},
{
"val": "\"XXX\"",
"offset": 99
},
{
"val": "\"XXX\"",
"offset": 115
}
],
"location": "StepDefinition_Service_Account_Create(String,String,String,String)"
},
"keyword": "Given "
},
{
"result": {
"duration": 7006096416,
"status": "passed"
},
"line": 7,
"name": "create account with XXX\"XXX\" \"XXX\" \"XXX\" \"XXX\" \"XXX\"",
"match": {
"arguments": [
{
"val": "\"XXX\"",
"offset": 26
},
{
"val": "\"XXX\"",
"offset": 39
},
{
"val": "\"XXX\"",
"offset": 47
},
{
"val": "\"XXX\"",
"offset": 54
},
{
"val": "\"XXX\"",
"offset": 63
}
],
"location": "StepDefinition_Service_Account_Create(String,String,String,String,String)"
},
"keyword": "When "
},
{
"result": {
"duration": 19169139,
"status": "passed"
},
"line": 8,
"name": "I should receive response of \"200\" with \"ACCEPTED\"",
"match": {
"arguments": [
{
"val": "\"200\"",
"offset": 29
},
{
"val": "\"ACCEPTED\"",
"offset": 40
}
],
"location": "StepDefinition_Service_Account_Create.i_should_receive_response_of_with(String,String)"
},
"keyword": "Then "
},
{
"result": {
"duration": 2317325673,
"status": "passed"
},
"line": 9,
"name": "I should validate events log \"XXX\"",
"match": {
"arguments": [
{
"val": "\"XXX\"",
"offset": 60
}
],
"location": "StepDefinition_Service_Account_Create(String)"
},
"keyword": "Then "
}
],
"tags": [
{
"name": "@REQ_AUT-1085"
},
{
"name": "@runthis"
},
{
"name": "@TEST_AUT-1093"
},
{
"name": "@L1-Testing"
}
]
},
],
"name": "Service : Create a new Account",
"description": "",
"id": "account-service-:-create-a-new-account",
"keyword": "Feature",
"uri": "classpath:Service/Account/CreateAccount/Account.feature",
"tags": [
{
"name": "@REQ_AUT-1085",
"type": "Tag",
"location": {
"line": 1,
"column": 1
}
}
]
}
]
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.