@ln-maf/validations
Version:
This module is created to allow other projects to easily validate JSON utilizing a set of steps.
1,765 lines • 250 kB
JSON
[
{
"description": "",
"elements": [
{
"description": "",
"id": "validations:-base-64;decode-base-64",
"keyword": "Scenario",
"line": 5,
"name": "Decode Base 64",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 129791
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 23445708
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 6,
"name": "set \"bla\" to '{ \"json\": \"object\" }'",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 246165
},
"embeddings": [
{
"data": "{\n \"bla\": {\n \"json\": \"object\"\n }\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "And ",
"line": 7,
"name": "item \"bla\" is base64 encoded",
"match": {
"location": "../core/index.js:125"
},
"result": {
"status": "passed",
"duration": 456749
},
"embeddings": [
{
"data": "{\n \"lastRun\": \"eyJqc29uIjoib2JqZWN0In0=\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 8,
"name": "set \"expected\" to \"Hello World\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 63666
},
"embeddings": [
{
"data": "{\n \"expected\": \"Hello World\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "And ",
"line": 9,
"name": "item \"expected\" is base64 encoded",
"match": {
"location": "../core/index.js:125"
},
"result": {
"status": "passed",
"duration": 65958
},
"embeddings": [
{
"data": "{\n \"lastRun\": \"SGVsbG8gV29ybGQ=\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "And ",
"line": 10,
"name": "it is base64 decoded",
"match": {
"location": "../core/index.js:125"
},
"result": {
"status": "passed",
"duration": 266332
},
"embeddings": [
{
"data": "{\n \"lastRun\": \"Hello World\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 11,
"name": "it is equal to \"Hello World\"",
"match": {
"location": "index.js:471"
},
"result": {
"status": "passed",
"duration": 81458
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 12,
"name": "set \"i\" to \"ZmVhd3JhZXdyZXc=\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 55790
},
"embeddings": [
{
"data": "{\n \"i\": \"ZmVhd3JhZXdyZXc=\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "When ",
"line": 13,
"name": "the value \"i\" is base64 decoded and resaved",
"match": {
"location": "index.js:398"
},
"result": {
"status": "passed",
"duration": 49125
},
"embeddings": [
{
"data": "Decoded value: feawraewrew",
"mime_type": "text"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 14,
"name": "\"${i}\" is equal to \"feawraewrew\"",
"match": {
"location": "index.js:471"
},
"result": {
"status": "passed",
"duration": 152249
}
}
],
"tags": [],
"type": "scenario"
}
],
"id": "validations:-base-64",
"line": 1,
"keyword": "Feature",
"name": "Validations: Base 64",
"tags": [],
"uri": "features/base64.feature"
},
{
"description": "",
"elements": [
{
"description": "",
"id": "validations:-blob-setting;test-blob",
"keyword": "Scenario",
"line": 5,
"name": "Test blob",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 7458
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 126416
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "And ",
"line": 6,
"name": "set \"attach\" to \"false\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 126207
}
},
{
"arguments": [],
"keyword": "When ",
"line": 7,
"name": "blob is read from file \"image2.png\"",
"match": {
"location": "../core/index.js:125"
},
"result": {
"status": "passed",
"duration": 531584
}
},
{
"arguments": [],
"keyword": "And ",
"line": 8,
"name": "blob item \"lastRun\" is written to file \"newBlob.png\"",
"match": {
"location": "index.js:646"
},
"result": {
"status": "passed",
"duration": 1452041
}
},
{
"arguments": [],
"keyword": "And ",
"line": 9,
"name": "blob item \"lastRun\" is attached",
"match": {
"location": "index.js:653"
},
"result": {
"status": "passed",
"duration": 131459
},
"embeddings": [
{
"data": "iVBORw0KGgoAAAANSUhEUgAAAEQAAABCCAMAAADZlICdAAAAYFBMVEVMaXG9x8eqxsa9x8e9xsa8xsaAgIC+yMi9yMiqqqq9yMi9x8e9yMi9x8e+yMiZmZm8xsavv7+9x8e+x8e2tra9x8e9yMi9yMi4xsa+yMi8x8e+xsa9xsa9xcW9yMi+yMiVXpEfAAAAH3RSTlMA6AnJkGcC/vkD2U25MuIFYxBtTg74q9AkSl95bCOPfKsWVgAAAWRJREFUWMO1mNmagjAMhUEKLasKsiN5/7d0wAFhBqHL4Vxxw/81TXOa1LLOll/VTde2XVNXvhbgkbFS0CxRsuyhRriGRf7zJ/9Ahs+8CK/SiEuarAALUJJepBCea9OObNc7ZsQOHciJjxg3sRXIOihx288pIyn1Oxm/R0fLmBYT3b8xnoEcY6AEzy/rCEhBweZa/IiUFG3tC5ONZYqIbeRWjTFQ/mU6FqQs8efUeQ5pyFlXgKsazDsgd1W3NmnJXtZ0SppKFx6U6EKSj0uFpK1whhT6kGL25JzrMng+uXdGBsrmqjHQVEGlCaT89QDB9RlcvB2hIiNVI6Q2g9QjpDGDNCOkM4N0I6Q1g7Q4CCQcyMZCUgw5bJBjDylAjBVATAlijxCjxlwZkMsLco1iLnRIa4FpciDtFqbxs6xetQXtz2qGIW05ZkDAjCryQxPzzx7fQIMkZqTFDNegMR/04IB6+lDRC8SbdXr0+N/zAAAAAElFTkSuQmCC",
"mime_type": "image/png"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 10,
"name": "blob item \"lastRun\" is equal to file \"newBlob.png\"",
"match": {
"location": "index.js:659"
},
"result": {
"status": "passed",
"duration": 2490957
}
}
],
"tags": [],
"type": "scenario"
}
],
"id": "validations:-blob-setting",
"line": 1,
"keyword": "Feature",
"name": "Validations: Blob setting",
"tags": [],
"uri": "features/blob.feature"
},
{
"description": "",
"elements": [
{
"description": "",
"id": "validations:-test-csv-files;run",
"keyword": "Scenario",
"line": 2,
"name": "Run",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 8665
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "convert csv file \"test.csv\" to json",
"match": {
"location": "../core/index.js:125"
},
"result": {
"status": "passed",
"duration": 15417915
},
"embeddings": [
{
"data": "{\n \"lastRun\": [\n {\n \"hello\": \"item1\",\n \"world\": \"item2\"\n }\n ]\n}",
"mime_type": "text/plain"
}
]
}
],
"tags": [],
"type": "scenario"
}
],
"id": "validations:-test-csv-files",
"line": 1,
"keyword": "Feature",
"name": "Validations: Test CSV Files",
"tags": [],
"uri": "features/csv.feature"
},
{
"description": "",
"elements": [
{
"description": "",
"id": "validations:-date-validation;validate-date-\"11/11/2019\"-is-before-now",
"keyword": "Scenario",
"line": 6,
"name": "Validate date \"11/11/2019\" is before now",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 8084
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 123874
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 7,
"name": "set \"created_date\" to \"11/11/2019\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 290332
},
"embeddings": [
{
"data": "{\n \"created_date\": \"11/11/2019\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 8,
"name": "item \"created_date\" is before now",
"match": {
"location": "index.js:71"
},
"result": {
"status": "passed",
"duration": 542814249
}
}
],
"tags": [],
"type": "scenario"
},
{
"description": "",
"id": "validations:-date-validation;validate-date-\"11/11/2019\"-is-before-now",
"keyword": "Scenario",
"line": 10,
"name": "Validate date \"11/11/2019\" is before now",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 10124
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 237250
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 11,
"name": "\"11/11/2019\" is before \"11/12/2019\"",
"match": {
"location": "index.js:80"
},
"result": {
"status": "passed",
"duration": 135333
}
}
],
"tags": [],
"type": "scenario"
},
{
"description": "",
"id": "validations:-date-validation;validate-date-now-1-is-before-now",
"keyword": "Scenario",
"line": 13,
"name": "Validate date now-1 is before now",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 6083
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 97915
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 14,
"name": "set \"created_date\" to \"${new Date().getTime()-1}\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 95499
},
"embeddings": [
{
"data": "{\n \"created_date\": \"1727185577285\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 15,
"name": "set \"created_date2\" to \"${new Date().getTime()}\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 66458
},
"embeddings": [
{
"data": "{\n \"created_date2\": \"1727185577286\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 16,
"name": "item \"created_date\" is before item \"created_date2\"",
"match": {
"location": "index.js:80"
},
"result": {
"status": "passed",
"duration": 101333
}
}
],
"tags": [],
"type": "scenario"
},
{
"description": "",
"id": "validations:-date-validation;validate-date-now-1-is-before-now",
"keyword": "Scenario",
"line": 18,
"name": "Validate date now-1 is before now",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 12041
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 72291
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 19,
"name": "set \"created_date\" to \"${new Date().getTime()-1}\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 68291
},
"embeddings": [
{
"data": "{\n \"created_date\": \"1727185577286\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 20,
"name": "item \"created_date\" is before now",
"match": {
"location": "index.js:71"
},
"result": {
"status": "passed",
"duration": 52042
}
}
],
"tags": [],
"type": "scenario"
},
{
"description": "",
"id": "validations:-date-validation;validate-date-now+10001-is-after-now",
"keyword": "Scenario",
"line": 21,
"name": "Validate date now+10001 is after now",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 4375
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 57416
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 22,
"name": "set \"created_date\" to \"${new Date().getTime()+10001}\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 58166
},
"embeddings": [
{
"data": "{\n \"created_date\": \"1727185587288\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 23,
"name": "item \"created_date\" is after now",
"match": {
"location": "index.js:71"
},
"result": {
"status": "passed",
"duration": 190166
}
}
],
"tags": [],
"type": "scenario"
},
{
"description": "",
"id": "validations:-date-validation;validate-date-\"11/11/2019\"-is-before-\"11/12/2019\"",
"keyword": "Scenario Outline",
"line": 30,
"name": "Validate date \"11/11/2019\" is before \"11/12/2019\"",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 4125
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 49208
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 26,
"name": "set \"created_date\" to \"11/11/2019\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 42792
},
"embeddings": [
{
"data": "{\n \"created_date\": \"11/11/2019\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 27,
"name": "item \"created_date\" is before \"11/12/2019\"",
"match": {
"location": "index.js:80"
},
"result": {
"status": "passed",
"duration": 71625
}
}
],
"tags": [],
"type": "scenario"
},
{
"description": "",
"id": "validations:-date-validation;validate-date-\"11/13/2019\"-is-after-\"11/12/2019\"",
"keyword": "Scenario Outline",
"line": 31,
"name": "Validate date \"11/13/2019\" is after \"11/12/2019\"",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 63833
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 101499
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 26,
"name": "set \"created_date\" to \"11/13/2019\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 45208
},
"embeddings": [
{
"data": "{\n \"created_date\": \"11/13/2019\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 27,
"name": "item \"created_date\" is after \"11/12/2019\"",
"match": {
"location": "index.js:80"
},
"result": {
"status": "passed",
"duration": 75417
}
}
],
"tags": [],
"type": "scenario"
},
{
"description": "",
"id": "validations:-date-validation;validate-when-set-item-to-value-\"hi\"-then-it's-equal-to-that-value",
"keyword": "Scenario Outline",
"line": 37,
"name": "Validate when set item to value \"hi\" then it's equal to that value",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 5957
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 43292
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 33,
"name": "set \"item\" to \"hi\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 59666
},
"embeddings": [
{
"data": "{\n \"item\": \"hi\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 34,
"name": "\"${item}\" is equal to \"hi\"",
"match": {
"location": "index.js:471"
},
"result": {
"status": "passed",
"duration": 83625
}
}
],
"tags": [],
"type": "scenario"
},
{
"description": "",
"id": "validations:-date-validation;when-set-array-value-it-is-able-to-validate-in-the-area",
"keyword": "Scenario",
"line": 40,
"name": "When set array value it is able to validate in the area",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 2207
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 42625
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "When ",
"line": 41,
"name": "set \"item\" to file \"file.json\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 2552999
},
"embeddings": [
{
"data": "{\n \"item\": [\n {\n \"name\": \"jeff\"\n },\n {\n \"name\": \"joe\"\n }\n ]\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 42,
"name": "\"${item[1].name}\" is equal to \"joe\"",
"match": {
"location": "index.js:471"
},
"result": {
"status": "passed",
"duration": 92208
}
}
],
"tags": [],
"type": "scenario"
}
],
"id": "validations:-date-validation",
"line": 1,
"keyword": "Feature",
"name": "Validations: Date validation",
"tags": [],
"uri": "features/date.feature"
},
{
"description": "",
"elements": [
{
"description": "",
"id": "validations:-equivalence-testing;json-equivalence",
"keyword": "Scenario",
"line": 5,
"name": "JSON equivalence",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 3915
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 118375
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [
{
"content": "I am a string\"\nwith new lines",
"line": 7
}
],
"keyword": "Given ",
"line": 6,
"name": "set \"str\" to:",
"match": {
"location": "index.js:55"
},
"result": {
"status": "passed",
"duration": 111875
},
"embeddings": [
{
"data": "{\n \"str\": \"I am a string\\\"\\nwith new lines\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [
{
"content": "${str}\nNext Line",
"line": 12
}
],
"keyword": "And ",
"line": 11,
"name": "set \"doubleStr\" to:",
"match": {
"location": "index.js:55"
},
"result": {
"status": "passed",
"duration": 98833
},
"embeddings": [
{
"data": "{\n \"doubleStr\": \"I am a string\\\"\\nwith new lines\\nNext Line\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [
{
"content": "{\n \"str\": \"${str}\"\n}",
"line": 17
}
],
"keyword": "And ",
"line": 16,
"name": "set \"newItem\" to:",
"match": {
"location": "index.js:55"
},
"result": {
"status": "passed",
"duration": 79250
},
"embeddings": [
{
"data": "{\n \"newItem\": {\n \"str\": \"I am a string\\\"\\nwith new lines\"\n }\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [
{
"content": "{\n \"str\": \"I am a string\\\"\\nwith new lines\"\n}",
"line": 23
}
],
"keyword": "Then ",
"line": 22,
"name": "item \"newItem\" is equal to:",
"match": {
"location": "index.js:493"
},
"result": {
"status": "passed",
"duration": 612041
}
},
{
"arguments": [
{
"content": "I am a string\"\nwith new lines\nNext Line",
"line": 29
}
],
"keyword": "And ",
"line": 28,
"name": "item \"doubleStr\" is equal to:",
"match": {
"location": "index.js:493"
},
"result": {
"status": "passed",
"duration": 59874
}
}
],
"tags": [],
"type": "scenario"
},
{
"description": "",
"id": "validations:-equivalence-testing;last-item-not-null",
"keyword": "Scenario",
"line": 34,
"name": "Last item not null",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 4292
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 53875
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 35,
"name": "set \"lastRun\" to \"5\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 41083
},
"embeddings": [
{
"data": "{\n \"lastRun\": \"5\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 36,
"name": "it is not null",
"match": {
"location": "index.js:90"
},
"result": {
"status": "passed",
"duration": 109207
}
},
{
"arguments": [],
"keyword": "And ",
"line": 37,
"name": "\"5\" >= \"5\"",
"match": {
"location": "index.js:62"
},
"result": {
"status": "passed",
"duration": 77999
}
}
],
"tags": [],
"type": "scenario"
},
{
"description": "",
"id": "validations:-equivalence-testing;check-an-item-is-not-null",
"keyword": "Scenario",
"line": 38,
"name": "Check an item is not null",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 2250
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 48291
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 39,
"name": "set \"bob\" to \"6\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 34708
},
"embeddings": [
{
"data": "{\n \"bob\": \"6\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 40,
"name": "item \"bob\" is not null",
"match": {
"location": "index.js:90"
},
"result": {
"status": "passed",
"duration": 69000
}
}
],
"tags": [],
"type": "scenario"
},
{
"description": "",
"id": "validations:-equivalence-testing;check-a-value-is-not-equal-to-another-value",
"keyword": "Scenario",
"line": 41,
"name": "Check a value is not equal to another value",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 2999
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 57874
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 42,
"name": "\"5\" is not equal to \"7\"",
"match": {
"location": "index.js:461"
},
"result": {
"status": "passed",
"duration": 54165
}
}
],
"tags": [],
"type": "scenario"
},
{
"description": "",
"id": "validations:-equivalence-testing;check-fill-template-with-items-not-equal",
"keyword": "Scenario",
"line": 43,
"name": "Check fill template with items not equal",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 1999
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 43584
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 44,
"name": "set \"bob\" to \"6\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 30749
},
"embeddings": [
{
"data": "{\n \"bob\": \"6\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "And ",
"line": 45,
"name": "set \"sally\" to \"7\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 36917
},
"embeddings": [
{
"data": "{\n \"sally\": \"7\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 46,
"name": "\"${sally}\" is not equal to \"${bob}\"",
"match": {
"location": "index.js:461"
},
"result": {
"status": "passed",
"duration": 61833
}
}
],
"tags": [],
"type": "scenario"
},
{
"description": "",
"id": "validations:-equivalence-testing;check-if-json-contains-string",
"keyword": "Scenario",
"line": 47,
"name": "Check if Json contains string",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 1833
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 41125
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 48,
"name": "set \"test1\" to \"the quick brown fox jumped over the lazy dog\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 57625
},
"embeddings": [
{
"data": "{\n \"test1\": \"the quick brown fox jumped over the lazy dog\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 49,
"name": "item \"test1\" contains \"quick brown\"",
"match": {
"location": "index.js:616"
},
"result": {
"status": "passed",
"duration": 68957
}
},
{
"arguments": [
{
"content": "{\n \"firstname\" : \"Robert\",\n \"lastname\" : \"Paulson\"\n}",
"line": 51
}
],
"keyword": "Given ",
"line": 50,
"name": "set \"test2\" to:",
"match": {
"location": "index.js:55"
},
"result": {
"status": "passed",
"duration": 39749
},
"embeddings": [
{
"data": "{\n \"test2\": {\n \"firstname\": \"Robert\",\n \"lastname\": \"Paulson\"\n }\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 57,
"name": "item \"test2\" contains \"Robert\"",
"match": {
"location": "index.js:616"
},
"result": {
"status": "passed",
"duration": 45417
}
},
{
"arguments": [],
"keyword": "And ",
"line": 58,
"name": "item \"test2\" contains \"lastname\"",
"match": {
"location": "index.js:616"
},
"result": {
"status": "passed",
"duration": 40624
}
},
{
"arguments": [],
"keyword": "When ",
"line": 59,
"name": "set \"myItem\" to \"Banan\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 51249
},
"embeddings": [
{
"data": "{\n \"myItem\": \"Banan\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [
{
"content": "[\n \"Apple\",\n \"Banana\",\n \"Orange\"\n]",
"line": 61
}
],
"keyword": "Given ",
"line": 60,
"name": "set \"test3\" to:",
"match": {
"location": "index.js:55"
},
"result": {
"status": "passed",
"duration": 33207
},
"embeddings": [
{
"data": "{\n \"test3\": [\n \"Apple\",\n \"Banana\",\n \"Orange\"\n ]\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 68,
"name": "item \"test3\" contains \"Ora\"",
"match": {
"location": "index.js:616"
},
"result": {
"status": "passed",
"duration": 39458
}
},
{
"arguments": [],
"keyword": "And ",
"line": 69,
"name": "item \"test3\" contains \"${myItem}\"",
"match": {
"location": "index.js:616"
},
"result": {
"status": "passed",
"duration": 62082
}
},
{
"arguments": [],
"keyword": "And ",
"line": 70,
"name": "item \"test3\" does not contain \"Kiwi\"",
"match": {
"location": "index.js:623"
},
"result": {
"status": "passed",
"duration": 167625
}
}
],
"tags": [],
"type": "scenario"
}
],
"id": "validations:-equivalence-testing",
"line": 1,
"keyword": "Feature",
"name": "Validations: Equivalence testing",
"tags": [],
"uri": "features/equivalence.feature"
},
{
"description": "",
"elements": [
{
"description": "",
"id": "validations:-error-from-response;validate-error",
"keyword": "Scenario",
"line": 5,
"name": "Validate error",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 4042
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:51"
},
"result": {
"status": "passed",
"duration": 216957
},
"embeddings": [
{
"data": "{\n \"directory\": \"./test\"\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [
{
"content": "{\n \"referenceNumber\": null,\n \"results\": null,\n \"status\": 400,\n \"error\": {\n \"errorCode\": -2,\n \"errorMessage\": \"Invalid Request\",\n \"subErrorCodes\": [\n {\n \"subErrorCode\": \"0019\",\n \"subErrorMessage\": \"Zip code is required\"\n }\n ]\n }\n}",
"line": 7
}
],
"keyword": "When ",
"line": 6,
"name": "set \"response\" to:",
"match": {
"location": "index.js:55"
},
"result": {
"status": "passed",
"duration": 148749
},
"embeddings": [
{
"data": "{\n \"response\": {\n \"referenceNumber\": null,\n \"results\": null,\n \"status\": 400,\n \"error\": {\n \"errorCode\": -2,\n \"errorMessage\": \"Invalid Request\",\n \"subErrorCodes\": [\n {\n \"subErrorCode\": \"0019\",\n \"subErrorMessage\": \"Zip code is required\"\n }\n ]\n }\n }\n}",
"mime_type": "text/plain"
}
]
},
{
"arguments": [
{
"content": " {\n \"errorCode\": -2,\n \"errorMessage\": \"Invalid Request\",\n \"subErrorCodes\": [\n {\n \"subErrorCode\": \"0019\",\n \"subErrorMessage\": \"Zip code is required\"\n }\n ]\n }",
"line": 25
}
],
"keyword": "Then ",
"line": 24,
"name": "item \"response.error\" is equal to:",
"match": {
"location": "index.js:493"
},
"result": {
"status": "passed",
"duration": 190916
}
},
{
"arguments": [
{
"content": " {\n \"errorCode\": -3,\n \"errorMessage\": \"Invalid Request\",\n \"subErrorCodes\": [\n {\n \"subErrorCode\": \"0019\",\n \"subErrorMessage\": \"Zip code is required\"\n }\n ]\n }",
"line": 38
}
],
"keyword": "And ",
"line": 37,
"name": "item \"response.error\" is not equal to:",
"match": {
"location": "index.js:480"
},
"result": {
"s