curl --location --request POST 'https://BASEURL/rest/raven/1.0/import/execution/cucumber/multipart' \
--header 'Authorization: Basic <BASE64TOKEN>' \
--header 'Content-Type: text/plain' \
--header 'Cookie: atlassian.xsrf.token=BTKT-ZSIG-6WX3-DUMF_61a524400a0259c30c20869502285af83e4271a2_lin' \
--data-raw '{
"testExecutionKey": "ODP-1374",
"tests" :[
{
"line": 2,
"elements": [
{
"start_timestamp": "2020-10-15T15:56:07.731Z",
"line": 6,
"name": "TestCase 3_Test_15OCT_STORELOC",
"description": "",
"id": "test-15oct-storeloc;testcase-3-test-15oct-storeloc",
"type": "scenario",
"keyword": "Scenario",
"steps": [
{
"result": {
"duration": 7000000,
"status": "passed"
},
"line": 7,
"name": "User has entered his login credentials2",
"match": {
"location": "Stepdefinitions.test1steps.user_has_entered_his_login_credentials()"
},
"keyword": "Given "
},
{
"result": {
"status": "passed"
},
"line": 8,
"name": "User has clicked login button",
"match": {
"location": "Stepdefinitions.test1steps.user_has_clicked_login_button()"
},
"keyword": "When "
},
{
"result": {
"status": "passed"
},
"line": 9,
"name": "validate User logged-in2",
"match": {
"location": "Stepdefinitions.test1steps.validate_user_logged_in()"
},
"keyword": "Then "
}
],
"tags": [
{
"name": "@REQ_ODP-1360"
},
{
"name": "@TEST_ODP-1367"
},
{
"name": "@TESTSET_ODP-1366"
}
]
},
{
"start_timestamp": "2020-10-15T15:56:07.871Z",
"line": 13,
"name": "Test Case1_Test_15OCT_STORELOC",
"description": "",
"id": "test-15oct-storeloc;test-case1-test-15oct-storeloc",
"type": "scenario",
"keyword": "Scenario",
"steps": [
{
"result": {
"status": "passed"
},
"line": 14,
"name": "User has entered his login credentials1",
"match": {
"location": "Stepdefinitions.test1steps.user_has_entered_his_login_credentials1()"
},
"keyword": "Given "
},
{
"result": {
"duration": 1000000,
"status": "passed"
},
"line": 15,
"name": "User has clicked login button",
"match": {
"location": "Stepdefinitions.test1steps.user_has_clicked_login_button()"
},
"keyword": "When "
},
{
"result": {
"status": "passed"
},
"line": 16,
"name": "validate User logged-in1",
"match": {
"location": "Stepdefinitions.test1steps.validate_user_logged_in1()"
},
"keyword": "Then "
}
],
"tags": [
{
"name": "@REQ_ODP-1360"
},
{
"name": "@TEST_ODP-1361"
},
{
"name": "@TESTSET_ODP-1366"
}
]
}
],
"name": "Test_15OCT_STORELOC",
"description": "",
"id": "test-15oct-storeloc",
"keyword": "Feature",
"uri": "file:src/test/java/Testing%20Xray/test1.feature",
"tags": [
{
"name": "@REQ_ODP-1360",
"type": "Tag",
"location": {
"line": 1,
"column": 1
}
}
]
}
]}'
Hi!
hm, I found that end point for the DC release only.
https://docs.getxray.app/display/XRAY/Import+Execution+Results+-+REST
Are you sure the request through your base_url?
Hey,
My base URL looks like this:
https://xyz.atlassian.net/rest/raven/1.0/import/execution/cucumber/multipart
I have referred the above link to send the results to Xray, but it isn't working. I am getting 404 Error.
--Deepak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gonchik Tsymzhitov ,
Now i understand, https://xray.cloud.xpand-it.com. is the base URL for XRAY at any point of time, Based on the Client ID & Client Token used for creating Bearer Token, it actually recognises my project.
Thanks for answering the Query. I was able to upload cucumber results back to Xray using Rest api.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.