pytest-bdd
pytest-bdd copied to clipboard
need a way to distinguish between scenario and scenario outline in cucumberjson report
trafficstars
After running all the test cases and exporting the report in cucumberjson format, there is not way a test case can be distinguish scenario or scenario outline .
Have this example json where both sceanrio and sceario outline test cases are present , but there is not way to know which scenario comes from sceanrio outline and which scenario is just a scenario
[
{
"keyword": "Feature",
"uri": "KAN-765\\1_KAN-765_KAN-3396.feature",
"name": "As a company admin, I want to be able to Add a credential holder",
"id": "kan-765\\1_kan-765_kan-3396.feature",
"line": 2,
"description": "",
"tags": [
{
"name": "REQ_KAN-765",
"line": 1
}
],
"elements": [
{
"keyword": "Scenario",
"id": "test_verify_401_response_on_unauthorized_user",
"name": "verify 401 response on unauthorized user",
"line": 27,
"description": "",
"tags": [
{
"name": "Backend",
"line": 26
},
{
"name": "TEST_KAN-4026",
"line": 26
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2660410642
}
},
{
"keyword": "When",
"name": "user inputs valid data and sends invalid token",
"line": 28,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1307460308
}
},
{
"keyword": "Then",
"name": "credential is not added and 401 response is displayed",
"line": 29,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_403_response_on_no_authentication",
"name": "verify 403 response on no authentication",
"line": 31,
"description": "",
"tags": [
{
"name": "Backend",
"line": 30
},
{
"name": "TEST_KAN-4025",
"line": 30
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2652295827
}
},
{
"keyword": "When",
"name": "user inputs valid data and sends no authentication in headers",
"line": 32,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1059139490
}
},
{
"keyword": "Then",
"name": "credential is not added and 403 response is displayed",
"line": 33,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1000404
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_email_address_is_mandatory_field",
"name": "verify email address is mandatory field",
"line": 35,
"description": "",
"tags": [
{
"name": "Backend",
"line": 34
},
{
"name": "TEST_KAN-4024",
"line": 34
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2588973283
}
},
{
"keyword": "When",
"name": "user inputs valid first name, and last name and blank email address",
"line": 36,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1222446680
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for blank email",
"line": 37,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_last_name_is_mandatory_field",
"name": "verify last name is mandatory field",
"line": 39,
"description": "",
"tags": [
{
"name": "Backend",
"line": 38
},
{
"name": "TEST_KAN-4023",
"line": 38
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2581018686
}
},
{
"keyword": "When",
"name": "user inputs valid first name, email address and blank last name",
"line": 40,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1178238153
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for blank last name",
"line": 41,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_first_name_is_mandatory_field",
"name": "verify first name is mandatory field",
"line": 43,
"description": "",
"tags": [
{
"name": "Backend",
"line": 42
},
{
"name": "TEST_KAN-4022",
"line": 42
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2679864883
}
},
{
"keyword": "When",
"name": "user inputs blank first name, and valid last name and email address",
"line": 44,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1156373262
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for first name",
"line": 45,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_add_valid_credential_holder",
"name": "add valid credential holder",
"line": 47,
"description": "",
"tags": [
{
"name": "Backend",
"line": 46
},
{
"name": "TEST_KAN-4021",
"line": 46
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2657815217
}
},
{
"keyword": "When",
"name": "user inputs valid first name, last name and email address",
"line": 48,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1282644033
}
},
{
"keyword": "Then",
"name": "credential holder is added and response is verified",
"line": 49,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[abc]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2593190908
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid abc",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1195986032
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[[email protected]]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2615787744
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid [email protected]",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1167105436
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[[email protected].]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2862491130
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid [email protected].",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1258319377
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[ab [email protected]]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2637739419
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid ab [email protected]",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1168183565
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[[email protected]]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2633898735
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid [email protected]",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1288371562
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "failed",
"error_message": "request = <FixtureRequest for <Function test_verify_422_response_on_invalid_email_id[[email protected]]>>\n\n @pytest.mark.usefixtures(*function_args)\n def scenario_wrapper(request):\n> _execute_scenario(feature, scenario, request, encoding)\n\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:177: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:143: in _execute_scenario\n _execute_step_function(request, scenario, step, step_func)\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:113: in _execute_step_function\n return_value = step_func(**kwargs)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n @then('credential holder is not added and 422 response is displayed for invalid email id')\n def verify_blank_email_response():\n> assert pytest.invalid_email_response.status_code == 422, \\\n \"response is {0} wherever expected was 422\".format(pytest.invalid_email_response.status_code)\nE AssertionError: response is 201 wherever expected was 422\nE assert 201 == 422\nE +201\nE -422\n\ntest_cases\\steps_jira\\credential_holders\\KAN-765\\test_add_credential_holder.py:91: AssertionError",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[[email protected]]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2587724447
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid [email protected]",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1345099687
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "failed",
"error_message": "request = <FixtureRequest for <Function test_verify_422_response_on_invalid_email_id[[email protected]]>>\n\n @pytest.mark.usefixtures(*function_args)\n def scenario_wrapper(request):\n> _execute_scenario(feature, scenario, request, encoding)\n\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:177: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:143: in _execute_scenario\n _execute_step_function(request, scenario, step, step_func)\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:113: in _execute_step_function\n return_value = step_func(**kwargs)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n @then('credential holder is not added and 422 response is displayed for invalid email id')\n def verify_blank_email_response():\n> assert pytest.invalid_email_response.status_code == 422, \\\n \"response is {0} wherever expected was 422\".format(pytest.invalid_email_response.status_code)\nE AssertionError: response is 201 wherever expected was 422\nE assert 201 == 422\nE +201\nE -422\n\ntest_cases\\steps_jira\\credential_holders\\KAN-765\\test_add_credential_holder.py:91: AssertionError",
"duration": 1006126
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[abxyz.com]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2612737178
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid abxyz.com",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1258813381
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[ab%[email protected]]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2613490343
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid ab%[email protected]",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1284669160
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "failed",
"error_message": "request = <FixtureRequest for <Function test_verify_422_response_on_invalid_email_id[ab%[email protected]]>>\n\n @pytest.mark.usefixtures(*function_args)\n def scenario_wrapper(request):\n> _execute_scenario(feature, scenario, request, encoding)\n\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:177: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:143: in _execute_scenario\n _execute_step_function(request, scenario, step, step_func)\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:113: in _execute_step_function\n return_value = step_func(**kwargs)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n @then('credential holder is not added and 422 response is displayed for invalid email id')\n def verify_blank_email_response():\n> assert pytest.invalid_email_response.status_code == 422, \\\n \"response is {0} wherever expected was 422\".format(pytest.invalid_email_response.status_code)\nE AssertionError: response is 201 wherever expected was 422\nE assert 201 == 422\nE +201\nE -422\n\ntest_cases\\steps_jira\\credential_holders\\KAN-765\\test_add_credential_holder.py:91: AssertionError",
"duration": 941514
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[ab^[email protected]]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2643166780
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid ab^[email protected]",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1284929990
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "failed",
"error_message": "request = <FixtureRequest for <Function test_verify_422_response_on_invalid_email_id[ab^[email protected]]>>\n\n @pytest.mark.usefixtures(*function_args)\n def scenario_wrapper(request):\n> _execute_scenario(feature, scenario, request, encoding)\n\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:177: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:143: in _execute_scenario\n _execute_step_function(request, scenario, step, step_func)\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:113: in _execute_step_function\n return_value = step_func(**kwargs)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n @then('credential holder is not added and 422 response is displayed for invalid email id')\n def verify_blank_email_response():\n> assert pytest.invalid_email_response.status_code == 422, \\\n \"response is {0} wherever expected was 422\".format(pytest.invalid_email_response.status_code)\nE AssertionError: response is 201 wherever expected was 422\nE assert 201 == 422\nE +201\nE -422\n\ntest_cases\\steps_jira\\credential_holders\\KAN-765\\test_add_credential_holder.py:91: AssertionError",
"duration": 1001596
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[ab&[email protected]]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2771080732
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid ab&[email protected]",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1354012727
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "failed",
"error_message": "request = <FixtureRequest for <Function test_verify_422_response_on_invalid_email_id[ab&[email protected]]>>\n\n @pytest.mark.usefixtures(*function_args)\n def scenario_wrapper(request):\n> _execute_scenario(feature, scenario, request, encoding)\n\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:177: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:143: in _execute_scenario\n _execute_step_function(request, scenario, step, step_func)\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:113: in _execute_step_function\n return_value = step_func(**kwargs)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n @then('credential holder is not added and 422 response is displayed for invalid email id')\n def verify_blank_email_response():\n> assert pytest.invalid_email_response.status_code == 422, \\\n \"response is {0} wherever expected was 422\".format(pytest.invalid_email_response.status_code)\nE AssertionError: response is 201 wherever expected was 422\nE assert 201 == 422\nE +201\nE -422\n\ntest_cases\\steps_jira\\credential_holders\\KAN-765\\test_add_credential_holder.py:91: AssertionError",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[ab*[email protected]]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2609759807
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid ab*[email protected]",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1288285017
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "failed",
"error_message": "request = <FixtureRequest for <Function test_verify_422_response_on_invalid_email_id[ab*[email protected]]>>\n\n @pytest.mark.usefixtures(*function_args)\n def scenario_wrapper(request):\n> _execute_scenario(feature, scenario, request, encoding)\n\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:177: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:143: in _execute_scenario\n _execute_step_function(request, scenario, step, step_func)\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:113: in _execute_step_function\n return_value = step_func(**kwargs)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n @then('credential holder is not added and 422 response is displayed for invalid email id')\n def verify_blank_email_response():\n> assert pytest.invalid_email_response.status_code == 422, \\\n \"response is {0} wherever expected was 422\".format(pytest.invalid_email_response.status_code)\nE AssertionError: response is 201 wherever expected was 422\nE assert 201 == 422\nE +201\nE -422\n\ntest_cases\\steps_jira\\credential_holders\\KAN-765\\test_add_credential_holder.py:91: AssertionError",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[ab([email protected]]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2650440692
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid ab([email protected]",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1154583930
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[ab)[email protected]]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2650305271
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid ab)[email protected]",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1155944824
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[[email protected]]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2577209949
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid [email protected]",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1342808961
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "failed",
"error_message": "request = <FixtureRequest for <Function test_verify_422_response_on_invalid_email_id[[email protected]]>>\n\n @pytest.mark.usefixtures(*function_args)\n def scenario_wrapper(request):\n> _execute_scenario(feature, scenario, request, encoding)\n\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:177: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:143: in _execute_scenario\n _execute_step_function(request, scenario, step, step_func)\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:113: in _execute_step_function\n return_value = step_func(**kwargs)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n @then('credential holder is not added and 422 response is displayed for invalid email id')\n def verify_blank_email_response():\n> assert pytest.invalid_email_response.status_code == 422, \\\n \"response is {0} wherever expected was 422\".format(pytest.invalid_email_response.status_code)\nE AssertionError: response is 201 wherever expected was 422\nE assert 201 == 422\nE +201\nE -422\n\ntest_cases\\steps_jira\\credential_holders\\KAN-765\\test_add_credential_holder.py:91: AssertionError",
"duration": 989198
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[[email protected]]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2628297567
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid [email protected]",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1288785219
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "failed",
"error_message": "request = <FixtureRequest for <Function test_verify_422_response_on_invalid_email_id[[email protected]]>>\n\n @pytest.mark.usefixtures(*function_args)\n def scenario_wrapper(request):\n> _execute_scenario(feature, scenario, request, encoding)\n\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:177: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:143: in _execute_scenario\n _execute_step_function(request, scenario, step, step_func)\nvenv\\lib\\site-packages\\pytest_bdd\\scenario.py:113: in _execute_step_function\n return_value = step_func(**kwargs)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n @then('credential holder is not added and 422 response is displayed for invalid email id')\n def verify_blank_email_response():\n> assert pytest.invalid_email_response.status_code == 422, \\\n \"response is {0} wherever expected was 422\".format(pytest.invalid_email_response.status_code)\nE AssertionError: response is 201 wherever expected was 422\nE assert 201 == 422\nE +201\nE -422\n\ntest_cases\\steps_jira\\credential_holders\\KAN-765\\test_add_credential_holder.py:91: AssertionError",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[ab{}[]@xyz.com]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2643197774
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid ab{}[]@xyz.com",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1155539751
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[ab;':\"@xyz.com]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2646219730
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid ab;':\"@xyz.com",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1159256219
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"keyword": "Scenario",
"id": "test_verify_422_response_on_invalid_email_id[ab,<>[email protected]]",
"name": "verify 422 response on invalid email id",
"line": 51,
"description": "",
"tags": [
{
"name": "Backend",
"line": 50
},
{
"name": "TESTSET_KAN-1722",
"line": 50
},
{
"name": "TEST_KAN-1727",
"line": 50
},
{
"name": "wip",
"line": 50
}
],
"type": "scenario",
"steps": [
{
"keyword": "Given",
"name": "login user",
"line": 24,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 2582562923
}
},
{
"keyword": "When",
"name": "user enters valid fname,lname and invalid ab,<>[email protected]",
"line": 52,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 1220705986
}
},
{
"keyword": "Then",
"name": "credential holder is not added and 422 response is displayed for invalid email id",
"line": 53,
"match": {
"location": ""
},
"result": {
"status": "passed",
"duration": 0
}
}
]
}
]
}
]