cucumber-junit-convert
Version:
<a href="https://snyk.io/test/github/znevrly/cucumber-junit-convert"><img src="https://snyk.io/test/github/znevrly/cucumber-junit-convert/badge.svg" alt="Known Vulnerabilities" data-canonical-src="https://snyk.io/test/github/znevrly/cucumber-junit-convert
1,328 lines • 229 kB
JSON
[
{
"keyword": "Feature",
"name": "Arrays examples",
"line": 1,
"id": "arrays-examples",
"tags": [],
"uri": "features\\arrays.feature",
"elements": [
{
"id": "arrays-examples;check-fields-of-array-of-objects-with-array-variable-(fetched-from-profile-resource-yaml-file)",
"keyword": "Scenario",
"line": 3,
"name": "Check fields of array of objects with array variable (fetched from profile resource yaml file)",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 4000000
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 4,
"name": "imported profile data from \"test.yml\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:53"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"arguments": [],
"keyword": "When ",
"line": 5,
"name": "GET request to \"/users\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:57"
},
"result": {
"status": "passed",
"duration": 1027000000
}
},
{
"arguments": [],
"keyword": "And ",
"line": 6,
"name": "response path \"$.data[*].first_name\" has items \"${firstNames}\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:185"
},
"result": {
"status": "failed",
"duration": 1000000,
"error_message": "TypeError: Cannot read property 'body' of undefined\n at Object.responsePathValues (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps-api.js:756:51)\n at customWorld.<anonymous> (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps.js:186:12)"
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed",
"duration": 2000000
},
"embeddings": [
{
"data": "<strong>Request </strong> <br />Method: GET<br />URL: http://localhost:3000/users<br />Headers: {\n \"User-Agent\": \"node-superagent/3.8.3\"\n}<br /><br/><br />",
"mime_type": "text/plain"
},
{
"data": "<strong>Hooks variables: </strong><br />None <br /><br /><strong>Common variables: </strong><br />endpointUsers = /users<br /><br /><strong>Profile variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br /><br /><strong>Local variables</strong><br />None <br /><br /><strong>Global variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br />endpointUsers = /users<br />",
"mime_type": "text/plain"
}
]
}
]
},
{
"id": "arrays-examples;check-if-field-of-array-of-objects,-for-path-is-used-json-path-syntax-http://goessner.net/articles/jsonpath/,-to-test-json-path-you-can-use-http://jsonpath.com/",
"keyword": "Scenario",
"line": 8,
"name": "Check if field of array of objects, for path is used JSON path syntax http://goessner.net/articles/JsonPath/, to test json path you can use http://jsonpath.com/",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 2000000
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 9,
"name": "variable \"name1\" is \"George\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:33"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"arguments": [],
"keyword": "When ",
"line": 10,
"name": "GET request to \"/users\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:57"
},
"result": {
"status": "passed",
"duration": 1012000000
}
},
{
"arguments": [
{
"rows": [
{
"cells": [
"${name1}"
]
},
{
"cells": [
"Emma"
]
}
]
}
],
"keyword": "Then ",
"line": 11,
"name": "response path \"$.data[*].first_name\" contains items:",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:189"
},
"result": {
"status": "failed",
"duration": 1000000,
"error_message": "TypeError: Cannot read property 'body' of undefined\n at Object.responsePathContainsItems (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps-api.js:768:51)\n at customWorld.<anonymous> (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps.js:190:12)"
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed"
},
"embeddings": [
{
"data": "<strong>Request </strong> <br />Method: GET<br />URL: http://localhost:3000/users<br />Headers: {\n \"User-Agent\": \"node-superagent/3.8.3\"\n}<br /><br/><br />",
"mime_type": "text/plain"
},
{
"data": "<strong>Hooks variables: </strong><br />None <br /><br /><strong>Common variables: </strong><br />endpointUsers = /users<br /><br /><strong>Profile variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br /><br /><strong>Local variables</strong><br />name1 = George<br /><br /><strong>Global variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br />endpointUsers = /users<br />name1 = George<br />",
"mime_type": "text/plain"
}
]
}
]
},
{
"id": "arrays-examples;check-array-of-objects,-for-path-is-used-json-path-syntax-http://goessner.net/articles/jsonpath/,-to-test-json-path-you-can-use-http://jsonpath.com/",
"keyword": "Scenario",
"line": 15,
"name": "Check array of objects, for path is used JSON path syntax http://goessner.net/articles/JsonPath/, to test json path you can use http://jsonpath.com/",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 16,
"name": "variable \"name1\" is \"George\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:33"
},
"result": {
"status": "passed"
}
},
{
"arguments": [],
"keyword": "When ",
"line": 17,
"name": "GET request to \"/users\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:57"
},
"result": {
"status": "passed",
"duration": 1008000000
}
},
{
"arguments": [
{
"rows": [
{
"cells": [
"id",
"first_name",
"last_name",
"avatar"
]
},
{
"cells": [
"1",
"${name1}",
"Bluth",
"https://s3.amazonaws.com/uifaces/faces/twitter/calebogden/128.jpg"
]
},
{
"cells": [
"2",
"Janet",
"Weaver",
"https://s3.amazonaws.com/uifaces/faces/twitter/josephstein/128.jpg"
]
},
{
"cells": [
"3",
"Emma",
"Wong",
"https://s3.amazonaws.com/uifaces/faces/twitter/olegpogodaev/128.jpg"
]
}
]
}
],
"keyword": "And ",
"line": 18,
"name": "response path \"$.data[*]\" has values:",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:193"
},
"result": {
"status": "failed",
"duration": 2000000,
"error_message": "TypeError: Cannot read property 'body' of undefined\n at Object.responsePathHasValues (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps-api.js:780:51)\n at customWorld.<anonymous> (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps.js:194:12)"
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed",
"duration": 1000000
},
"embeddings": [
{
"data": "<strong>Request </strong> <br />Method: GET<br />URL: http://localhost:3000/users<br />Headers: {\n \"User-Agent\": \"node-superagent/3.8.3\"\n}<br /><br/><br />",
"mime_type": "text/plain"
},
{
"data": "<strong>Hooks variables: </strong><br />None <br /><br /><strong>Common variables: </strong><br />endpointUsers = /users<br /><br /><strong>Profile variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br /><br /><strong>Local variables</strong><br />name1 = George<br /><br /><strong>Global variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br />endpointUsers = /users<br />name1 = George<br />",
"mime_type": "text/plain"
}
]
}
]
},
{
"id": "arrays-examples;check-if-array-contains-of-objects,-for-path-is-used-json-path-syntax-http://goessner.net/articles/jsonpath/,-to-test-json-path-you-can-use-http://jsonpath.com/",
"keyword": "Scenario",
"line": 24,
"name": "Check if array contains of objects, for path is used JSON path syntax http://goessner.net/articles/JsonPath/, to test json path you can use http://jsonpath.com/",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 2000000
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 25,
"name": "variable \"name1\" is \"George\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:33"
},
"result": {
"status": "passed"
}
},
{
"arguments": [],
"keyword": "When ",
"line": 26,
"name": "GET request to \"/users\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:57"
},
"result": {
"status": "passed",
"duration": 1012000000
}
},
{
"arguments": [
{
"rows": [
{
"cells": [
"first_name",
"last_name",
"avatar"
]
},
{
"cells": [
"${name1}",
"Bluth",
"https://s3.amazonaws.com/uifaces/faces/twitter/calebogden/128.jpg"
]
},
{
"cells": [
"Janet",
"Weaver",
"https://s3.amazonaws.com/uifaces/faces/twitter/josephstein/128.jpg"
]
}
]
}
],
"keyword": "And ",
"line": 27,
"name": "response path \"$.data[*]\" contains values:",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:197"
},
"result": {
"status": "failed",
"duration": 2000000,
"error_message": "TypeError: Cannot read property 'body' of undefined\n at Object.responsePathContainsValues (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps-api.js:794:51)\n at customWorld.<anonymous> (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps.js:198:12)"
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed",
"duration": 2000000
},
"embeddings": [
{
"data": "<strong>Request </strong> <br />Method: GET<br />URL: http://localhost:3000/users<br />Headers: {\n \"User-Agent\": \"node-superagent/3.8.3\"\n}<br /><br/><br />",
"mime_type": "text/plain"
},
{
"data": "<strong>Hooks variables: </strong><br />None <br /><br /><strong>Common variables: </strong><br />endpointUsers = /users<br /><br /><strong>Profile variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br /><br /><strong>Local variables</strong><br />name1 = George<br /><br /><strong>Global variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br />endpointUsers = /users<br />name1 = George<br />",
"mime_type": "text/plain"
}
]
}
]
},
{
"id": "arrays-examples;array-\"data\"-should-be-in-response-and-have-at-least-one-item",
"keyword": "Scenario",
"line": 32,
"name": "Array \"data\" should be in response and have at least one item",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 2000000
}
},
{
"arguments": [],
"keyword": "When ",
"line": 33,
"name": "GET request to \"/users\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:57"
},
"result": {
"status": "passed",
"duration": 1017000000
}
},
{
"arguments": [],
"keyword": "Then ",
"line": 34,
"name": "response \"data\" size is at least 1",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:209"
},
"result": {
"status": "failed",
"duration": 1000000,
"error_message": "TypeError: Cannot read property 'body' of undefined\n at Object.responseKeySizeAtLeast (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps-api.js:822:51)\n at customWorld.<anonymous> (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps.js:210:12)"
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed",
"duration": 1000000
},
"embeddings": [
{
"data": "<strong>Request </strong> <br />Method: GET<br />URL: http://localhost:3000/users<br />Headers: {\n \"User-Agent\": \"node-superagent/3.8.3\"\n}<br /><br/><br />",
"mime_type": "text/plain"
},
{
"data": "<strong>Hooks variables: </strong><br />None <br /><br /><strong>Common variables: </strong><br />endpointUsers = /users<br /><br /><strong>Profile variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br /><br /><strong>Local variables</strong><br />None <br /><br /><strong>Global variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br />endpointUsers = /users<br />name1 = George<br />",
"mime_type": "text/plain"
}
]
}
]
},
{
"id": "arrays-examples;array-\"data\"-should-be-exactly-3-items",
"keyword": "Scenario",
"line": 36,
"name": "Array \"data\" should be exactly 3 items",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"arguments": [],
"keyword": "When ",
"line": 37,
"name": "GET request to \"/users\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:57"
},
"result": {
"status": "passed",
"duration": 1010000000
}
},
{
"arguments": [],
"keyword": "Then ",
"line": 38,
"name": "response \"data\" size is 3",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:213"
},
"result": {
"status": "failed",
"error_message": "TypeError: Cannot read property 'body' of undefined\n at Object.responseKeySizeIs (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps-api.js:832:51)\n at customWorld.<anonymous> (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps.js:214:12)"
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed",
"duration": 1000000
},
"embeddings": [
{
"data": "<strong>Request </strong> <br />Method: GET<br />URL: http://localhost:3000/users<br />Headers: {\n \"User-Agent\": \"node-superagent/3.8.3\"\n}<br /><br/><br />",
"mime_type": "text/plain"
},
{
"data": "<strong>Hooks variables: </strong><br />None <br /><br /><strong>Common variables: </strong><br />endpointUsers = /users<br /><br /><strong>Profile variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br /><br /><strong>Local variables</strong><br />None <br /><br /><strong>Global variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br />endpointUsers = /users<br />name1 = George<br />",
"mime_type": "text/plain"
}
]
}
]
},
{
"id": "arrays-examples;check-if-value-is-one-of-values-(array-variable)",
"keyword": "Scenario",
"line": 40,
"name": "Check if value is one of values (array variable)",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 2000000
}
},
{
"arguments": [],
"keyword": "When ",
"line": 41,
"name": "GET request to \"/users\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:57"
},
"result": {
"status": "passed",
"duration": 1015000000
}
},
{
"arguments": [],
"keyword": "Then ",
"line": 42,
"name": "response \"data[0].first_name\" is one of \"${firstNames}\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:229"
},
"result": {
"status": "failed",
"duration": 1000000,
"error_message": "TypeError: Cannot read property 'body' of undefined\n at Object.responseValueOneOf (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps-api.js:686:51)\n at customWorld.<anonymous> (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps.js:230:12)"
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed"
},
"embeddings": [
{
"data": "<strong>Request </strong> <br />Method: GET<br />URL: http://localhost:3000/users<br />Headers: {\n \"User-Agent\": \"node-superagent/3.8.3\"\n}<br /><br/><br />",
"mime_type": "text/plain"
},
{
"data": "<strong>Hooks variables: </strong><br />None <br /><br /><strong>Common variables: </strong><br />endpointUsers = /users<br /><br /><strong>Profile variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br /><br /><strong>Local variables</strong><br />None <br /><br /><strong>Global variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br />endpointUsers = /users<br />name1 = George<br />",
"mime_type": "text/plain"
}
]
}
]
}
]
},
{
"keyword": "Feature",
"name": "Expression currentDate feature",
"line": 1,
"id": "expression-currentdate-feature",
"tags": [],
"uri": "features\\dates.feature",
"elements": [
{
"id": "expression-currentdate-feature;date-freeze-and-current-date",
"keyword": "Scenario",
"line": 3,
"name": "Date freeze and current date",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 2000000
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 4,
"name": "current date is \"2018-01-01\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:5"
},
"result": {
"status": "passed",
"duration": 4000000
}
},
{
"arguments": [],
"keyword": "And ",
"line": 5,
"name": "variable \"test\" is \"${currentDate}\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:33"
},
"result": {
"status": "passed"
}
},
{
"arguments": [],
"keyword": "Then ",
"line": 6,
"name": "variable \"test\" has value \"2018-01-01T00:00:00Z\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:265"
},
"result": {
"status": "passed",
"duration": 3000000
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed"
}
}
]
},
{
"id": "expression-currentdate-feature;date-freeze-and-current-date-with-different-format-pattern",
"keyword": "Scenario",
"line": 8,
"name": "Date freeze and current date with different format pattern",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 9,
"name": "current date is \"2018-01-01\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:5"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"arguments": [],
"keyword": "And ",
"line": 10,
"name": "current date format pattern is \"YYYY-MM-DD\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:9"
},
"result": {
"status": "passed"
}
},
{
"arguments": [],
"keyword": "And ",
"line": 11,
"name": "variable \"test\" is \"${currentDate}\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:33"
},
"result": {
"status": "passed"
}
},
{
"arguments": [],
"keyword": "Then ",
"line": 12,
"name": "variable \"test\" has value \"2018-01-01\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:265"
},
"result": {
"status": "passed"
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed"
}
}
]
},
{
"id": "expression-currentdate-feature;date-freeze-and-shift-for-1-month-forward",
"keyword": "Scenario",
"line": 14,
"name": "Date freeze and shift for 1 month forward",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 15,
"name": "current date is \"2018-01-01\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:5"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"arguments": [],
"keyword": "And ",
"line": 16,
"name": "variable \"test\" is \"${currentDate + 1 month}\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:33"
},
"result": {
"status": "passed",
"duration": 6000000
}
},
{
"arguments": [],
"keyword": "Then ",
"line": 17,
"name": "variable \"test\" has value \"2018-02-01T00:00:00Z\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:265"
},
"result": {
"status": "passed"
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed"
}
}
]
},
{
"id": "expression-currentdate-feature;date-freeze-and-shift-for-3-days-forward",
"keyword": "Scenario",
"line": 19,
"name": "Date freeze and shift for 3 days forward",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 20,
"name": "current date is \"2018-01-01\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:5"
},
"result": {
"status": "passed"
}
},
{
"arguments": [],
"keyword": "And ",
"line": 21,
"name": "variable \"test\" is \"${currentDate + 3 days}\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:33"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"arguments": [],
"keyword": "Then ",
"line": 22,
"name": "variable \"test\" has value \"2018-01-04T00:00:00Z\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:265"
},
"result": {
"status": "passed"
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed"
}
}
]
},
{
"id": "expression-currentdate-feature;date-freeze-and-shift-for-1-month-back",
"keyword": "Scenario",
"line": 24,
"name": "Date freeze and shift for 1 month back",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 25,
"name": "current date is \"2018-01-01\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:5"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"arguments": [],
"keyword": "And ",
"line": 26,
"name": "variable \"test\" is \"${currentDate - 1 month}\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:33"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"arguments": [],
"keyword": "Then ",
"line": 27,
"name": "variable \"test\" has value \"2017-12-01T00:00:00Z\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:265"
},
"result": {
"status": "passed"
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed"
}
}
]
},
{
"id": "expression-currentdate-feature;date-freeze-and-shift-for-1-day-back",
"keyword": "Scenario",
"line": 29,
"name": "Date freeze and shift for 1 day back",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 2000000
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 30,
"name": "current date is \"2018-01-01\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:5"
},
"result": {
"status": "passed"
}
},
{
"arguments": [],
"keyword": "And ",
"line": 31,
"name": "variable \"test\" is \"${currentDate - 1 day}\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:33"
},
"result": {
"status": "passed"
}
},
{
"arguments": [],
"keyword": "Then ",
"line": 32,
"name": "variable \"test\" has value \"2017-12-31T00:00:00Z\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:265"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed"
}
}
]
}
]
},
{
"keyword": "Feature",
"name": "Headers usage",
"line": 1,
"id": "headers-usage",
"tags": [],
"uri": "features\\headers.feature",
"elements": [
{
"id": "headers-usage;add-header",
"keyword": "Scenario",
"line": 3,
"name": "Add header",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 4,
"name": "request header \"Referer\" is \"https://reqres.in/api\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:25"
},
"result": {
"status": "passed"
}
},
{
"arguments": [],
"keyword": "When ",
"line": 5,
"name": "GET request to \"/users\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:57"
},
"result": {
"status": "passed",
"duration": 1015000000
}
},
{
"arguments": [],
"keyword": "Then ",
"line": 6,
"name": "response header \"x-powered-by\" is \"Express\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:245"
},
"result": {
"status": "failed",
"duration": 1000000,
"error_message": "TypeError: Cannot read property 'headers' of undefined\n at Object.responseHeaderValue (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps-api.js:280:28)\n at customWorld.<anonymous> (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps.js:246:12)"
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed",
"duration": 1000000
},
"embeddings": [
{
"data": "<strong>Request </strong> <br />Method: GET<br />URL: http://localhost:3000/users<br />Headers: {\n \"User-Agent\": \"node-superagent/3.8.3\",\n \"Referer\": \"https://reqres.in/api\"\n}<br /><br/><br />",
"mime_type": "text/plain"
},
{
"data": "<strong>Hooks variables: </strong><br />None <br /><br /><strong>Common variables: </strong><br />endpointUsers = /users<br /><br /><strong>Profile variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br /><br /><strong>Local variables</strong><br />None <br /><br /><strong>Global variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br />endpointUsers = /users<br />name1 = George<br />test = 2017-12-31T00:00:00Z<br />",
"mime_type": "text/plain"
}
]
}
]
},
{
"id": "headers-usage;check-if-header-exists-and-have-some-value",
"keyword": "Scenario",
"line": 8,
"name": "Check if header exists and have some value",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 2000000
}
},
{
"arguments": [],
"keyword": "When ",
"line": 9,
"name": "GET request to \"/users\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:57"
},
"result": {
"status": "passed",
"duration": 1014000000
}
},
{
"arguments": [],
"keyword": "Then ",
"line": 10,
"name": "response header \"x-powered-by\" is \"Express\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:245"
},
"result": {
"status": "failed",
"error_message": "TypeError: Cannot read property 'headers' of undefined\n at Object.responseHeaderValue (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps-api.js:280:28)\n at customWorld.<anonymous> (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps.js:246:12)"
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed"
},
"embeddings": [
{
"data": "<strong>Request </strong> <br />Method: GET<br />URL: http://localhost:3000/users<br />Headers: {\n \"User-Agent\": \"node-superagent/3.8.3\"\n}<br /><br/><br />",
"mime_type": "text/plain"
},
{
"data": "<strong>Hooks variables: </strong><br />None <br /><br /><strong>Common variables: </strong><br />endpointUsers = /users<br /><br /><strong>Profile variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br /><br /><strong>Local variables</strong><br />None <br /><br /><strong>Global variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br />endpointUsers = /users<br />name1 = George<br />test = 2017-12-31T00:00:00Z<br />",
"mime_type": "text/plain"
}
]
}
]
},
{
"id": "headers-usage;check-if-header-exists-and-have-one-of-value",
"keyword": "Scenario",
"line": 12,
"name": "Check if header exists and have one of value",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 2000000
}
},
{
"arguments": [],
"keyword": "When ",
"line": 13,
"name": "GET request to \"/users\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:57"
},
"result": {
"status": "passed",
"duration": 1026000000
}
},
{
"arguments": [],
"keyword": "Then ",
"line": 14,
"name": "response header \"x-powered-by\" is one of \"foo, Express, boo\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:253"
},
"result": {
"status": "failed",
"duration": 1000000,
"error_message": "TypeError: Cannot read property 'headers' of undefined\n at Object.responseHeaderIsOneOf (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps-api.js:305:43)\n at customWorld.<anonymous> (c:\\repos\\bdd-rest-testing\\node_modules\\bdd-rest-core\\rest-steps.js:254:12)"
}
},
{
"keyword": "After",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:333"
},
"result": {
"status": "passed"
},
"embeddings": [
{
"data": "<strong>Request </strong> <br />Method: GET<br />URL: http://localhost:3000/users<br />Headers: {\n \"User-Agent\": \"node-superagent/3.8.3\"\n}<br /><br/><br />",
"mime_type": "text/plain"
},
{
"data": "<strong>Hooks variables: </strong><br />None <br /><br /><strong>Common variables: </strong><br />endpointUsers = /users<br /><br /><strong>Profile variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br /><br /><strong>Local variables</strong><br />None <br /><br /><strong>Global variables: </strong><br />profileEndpointUsers = /users<br />endpoints = test,/users<br />firstNames = George,Janet,Emma<br />endpointUsers = /users<br />name1 = George<br />test = 2017-12-31T00:00:00Z<br />",
"mime_type": "text/plain"
}
]
}
]
},
{
"id": "headers-usage;check-if-header-exists-and-have-one-of-value-with-variable-value",
"keyword": "Scenario",
"line": 16,
"name": "Check if header exists and have one of value with variable value",
"tags": [],
"type": "scenario",
"steps": [
{
"keyword": "Before",
"hidden": true,
"match": {
"location": "node_modules\\bdd-rest-core\\hook-general.js:14"
},
"result": {
"status": "passed",
"duration": 3000000
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 17,
"name": "variable \"headerValue\" is \"Express\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:33"
},
"result": {
"status": "passed",
"duration": 1000000
}
},
{
"arguments": [],
"keyword": "When ",
"line": 18,
"name": "GET request to \"/users\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js:57"
},
"result": {
"status": "passed",
"duration": 1013000000
}
},
{
"arguments": [],
"keyword": "Then ",
"line": 19,
"name": "response header \"x-powered-by\" is one of \"${headerValue}, foo\"",
"match": {
"location": "node_modules\\bdd-rest-core\\rest-steps.js: