@ln-maf/validations
Version:
This module is created to allow other projects to easily validate JSON utilizing a set of steps.
1,758 lines • 277 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": 490374
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 573624
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 6,
"name": "set \"bla\" to '{ \"json\": \"object\" }'",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 146833
},
"embeddings": [
{
"data": "ewogICJibGEiOiB7CiAgICAianNvbiI6ICJvYmplY3QiCiAgfQp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "And ",
"line": 7,
"name": "item \"bla\" is base64 encoded",
"match": {
"location": "../core/index.js:166"
},
"result": {
"status": "passed",
"duration": 271583
},
"embeddings": [
{
"data": "ewogICJsYXN0UnVuIjogImV5SnFjMjl1SWpvaWIySnFaV04wSW4wPSIKfQ==",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 8,
"name": "set \"expected\" to \"Hello World\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 131332
},
"embeddings": [
{
"data": "ewogICJleHBlY3RlZCI6ICJIZWxsbyBXb3JsZCIKfQ==",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "And ",
"line": 9,
"name": "item \"expected\" is base64 encoded",
"match": {
"location": "../core/index.js:166"
},
"result": {
"status": "passed",
"duration": 161583
},
"embeddings": [
{
"data": "ewogICJsYXN0UnVuIjogIlNHVnNiRzhnVjI5eWJHUT0iCn0=",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "And ",
"line": 10,
"name": "it is base64 decoded",
"match": {
"location": "../core/index.js:166"
},
"result": {
"status": "passed",
"duration": 78167
},
"embeddings": [
{
"data": "ewogICJsYXN0UnVuIjogIkhlbGxvIFdvcmxkIgp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 11,
"name": "it is equal to \"Hello World\"",
"match": {
"location": "index.js:512"
},
"result": {
"status": "passed",
"duration": 182500
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 12,
"name": "set \"i\" to \"ZmVhd3JhZXdyZXc=\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 1624749
},
"embeddings": [
{
"data": "ewogICJpIjogIlptVmhkM0poWlhkeVpYYz0iCn0=",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "When ",
"line": 13,
"name": "the value \"i\" is base64 decoded and resaved",
"match": {
"location": "../core/index.js:166"
},
"result": {
"status": "passed",
"duration": 283542
},
"embeddings": [
{
"data": "RGVjb2RlZCB2YWx1ZTogZmVhd3JhZXdyZXc=",
"mime_type": "text"
},
{
"data": "e30=",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 14,
"name": "\"${i}\" is equal to \"feawraewrew\"",
"match": {
"location": "index.js:512"
},
"result": {
"status": "passed",
"duration": 525750
}
}
],
"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": 27625
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 291958
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "And ",
"line": 6,
"name": "set \"attach\" to \"false\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 39750
}
},
{
"arguments": [],
"keyword": "When ",
"line": 7,
"name": "blob is read from file \"image2.png\"",
"match": {
"location": "../core/index.js:166"
},
"result": {
"status": "passed",
"duration": 6660625
}
},
{
"arguments": [],
"keyword": "And ",
"line": 8,
"name": "blob item \"lastRun\" is written to file \"newBlob.png\"",
"match": {
"location": "index.js:687"
},
"result": {
"status": "passed",
"duration": 5150916
}
},
{
"arguments": [],
"keyword": "And ",
"line": 9,
"name": "blob item \"lastRun\" is attached",
"match": {
"location": "index.js:694"
},
"result": {
"status": "passed",
"duration": 416082
},
"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:700"
},
"result": {
"status": "passed",
"duration": 4875458
}
}
],
"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": 91457
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "convert csv file \"test.csv\" to json",
"match": {
"location": "../core/index.js:166"
},
"result": {
"status": "passed",
"duration": 33000167
},
"embeddings": [
{
"data": "ewogICJsYXN0UnVuIjogWwogICAgewogICAgICAiaGVsbG8iOiAiaXRlbTEiLAogICAgICAid29ybGQiOiAiaXRlbTIiCiAgICB9CiAgXQp9",
"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": 27959
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 241375
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 7,
"name": "set \"created_date\" to \"11/11/2019\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 63124
},
"embeddings": [
{
"data": "ewogICJjcmVhdGVkX2RhdGUiOiAiMTEvMTEvMjAxOSIKfQ==",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 8,
"name": "item \"created_date\" is before now",
"match": {
"location": "index.js:92"
},
"result": {
"status": "passed",
"duration": 620103000
}
}
],
"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": 56166
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 511874
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 11,
"name": "\"11/11/2019\" is before \"11/12/2019\"",
"match": {
"location": "index.js:101"
},
"result": {
"status": "passed",
"duration": 303625
}
}
],
"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": 43875
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 367666
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 14,
"name": "set \"created_date\" to \"${new Date().getTime()-1}\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 204833
},
"embeddings": [
{
"data": "ewogICJjcmVhdGVkX2RhdGUiOiAiMTczODg1NjE4NTI3MyIKfQ==",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 15,
"name": "set \"created_date2\" to \"${new Date().getTime()}\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 174416
},
"embeddings": [
{
"data": "ewogICJjcmVhdGVkX2RhdGUyIjogIjE3Mzg4NTYxODUyNzUiCn0=",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 16,
"name": "item \"created_date\" is before item \"created_date2\"",
"match": {
"location": "index.js:101"
},
"result": {
"status": "passed",
"duration": 186125
}
}
],
"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": 45916
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 338707
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 19,
"name": "set \"created_date\" to \"${new Date().getTime()-1}\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 171667
},
"embeddings": [
{
"data": "ewogICJjcmVhdGVkX2RhdGUiOiAiMTczODg1NjE4NTI3NSIKfQ==",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 20,
"name": "item \"created_date\" is before now",
"match": {
"location": "index.js:92"
},
"result": {
"status": "passed",
"duration": 297833
}
}
],
"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": 44791
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 318375
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 22,
"name": "set \"created_date\" to \"${new Date().getTime()+10001}\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 167790
},
"embeddings": [
{
"data": "ewogICJjcmVhdGVkX2RhdGUiOiAiMTczODg1NjE5NTI3OCIKfQ==",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 23,
"name": "item \"created_date\" is after now",
"match": {
"location": "index.js:92"
},
"result": {
"status": "passed",
"duration": 233416
}
}
],
"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": 57333
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 403291
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 26,
"name": "set \"created_date\" to \"11/11/2019\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 201458
},
"embeddings": [
{
"data": "ewogICJjcmVhdGVkX2RhdGUiOiAiMTEvMTEvMjAxOSIKfQ==",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 27,
"name": "item \"created_date\" is before \"11/12/2019\"",
"match": {
"location": "index.js:101"
},
"result": {
"status": "passed",
"duration": 402665
}
}
],
"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": 168250
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 358291
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 26,
"name": "set \"created_date\" to \"11/13/2019\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 131041
},
"embeddings": [
{
"data": "ewogICJjcmVhdGVkX2RhdGUiOiAiMTEvMTMvMjAxOSIKfQ==",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 27,
"name": "item \"created_date\" is after \"11/12/2019\"",
"match": {
"location": "index.js:101"
},
"result": {
"status": "passed",
"duration": 169041
}
}
],
"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": 40583
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 262375
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 33,
"name": "set \"item\" to \"hi\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 110374
},
"embeddings": [
{
"data": "ewogICJpdGVtIjogImhpIgp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 34,
"name": "\"${item}\" is equal to \"hi\"",
"match": {
"location": "index.js:512"
},
"result": {
"status": "passed",
"duration": 201666
}
}
],
"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": 70292
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 262165
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "When ",
"line": 41,
"name": "set \"item\" to file \"file.json\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 2460624
},
"embeddings": [
{
"data": "ewogICJpdGVtIjogWwogICAgewogICAgICAibmFtZSI6ICJqZWZmIgogICAgfSwKICAgIHsKICAgICAgIm5hbWUiOiAiam9lIgogICAgfQogIF0KfQ==",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 42,
"name": "\"${item[1].name}\" is equal to \"joe\"",
"match": {
"location": "index.js:512"
},
"result": {
"status": "passed",
"duration": 186374
}
}
],
"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": 16125
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 354334
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"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:52"
},
"result": {
"status": "passed",
"duration": 241040
},
"embeddings": [
{
"data": "ewogICJzdHIiOiAiSSBhbSBhIHN0cmluZ1wiXG53aXRoIG5ldyBsaW5lcyIKfQ==",
"mime_type": "text/plain"
}
]
},
{
"arguments": [
{
"content": "${str}\nNext Line",
"line": 12
}
],
"keyword": "And ",
"line": 11,
"name": "set \"doubleStr\" to:",
"match": {
"location": "index.js:52"
},
"result": {
"status": "passed",
"duration": 154500
},
"embeddings": [
{
"data": "ewogICJkb3VibGVTdHIiOiAiSSBhbSBhIHN0cmluZ1wiXG53aXRoIG5ldyBsaW5lc1xuTmV4dCBMaW5lIgp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [
{
"content": "{\n \"str\": \"${str}\"\n}",
"line": 17
}
],
"keyword": "And ",
"line": 16,
"name": "set \"newItem\" to:",
"match": {
"location": "index.js:52"
},
"result": {
"status": "passed",
"duration": 113917
},
"embeddings": [
{
"data": "ewogICJuZXdJdGVtIjogewogICAgInN0ciI6ICJJIGFtIGEgc3RyaW5nXCJcbndpdGggbmV3IGxpbmVzIgogIH0KfQ==",
"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:534"
},
"result": {
"status": "passed",
"duration": 1176333
}
},
{
"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:534"
},
"result": {
"status": "passed",
"duration": 115833
}
}
],
"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": 27957
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 277833
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 35,
"name": "set \"lastRun\" to \"5\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 92459
},
"embeddings": [
{
"data": "ewogICJsYXN0UnVuIjogIjUiCn0=",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 36,
"name": "it is not null",
"match": {
"location": "index.js:111"
},
"result": {
"status": "passed",
"duration": 137999
}
},
{
"arguments": [],
"keyword": "And ",
"line": 37,
"name": "\"5\" >= \"5\"",
"match": {
"location": "index.js:59"
},
"result": {
"status": "passed",
"duration": 147666
}
}
],
"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": 27124
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 389792
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 39,
"name": "set \"bob\" to \"6\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 121709
},
"embeddings": [
{
"data": "ewogICJib2IiOiAiNiIKfQ==",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 40,
"name": "item \"bob\" is not null",
"match": {
"location": "index.js:111"
},
"result": {
"status": "passed",
"duration": 283333
}
}
],
"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": 68500
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 350000
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 42,
"name": "\"5\" is not equal to \"7\"",
"match": {
"location": "index.js:502"
},
"result": {
"status": "passed",
"duration": 187458
}
}
],
"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": 30582
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 311083
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Given ",
"line": 44,
"name": "set \"bob\" to \"6\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 160417
},
"embeddings": [
{
"data": "ewogICJib2IiOiAiNiIKfQ==",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "And ",
"line": 45,
"name": "set \"sally\" to \"7\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 133499
},
"embeddings": [
{
"data": "ewogICJzYWxseSI6ICI3Igp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 46,
"name": "\"${sally}\" is not equal to \"${bob}\"",
"match": {
"location": "index.js:502"
},
"result": {
"status": "passed",
"duration": 262291
}
}
],
"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": 28124
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 297833
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"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:48"
},
"result": {
"status": "passed",
"duration": 73208
},
"embeddings": [
{
"data": "ewogICJ0ZXN0MSI6ICJ0aGUgcXVpY2sgYnJvd24gZm94IGp1bXBlZCBvdmVyIHRoZSBsYXp5IGRvZyIKfQ==",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 49,
"name": "item \"test1\" contains \"quick brown\"",
"match": {
"location": "index.js:657"
},
"result": {
"status": "passed",
"duration": 96207
}
},
{
"arguments": [
{
"content": "{\n \"firstname\" : \"Robert\",\n \"lastname\" : \"Paulson\"\n}",
"line": 51
}
],
"keyword": "Given ",
"line": 50,
"name": "set \"test2\" to:",
"match": {
"location": "index.js:52"
},
"result": {
"status": "passed",
"duration": 62916
},
"embeddings": [
{
"data": "ewogICJ0ZXN0MiI6IHsKICAgICJmaXJzdG5hbWUiOiAiUm9iZXJ0IiwKICAgICJsYXN0bmFtZSI6ICJQYXVsc29uIgogIH0KfQ==",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 57,
"name": "item \"test2\" contains \"Robert\"",
"match": {
"location": "index.js:657"
},
"result": {
"status": "passed",
"duration": 54000
}
},
{
"arguments": [],
"keyword": "And ",
"line": 58,
"name": "item \"test2\" contains \"lastname\"",
"match": {
"location": "index.js:657"
},
"result": {
"status": "passed",
"duration": 50083
}
},
{
"arguments": [],
"keyword": "When ",
"line": 59,
"name": "set \"myItem\" to \"Banan\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 51042
},
"embeddings": [
{
"data": "ewogICJteUl0ZW0iOiAiQmFuYW4iCn0=",
"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:52"
},
"result": {
"status": "passed",
"duration": 34583
},
"embeddings": [
{
"data": "ewogICJ0ZXN0MyI6IFsKICAgICJBcHBsZSIsCiAgICAiQmFuYW5hIiwKICAgICJPcmFuZ2UiCiAgXQp9",
"mime_type": "text/plain"
}
]
},
{
"arguments": [],
"keyword": "Then ",
"line": 68,
"name": "item \"test3\" contains \"Ora\"",
"match": {
"location": "index.js:657"
},
"result": {
"status": "passed",
"duration": 54124
}
},
{
"arguments": [],
"keyword": "And ",
"line": 69,
"name": "item \"test3\" contains \"${myItem}\"",
"match": {
"location": "index.js:657"
},
"result": {
"status": "passed",
"duration": 96874
}
},
{
"arguments": [],
"keyword": "And ",
"line": 70,
"name": "item \"test3\" does not contain \"Kiwi\"",
"match": {
"location": "index.js:664"
},
"result": {
"status": "passed",
"duration": 153041
}
}
],
"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": 11957
}
},
{
"arguments": [],
"keyword": "When ",
"line": 3,
"name": "set \"directory\" to \"./test\"",
"match": {
"location": "index.js:48"
},
"result": {
"status": "passed",
"duration": 165875
},
"embeddings": [
{
"data": "ewogICJkaXJlY3RvcnkiOiAiLi90ZXN0Igp9",
"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:52"
},
"result": {
"status": "passed",
"duration": 77583
},
"embeddings": [
{
"data": "ewogICJyZXNwb25zZSI6IHsKICAgICJyZWZlcmVuY2VOdW1iZXIiOiBudWxsLAogICAgInJlc3VsdHMiOiBudWxsLAogICAgInN0YXR1cyI6IDQwMCwKICAgICJlcnJvciI6IHsKICAgICAgImVycm9yQ29kZSI6IC0yLAogICAgICAiZXJyb3JNZXNzYWdlIjogIkludmFsaWQgUmVxdWVzdCIsCiAgICAgICJzdWJFcnJvckNvZGVzIjogWwogICAgICAgIHsKICAgICAgICAgICJzdWJFcnJvckNvZGUiOiAiMDAxOSIsCiAgICAgICAgICAic3ViRXJyb3JNZXNzYWdlIjogIlppcCBjb2RlIGlzIHJlcXVpcmVkIgogICAgICAgIH0KICAgICAgXQogICAgfQogIH0KfQ==",
"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:534"
},
"result": {
"status": "passed",
"duration": 129584
}
},
{
"arguments": [
{
"content": " {\n \"errorCode\": -3,\n \"errorMessage\":