Forum Discussion

shraddham's avatar
shraddham
New Contributor
2 years ago

Unable to upload cucumber.json file into Test Automation task for updating the result.

Unable to upload cucumber.json file into Test Automation task for updating the result.

 

Could you please provide json with correct format.

I am attaching the file format which i have used for uploading.

 

[
{
"line": 1,
"elements": [
{
"line": 4,
"name": "Login",
"description": "",
"id": "plan-test-cycle;login",
"type": "scenario",
"keyword": "Scenario",
"steps": [
{
"result": {
"duration": 13384561600,
"status": "passed"
},
"line": 5,
"name": "User Selects the Browser, Launches it and Maximises it",
"match": {
"location": "Login.user_Selects_the_Browser_Launches_it_and_Maximises_it()"
},
"keyword": "Given "
},
{
"result": {
"duration": 12962955400,
"status": "passed"
},
"line": 6,
"name": "User Navigates to the URL provided",
"match": {
"location": "Login.user_Navigates_to_the_URL_provided()"
},
"keyword": "When "
},
{
"result": {
"duration": 22670037400,
"status": "passed"
},
"line": 7,
"name": "User Enters Username, Password and clicks on login",
"match": {
"location": "Login.user_Enters_Username_Password_and_clicks_on_login()"
},
"keyword": "And "
}
],
"tags": [
{
"line": 3,
"name": "@ptc1"
}
]
},
{
"line": 69,
"name": "Verify cycle staus with FAIL status",
"description": "",
"id": "plan-test-cycle;verify-cycle-staus-with-pass-status",
"type": "scenario",
"keyword": "Scenario",
"steps": [
{
"result": {
"duration": 37333355200,
"error_message": "Error",
"status": "failed"
},
"line": 70,
"name": "verify cycle status with pass",
"match": {
"location": "BDD_Feature.verify_cycle_status_with_pass()"
},
"keyword": "Given "
}
],
"tags": [
{
"line": 68,
"name": "@ptc1"
}
]
},
{
"line": 73,
"name": "Verify cycle staus with SKIPPED status",
"description": "",
"id": "plan-test-cycle;verify-cycle-staus-with-fail-status",
"type": "scenario",
"keyword": "Scenario",
"steps": [
{
"result": {
"duration": 37122193800,
"error_message": "Error",
"status": "failed"
},
"line": 74,
"name": "verify cycle status with fail",
"match": {
"location": "BDD_Feature.verify_cycle_status_with_fail()"
},
"keyword": "Given "
}
],
"tags": [
{
"line": 72,
"name": "@ptc1"
}
]
},
{
"line": 77,
"name": "Verify cycle staus with UNDEFINED status",
"description": "",
"id": "plan-test-cycle;verify-cycle-staus-with-undefined-status",
"type": "scenario",
"keyword": "Scenario",
"steps": [
{
"result": {
"duration": 37110703400,
"error_message": " Error",
"status": "failed"
},
"line": 78,
"name": "verify cycle status with undefined",
"match": {
"location": "BDD_Feature.verify_cycle_status_with_undefined()"
},
"keyword": "Given "
}
],
"tags": [
{
"line": 76,
"name": "@ptc1"
}
]
}
],
"name": "Plan Test Cycle",
"description": "",
"id": "plan-test-cycle",
"keyword": "Feature",
"uri": "PlanTestCycle.feature"
}
]

No RepliesBe the first to reply