Import the execution results created with the Cucumber JSON output formatter. For more information please check the Cucumber reports documentation(example here).
Request
Example
Code Block
title
Example Input
[
{
"keyword": "Feature",
"name": "Arithmetic Operations",
"line": 3,
"description": "",
"tags": [
{
"name": "@DEMO-48",
"line": 1
},
{
"name": "@REQ_DEMO-45",
"line": 2
}
],
"id": "arithmetic-operations",
"uri": "features/1_DEMO-45.feature",
"elements": [
{
"comments": [
{
"value": "#In order to avoid silly mistakes",
"line": 4
},
{
"value": "#As a math idiot ",
"line": 5
},
{
"value": "#I want to be told the result of basic arithmetic operations between two numbers",
"line": 6
}
],
"keyword": "Scenario Outline",
"name": "Add two Numbers",
"line": 18,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-47",
"line": 9
}
],
"id": "arithmetic-operations;add-two-numbers;;2",
"type": "scenario",
"steps": [
{
"embeddings": [
{
"mime_type": "text/plain",
"data": "{data base64}"
},{
"mime_type": "text/plain",
"data": "{data base64}"
}
],
"keyword": "Given ",
"name": "I have entered 20 into the calculator",
"line": 11,
"match": {
"arguments": [
{
"offset": 15,
"val": "20"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 487000
}
},
{
"keyword": "And ",
"name": "I have entered 30 into the calculator",
"line": 12,
"match": {
"arguments": [
{
"offset": 15,
"val": "30"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 340000
}
},
{
"keyword": "When ",
"name": "I press add",
"line": 13,
"match": {
"arguments": [
{
"offset": 8,
"val": "add"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 327000
}
},
{
"keyword": "Then ",
"name": "the result should be 50 on the screen",
"line": 14,
"match": {
"arguments": [
{
"offset": 21,
"val": "50"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 11723000
}
}
]
},
{
"comments": [
{
"value": "#In order to avoid silly mistakes",
"line": 4
},
{
"value": "#As a math idiot ",
"line": 5
},
{
"value": "#I want to be told the result of basic arithmetic operations between two numbers",
"line": 6
}
],
"keyword": "Scenario Outline",
"name": "Add two Numbers",
"line": 19,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-47",
"line": 9
}
],
"id": "arithmetic-operations;add-two-numbers;;3",
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "I have entered 2 into the calculator",
"line": 11,
"match": {
"arguments": [
{
"offset": 15,
"val": "2"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 992000
}
},
{
"keyword": "And ",
"name": "I have entered 5 into the calculator",
"line": 12,
"match": {
"arguments": [
{
"offset": 15,
"val": "5"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 775000
}
},
{
"keyword": "When ",
"name": "I press add",
"line": 13,
"match": {
"arguments": [
{
"offset": 8,
"val": "add"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 322000
}
},
{
"keyword": "Then ",
"name": "the result should be 7 on the screen",
"line": 14,
"match": {
"arguments": [
{
"offset": 21,
"val": "7"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 423000
}
}
]
},
{
"comments": [
{
"value": "#In order to avoid silly mistakes",
"line": 4
},
{
"value": "#As a math idiot ",
"line": 5
},
{
"value": "#I want to be told the result of basic arithmetic operations between two numbers",
"line": 6
}
],
"keyword": "Scenario Outline",
"name": "Add two Numbers",
"line": 20,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-47",
"line": 9
}
],
"id": "arithmetic-operations;add-two-numbers;;4",
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "I have entered 0 into the calculator",
"line": 11,
"match": {
"arguments": [
{
"offset": 15,
"val": "0"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 384000
}
},
{
"keyword": "And ",
"name": "I have entered 40 into the calculator",
"line": 12,
"match": {
"arguments": [
{
"offset": 15,
"val": "40"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 313000
}
},
{
"keyword": "When ",
"name": "I press add",
"line": 13,
"match": {
"arguments": [
{
"offset": 8,
"val": "add"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 280000
}
},
{
"keyword": "Then ",
"name": "the result should be 40 on the screen",
"line": 14,
"match": {
"arguments": [
{
"offset": 21,
"val": "40"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 350000
}
}
]
},
{
"keyword": "Scenario Outline",
"name": "Divide Two Numbers",
"line": 32,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-46",
"line": 23
}
],
"id": "arithmetic-operations;divide-two-numbers;;2",
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "I have entered 8 into the calculator",
"line": 25,
"match": {
"arguments": [
{
"offset": 15,
"val": "8"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 344000
}
},
{
"keyword": "And ",
"name": "I have entered 4 into the calculator",
"line": 26,
"match": {
"arguments": [
{
"offset": 15,
"val": "4"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 292000
}
},
{
"keyword": "When ",
"name": "I press divide",
"line": 27,
"match": {
"arguments": [
{
"offset": 8,
"val": "divide"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 291000
}
},
{
"keyword": "Then ",
"name": "the result should be 2 on the screen",
"line": 28,
"match": {
"arguments": [
{
"offset": 21,
"val": "2"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 320000
}
}
]
},
{
"keyword": "Scenario Outline",
"name": "Divide Two Numbers",
"line": 33,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-46",
"line": 23
}
],
"id": "arithmetic-operations;divide-two-numbers;;3",
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "I have entered 12 into the calculator",
"line": 25,
"match": {
"arguments": [
{
"offset": 15,
"val": "12"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 1102000
}
},
{
"keyword": "And ",
"name": "I have entered 3 into the calculator",
"line": 26,
"match": {
"arguments": [
{
"offset": 15,
"val": "3"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 891000
}
},
{
"keyword": "When ",
"name": "I press divide",
"line": 27,
"match": {
"arguments": [
{
"offset": 8,
"val": "divide"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 291000
}
},
{
"keyword": "Then ",
"name": "the result should be 4 on the screen",
"line": 28,
"match": {
"arguments": [
{
"offset": 21,
"val": "4"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 339000
}
}
]
},
{
"keyword": "Scenario Outline",
"name": "Divide Two Numbers",
"line": 34,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-46",
"line": 23
}
],
"id": "arithmetic-operations;divide-two-numbers;;4",
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "I have entered 3 into the calculator",
"line": 25,
"match": {
"arguments": [
{
"offset": 15,
"val": "3"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 304000
}
},
{
"keyword": "And ",
"name": "I have entered 1 into the calculator",
"line": 26,
"match": {
"arguments": [
{
"offset": 15,
"val": "1"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 309000
}
},
{
"keyword": "When ",
"name": "I press divide",
"line": 27,
"match": {
"arguments": [
{
"offset": 8,
"val": "divide"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 257000
}
},
{
"keyword": "Then ",
"name": "the result should be 5 on the screen",
"line": 28,
"match": {
"arguments": [
{
"offset": 21,
"val": "5"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 840000
}
}
]
}
]
}
]
400 BAD_REQUEST : application/json : No execution results where provided.
401 UNAUTHORIZED : application/json : The Xray license is not valid.
500 INTERNAL SERVER ERROR : application/json : An internal error occurred when importing execution results.
...
Expand
title
POST /rest/raven/1.0/import/execution/cucumber/multipart
Panel
borderColor
#ccc
borderStyle
solid
Import the execution results created with the Cucumber JSON output formatter. For more information, please check the Cucumber reports documentation(example here).
Note: Currently, if you specify the Test Plan custom field, the Tests of the Test Execution will not be added automatically to the Test Plan.
Request
Example
Code Block
title
Result Json
[
{
"keyword": "Feature",
"name": "Arithmetic Operations",
"line": 3,
"description": "",
"tags": [
{
"name": "@DEMO-48",
"line": 1
},
{
"name": "@REQ_DEMO-45",
"line": 2
}
],
"id": "arithmetic-operations",
"uri": "features/1_DEMO-45.feature",
"elements": [
{
"comments": [
{
"value": "#In order to avoid silly mistakes",
"line": 4
},
{
"value": "#As a math idiot ",
"line": 5
},
{
"value": "#I want to be told the result of basic arithmetic operations between two numbers",
"line": 6
}
],
"keyword": "Scenario Outline",
"name": "Add two Numbers",
"line": 18,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-47",
"line": 9
}
],
"id": "arithmetic-operations;add-two-numbers;;2",
"type": "scenario",
"steps": [
{
"embeddings": [
{
"mime_type": "text/plain",
"data": "{data base64}"
},{
"mime_type": "text/plain",
"data": "{data base64}"
}
"keyword": "Given ",
"name": "I have entered 20 into the calculator",
"line": 11,
"match": {
"arguments": [
{
"offset": 15,
"val": "20"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 487000
}
},
{
"keyword": "And ",
"name": "I have entered 30 into the calculator",
"line": 12,
"match": {
"arguments": [
{
"offset": 15,
"val": "30"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 340000
}
},
{
"keyword": "When ",
"name": "I press add",
"line": 13,
"match": {
"arguments": [
{
"offset": 8,
"val": "add"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 327000
}
},
{
"keyword": "Then ",
"name": "the result should be 50 on the screen",
"line": 14,
"match": {
"arguments": [
{
"offset": 21,
"val": "50"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 11723000
}
}
]
},
{
"comments": [
{
"value": "#In order to avoid silly mistakes",
"line": 4
},
{
"value": "#As a math idiot ",
"line": 5
},
{
"value": "#I want to be told the result of basic arithmetic operations between two numbers",
"line": 6
}
],
"keyword": "Scenario Outline",
"name": "Add two Numbers",
"line": 19,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-47",
"line": 9
}
],
"id": "arithmetic-operations;add-two-numbers;;3",
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "I have entered 2 into the calculator",
"line": 11,
"match": {
"arguments": [
{
"offset": 15,
"val": "2"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 992000
}
},
{
"keyword": "And ",
"name": "I have entered 5 into the calculator",
"line": 12,
"match": {
"arguments": [
{
"offset": 15,
"val": "5"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 775000
}
},
{
"keyword": "When ",
"name": "I press add",
"line": 13,
"match": {
"arguments": [
{
"offset": 8,
"val": "add"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 322000
}
},
{
"keyword": "Then ",
"name": "the result should be 7 on the screen",
"line": 14,
"match": {
"arguments": [
{
"offset": 21,
"val": "7"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 423000
}
}
]
},
{
"comments": [
{
"value": "#In order to avoid silly mistakes",
"line": 4
},
{
"value": "#As a math idiot ",
"line": 5
},
{
"value": "#I want to be told the result of basic arithmetic operations between two numbers",
"line": 6
}
],
"keyword": "Scenario Outline",
"name": "Add two Numbers",
"line": 20,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-47",
"line": 9
}
],
"id": "arithmetic-operations;add-two-numbers;;4",
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "I have entered 0 into the calculator",
"line": 11,
"match": {
"arguments": [
{
"offset": 15,
"val": "0"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 384000
}
},
{
"keyword": "And ",
"name": "I have entered 40 into the calculator",
"line": 12,
"match": {
"arguments": [
{
"offset": 15,
"val": "40"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 313000
}
},
{
"keyword": "When ",
"name": "I press add",
"line": 13,
"match": {
"arguments": [
{
"offset": 8,
"val": "add"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 280000
}
},
{
"keyword": "Then ",
"name": "the result should be 40 on the screen",
"line": 14,
"match": {
"arguments": [
{
"offset": 21,
"val": "40"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 350000
}
}
]
},
{
"keyword": "Scenario Outline",
"name": "Divide Two Numbers",
"line": 32,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-46",
"line": 23
}
],
"id": "arithmetic-operations;divide-two-numbers;;2",
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "I have entered 8 into the calculator",
"line": 25,
"match": {
"arguments": [
{
"offset": 15,
"val": "8"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 344000
}
},
{
"keyword": "And ",
"name": "I have entered 4 into the calculator",
"line": 26,
"match": {
"arguments": [
{
"offset": 15,
"val": "4"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 292000
}
},
{
"keyword": "When ",
"name": "I press divide",
"line": 27,
"match": {
"arguments": [
{
"offset": 8,
"val": "divide"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 291000
}
},
{
"keyword": "Then ",
"name": "the result should be 2 on the screen",
"line": 28,
"match": {
"arguments": [
{
"offset": 21,
"val": "2"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 320000
}
}
]
},
{
"keyword": "Scenario Outline",
"name": "Divide Two Numbers",
"line": 33,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-46",
"line": 23
}
],
"id": "arithmetic-operations;divide-two-numbers;;3",
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "I have entered 12 into the calculator",
"line": 25,
"match": {
"arguments": [
{
"offset": 15,
"val": "12"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 1102000
}
},
{
"keyword": "And ",
"name": "I have entered 3 into the calculator",
"line": 26,
"match": {
"arguments": [
{
"offset": 15,
"val": "3"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 891000
}
},
{
"keyword": "When ",
"name": "I press divide",
"line": 27,
"match": {
"arguments": [
{
"offset": 8,
"val": "divide"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 291000
}
},
{
"keyword": "Then ",
"name": "the result should be 4 on the screen",
"line": 28,
"match": {
"arguments": [
{
"offset": 21,
"val": "4"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 339000
}
}
]
},
{
"keyword": "Scenario Outline",
"name": "Divide Two Numbers",
"line": 34,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-46",
"line": 23
}
],
"id": "arithmetic-operations;divide-two-numbers;;4",
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "I have entered 3 into the calculator",
"line": 25,
"match": {
"arguments": [
{
"offset": 15,
"val": "3"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 304000
}
},
{
"keyword": "And ",
"name": "I have entered 1 into the calculator",
"line": 26,
"match": {
"arguments": [
{
"offset": 15,
"val": "1"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 309000
}
},
{
"keyword": "When ",
"name": "I press divide",
"line": 27,
"match": {
"arguments": [
{
"offset": 8,
"val": "divide"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 257000
}
},
{
"keyword": "Then ",
"name": "the result should be 5 on the screen",
"line": 28,
"match": {
"arguments": [
{
"offset": 21,
"val": "5"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 840000
}
}
]
}
]
}
]
It's possible to assign Test Environment(s) to the newly-created Test Execution. For that, you need to pass the ID of the custom field corresponding to the "Test Environments" custom field. In the JSON example below, it is 10030 for the info object.
Note: Currently, if you specify the Test Plan custom field, the Tests of the Test Execution will not be added automatically to the Test Plan.
400 BAD_REQUEST : application/json : No execution results where provided.
401 UNAUTHORIZED : application/json : The Xray license is not valid.
500 INTERNAL SERVER ERROR : application/json : An internal error occurred when importing execution results.
...
Expand
title
POST /rest/raven/1.0/import/execution/testng/multipart
Panel
borderColor
#ccc
borderStyle
solid
Import the execution results created with the NUnit XML output formatter. For more information please check the documentation about TestNG integration.
Note: Currently, if you specify the Test Plan custom field, the Tests of the Test Execution will not be added automatically to the Test Plan.
Request
Example
Code Block
language
xml
title
TestNG XML Report
<?xml version="1.0" encoding="UTF-8"?>
<testng-results skipped="0" failed="2" ignored="0" total="8" passed="6">
<reporter-output>
</reporter-output>
<suite name="TestAll" duration-ms="33" started-at="2018-03-06T11:53:00Z" finished-at="2018-03-06T11:53:00Z">
<groups>
</groups>
<test name="calculator" duration-ms="33" started-at="2018-03-06T11:53:00Z" finished-at="2018-03-06T11:53:00Z">
<class name="com.xpand.java.CalcTest">
<test-method status="PASS" signature="setUp()[pri:0, instance:com.xpand.java.CalcTest@36d4b5c]" name="setUp" is-config="true" duration-ms="9" started-at="2018-03-06T11:53:00Z" finished-at="2018-03-06T11:53:00Z">
<reporter-output>
</reporter-output>
</test-method> <!-- setUp -->
<test-method status="PASS" signature="CanAddNumbers()[pri:0, instance:com.xpand.java.CalcTest@36d4b5c]" name="CanAddNumbers" duration-ms="2" started-at="2018-03-06T11:53:00Z" finished-at="2018-03-06T11:53:00Z">
<reporter-output>
</reporter-output>
<attributes>
<attribute name="test">
<![CDATA[]]>
</attribute> <!-- test -->
<attribute name="requirement">
<![CDATA[CALC-1235]]>
</attribute> <!-- requirement -->
<attribute name="labels">
<![CDATA[core]]>
</attribute> <!-- labels -->
</attributes>
</test-method> <!-- CanAddNumbers -->
<test-method status="PASS" signature="CanAddNumbersFromGivenData(int, int, int)[pri:0, instance:com.xpand.java.CalcTest@36d4b5c]" name="CanAddNumbersFromGivenData" duration-ms="0" started-at="2018-03-06T11:53:00Z" data-provider="ValidDataProvider" finished-at="2018-03-06T11:53:00Z">
<params>
<param index="0">
<value>
<![CDATA[1]]>
</value>
</param>
<param index="1">
<value>
<![CDATA[2]]>
</value>
</param>
<param index="2">
<value>
<![CDATA[3]]>
</value>
</param>
</params>
<reporter-output>
</reporter-output>
<attributes>
<attribute name="test">
<![CDATA[]]>
</attribute> <!-- test -->
<attribute name="requirement">
<![CDATA[CALC-1235]]>
</attribute> <!-- requirement -->
<attribute name="labels">
<![CDATA[core]]>
</attribute> <!-- labels -->
</attributes>
</test-method> <!-- CanAddNumbersFromGivenData -->
<test-method status="FAIL" signature="CanAddNumbersFromGivenData(int, int, int)[pri:0, instance:com.xpand.java.CalcTest@36d4b5c]" name="CanAddNumbersFromGivenData" duration-ms="1" started-at="2018-03-06T11:53:00Z" data-provider="ValidDataProvider" finished-at="2018-03-06T11:53:00Z">
<params>
<param index="0">
<value>
<![CDATA[2]]>
</value>
</param>
<param index="1">
<value>
<![CDATA[3]]>
</value>
</param>
<param index="2">
<value>
<![CDATA[4]]>
</value>
</param>
</params>
<exception class="java.lang.AssertionError">
<message>
<![CDATA[expected [4] but found [5]]]>
</message>
<full-stacktrace>
<![CDATA[java.lang.AssertionError: expected [4] but found [5]
at org.testng.Assert.fail(Assert.java:93)
at org.testng.Assert.failNotEquals(Assert.java:512)
at org.testng.Assert.assertEqualsImpl(Assert.java:134)
at org.testng.Assert.assertEquals(Assert.java:115)
at org.testng.Assert.assertEquals(Assert.java:388)
at org.testng.Assert.assertEquals(Assert.java:398)
at com.xpand.java.CalcTest.CanAddNumbersFromGivenData(CalcTest.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:661)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:869)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1193)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:744)
at org.testng.TestRunner.run(TestRunner.java:602)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:380)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1226)
at org.testng.TestNG.runSuites(TestNG.java:1144)
at org.testng.TestNG.run(TestNG.java:1115)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:283)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:120)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:373)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:334)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:119)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:407)
]]>
</full-stacktrace>
</exception> <!-- java.lang.AssertionError -->
<reporter-output>
</reporter-output>
<attributes>
<attribute name="test">
<![CDATA[]]>
</attribute> <!-- test -->
<attribute name="requirement">
<![CDATA[CALC-1235]]>
</attribute> <!-- requirement -->
<attribute name="labels">
<![CDATA[core]]>
</attribute> <!-- labels -->
</attributes>
</test-method> <!-- CanAddNumbersFromGivenData -->
<test-method status="PASS" signature="CanAddNumbersFromGivenData(int, int, int)[pri:0, instance:com.xpand.java.CalcTest@36d4b5c]" name="CanAddNumbersFromGivenData" duration-ms="0" started-at="2018-03-06T11:53:00Z" data-provider="ValidDataProvider" finished-at="2018-03-06T11:53:00Z">
<params>
<param index="0">
<value>
<![CDATA[-1]]>
</value>
</param>
<param index="1">
<value>
<![CDATA[1]]>
</value>
</param>
<param index="2">
<value>
<![CDATA[0]]>
</value>
</param>
</params>
<reporter-output>
</reporter-output>
<attributes>
<attribute name="test">
<![CDATA[]]>
</attribute> <!-- test -->
<attribute name="requirement">
<![CDATA[CALC-1235]]>
</attribute> <!-- requirement -->
<attribute name="labels">
<![CDATA[core]]>
</attribute> <!-- labels -->
</attributes>
</test-method> <!-- CanAddNumbersFromGivenData -->
<test-method status="FAIL" signature="CanDoStuff()[pri:0, instance:com.xpand.java.CalcTest@36d4b5c]" name="CanDoStuff" duration-ms="0" started-at="2018-03-06T11:53:00Z" finished-at="2018-03-06T11:53:00Z">
<exception class="java.lang.AssertionError">
<message>
<![CDATA[null]]>
</message>
<full-stacktrace>
<![CDATA[java.lang.AssertionError: null
at org.testng.Assert.fail(Assert.java:93)
at org.testng.Assert.assertNotEquals(Assert.java:897)
at org.testng.Assert.assertNotEquals(Assert.java:902)
at com.xpand.java.CalcTest.CanDoStuff(CalcTest.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:661)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:869)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1193)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:744)
at org.testng.TestRunner.run(TestRunner.java:602)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:380)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1226)
at org.testng.TestNG.runSuites(TestNG.java:1144)
at org.testng.TestNG.run(TestNG.java:1115)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:283)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:120)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:373)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:334)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:119)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:407)
]]>
</full-stacktrace>
</exception> <!-- java.lang.AssertionError -->
<reporter-output>
</reporter-output>
</test-method> <!-- CanDoStuff -->
<test-method status="PASS" signature="CanDivide()[pri:0, instance:com.xpand.java.CalcTest@36d4b5c]" name="CanDivide" duration-ms="0" started-at="2018-03-06T11:53:00Z" finished-at="2018-03-06T11:53:00Z">
<reporter-output>
</reporter-output>
<attributes>
<attribute name="test">
<![CDATA[]]>
</attribute> <!-- test -->
<attribute name="requirement">
<![CDATA[CALC-1235]]>
</attribute> <!-- requirement -->
<attribute name="labels">
<![CDATA[core]]>
</attribute> <!-- labels -->
</attributes>
</test-method> <!-- CanDivide -->
<test-method status="PASS" signature="CanMultiplyX()[pri:0, instance:com.xpand.java.CalcTest@36d4b5c]" name="CanMultiplyX" duration-ms="0" started-at="2018-03-06T11:53:00Z" finished-at="2018-03-06T11:53:00Z">
<reporter-output>
</reporter-output>
<attributes>
<attribute name="test">
<![CDATA[]]>
</attribute> <!-- test -->
<attribute name="requirement">
<![CDATA[CALC-1235]]>
</attribute> <!-- requirement -->
<attribute name="labels">
<![CDATA[core]]>
</attribute> <!-- labels -->
</attributes>
</test-method> <!-- CanMultiplyX -->
<test-method status="PASS" signature="CanSubtract()[pri:0, instance:com.xpand.java.CalcTest@36d4b5c]" name="CanSubtract" duration-ms="0" started-at="2018-03-06T11:53:00Z" finished-at="2018-03-06T11:53:00Z">
<reporter-output>
</reporter-output>
<attributes>
<attribute name="test">
<![CDATA[]]>
</attribute> <!-- test -->
<attribute name="requirement">
<![CDATA[CALC-1235]]>
</attribute> <!-- requirement -->
<attribute name="labels">
<![CDATA[core]]>
</attribute> <!-- labels -->
</attributes>
</test-method> <!-- CanSubtract -->
<test-method status="PASS" signature="tearDown()[pri:0, instance:com.xpand.java.CalcTest@36d4b5c]" name="tearDown" is-config="true" duration-ms="0" started-at="2018-03-06T11:53:00Z" finished-at="2018-03-06T11:53:00Z">
<reporter-output>
</reporter-output>
</test-method> <!-- tearDown -->
</class> <!-- com.xpand.java.CalcTest -->
</test> <!-- calculator -->
</suite> <!-- TestAll -->
</testng-results>
400 BAD_REQUEST : application/json : Returns the error.
401 UNAUTHORIZED : application/json : The Xray license is not valid.
500 INTERNAL SERVER ERROR : application/json : An internal error occurred when importing execution results.
...
Expand
title
POST /rest/raven/1.0/import/execution/nunit
Panel
borderColor
#ccc
borderStyle
solid
Import the execution results created with the NUnit XML output formatter. For more information please check the documentation about NUnit integration.
Request
QUERY PARAMETERS
parameter
type
description
projectKey
String
- key of the project where the Test Execution (if the testExecKey parameter wasn't provided) and the tests (if they aren't created yet) are going to be created.
testExecKey
String
- key of the Test Execution.
testPlanKey
String
- key of the Test Plan; if you specify the Test Plan, the Tests will be added automatically to the Test Plan if they're not part of it.
testEnvironments
String
- a string containing a list of test environments separated by ";"
revision
String
- source code and documentation version used in the test execution.
fixVersion
String
- the Fix Version associated with the test execution (it supports only one value).
multipart/form-data:
"file" : a MultipartFormParam containing a XML file to import.