Commit f897e9df authored by Hassan Bin Eqbal's avatar Hassan Bin Eqbal

Merge branch 'feature/testcafePractise' into 'master'

Feature/testcafe practise

See merge request !1
parents b40d31cb 987a4d70
node_modules
.DS_Store
build
.env
dist
server-dist
.config
.tmp/
.vscode/
module.exports = {
hooks: {
fixture: {
before: async ctx => {
ctx.firstName = "Hasan";
ctx.lastName = "Eqbal";
ctx.country = "Germany";
ctx.cityTxt = "Berlin";
ctx.addressTxt = "108 ddd test";
ctx.zipTxt = "123456";
ctx.phoneTxt = "332434345";
ctx.searchKeyWord = "Apple MacBook Pro 13-inch";
ctx.searchKeyWordInURL = "apple-macbook-pro-13-inch";
ctx.checkoutGuestURL = "checkout";
}
}
},
browsers: "chrome",
src: "test/RegistrationTest.js",
reporter: "list",
screenshots: {
path: "report/screenshots",
takeOnFails: true,
fullPage: true
},
videoPath: "report/videos",
videoOptions: {
singleFile: true,
failedOnly: true
},
concurrency: 3,
selectorTimeout: 3000,
assertionTimeout: 1000,
pageLoadTimeout: 1000,
speed: 0.1
};
This diff is collapsed.
"Epic","Feature","Story","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"","test run id or identifier","A guest user visits the web application, search for an available product and place an order","0","0","3","0","0"
{
"uid" : "b1a8273437954620fa374b796ffaacdd",
"name" : "behaviors",
"children" : [ {
"name" : "test run id or identifier",
"children" : [ {
"name" : "A guest user visits the web application, search for an available product and place an order",
"children" : [ {
"name" : "Assert Home page",
"uid" : "815b6b68f29e16d4",
"parentUid" : "59f5d44367d727594cc5b55cc74d486d",
"status" : "passed",
"time" : {
"start" : 1655309305573,
"stop" : 1655309423398,
"duration" : 117825
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 3,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/1", "test run id or identifier" ]
}, {
"name" : "Change Currency Test",
"uid" : "70eb30a9e0d8af00",
"parentUid" : "59f5d44367d727594cc5b55cc74d486d",
"status" : "passed",
"time" : {
"start" : 1655309305595,
"stop" : 1655309423442,
"duration" : 117847
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 3,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/2", "test run id or identifier" ]
}, {
"name" : "As a guest, the purchase of a product is successful.",
"uid" : "9d6d5d1f5c33ca36",
"parentUid" : "59f5d44367d727594cc5b55cc74d486d",
"status" : "passed",
"time" : {
"start" : 1655309313005,
"stop" : 1655309437733,
"duration" : 124728
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 3,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/3", "test run id or identifier" ]
} ],
"uid" : "59f5d44367d727594cc5b55cc74d486d"
} ],
"uid" : "b1b3bee9cbea280580ee91c2791c562c"
} ]
}
\ No newline at end of file
{
"uid" : "4b4757e66a1912dae1a509f688f20b0f",
"name" : "categories",
"children" : [ ]
}
\ No newline at end of file
{
"uid" : "83edc06c07f9ae9e47eb6dd1b683e4e2",
"name" : "packages",
"children" : [ {
"name" : "A guest user visits the web application, search for an available product and place an order",
"children" : [ {
"name" : "Assert Home page",
"uid" : "815b6b68f29e16d4",
"parentUid" : "28df78dbbf21fe4959a4b84ee84ecb8c",
"status" : "passed",
"time" : {
"start" : 1655309305573,
"stop" : 1655309423398,
"duration" : 117825
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 3,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/1", "test run id or identifier" ]
}, {
"name" : "Change Currency Test",
"uid" : "70eb30a9e0d8af00",
"parentUid" : "28df78dbbf21fe4959a4b84ee84ecb8c",
"status" : "passed",
"time" : {
"start" : 1655309305595,
"stop" : 1655309423442,
"duration" : 117847
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 3,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/2", "test run id or identifier" ]
}, {
"name" : "As a guest, the purchase of a product is successful.",
"uid" : "9d6d5d1f5c33ca36",
"parentUid" : "28df78dbbf21fe4959a4b84ee84ecb8c",
"status" : "passed",
"time" : {
"start" : 1655309313005,
"stop" : 1655309437733,
"duration" : 124728
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 3,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/3", "test run id or identifier" ]
} ],
"uid" : "28df78dbbf21fe4959a4b84ee84ecb8c"
} ]
}
\ No newline at end of file
"Status","Start Time","Stop Time","Duration in ms","Parent Suite","Suite","Sub Suite","Test Class","Test Method","Name","Description"
"passed","Wed Jun 15 21:38:25 IST 2022","Wed Jun 15 21:40:23 IST 2022","117847","","A guest user visits the web application, search for an available product and place an order","","A guest user visits the web application, search for an available product and place an order","Change Currency Test","Change Currency Test",""
"passed","Wed Jun 15 21:38:33 IST 2022","Wed Jun 15 21:40:37 IST 2022","124728","","A guest user visits the web application, search for an available product and place an order","","A guest user visits the web application, search for an available product and place an order","As a guest, the purchase of a product is successful.","As a guest, the purchase of a product is successful.",""
"passed","Wed Jun 15 21:38:25 IST 2022","Wed Jun 15 21:40:23 IST 2022","117825","","A guest user visits the web application, search for an available product and place an order","","A guest user visits the web application, search for an available product and place an order","Assert Home page","Assert Home page",""
{
"uid" : "98d3104e051c652961429bf95fa0b5d6",
"name" : "suites",
"children" : [ {
"name" : "A guest user visits the web application, search for an available product and place an order",
"children" : [ {
"name" : "Assert Home page",
"uid" : "815b6b68f29e16d4",
"parentUid" : "38e2dc2f83ef540e5c19e9504011d16c",
"status" : "passed",
"time" : {
"start" : 1655309305573,
"stop" : 1655309423398,
"duration" : 117825
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 3,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/1", "test run id or identifier" ]
}, {
"name" : "Change Currency Test",
"uid" : "70eb30a9e0d8af00",
"parentUid" : "38e2dc2f83ef540e5c19e9504011d16c",
"status" : "passed",
"time" : {
"start" : 1655309305595,
"stop" : 1655309423442,
"duration" : 117847
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 3,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/2", "test run id or identifier" ]
}, {
"name" : "As a guest, the purchase of a product is successful.",
"uid" : "9d6d5d1f5c33ca36",
"parentUid" : "38e2dc2f83ef540e5c19e9504011d16c",
"status" : "passed",
"time" : {
"start" : 1655309313005,
"stop" : 1655309437733,
"duration" : 124728
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 3,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/3", "test run id or identifier" ]
} ],
"uid" : "38e2dc2f83ef540e5c19e9504011d16c"
} ]
}
\ No newline at end of file
{
"uid" : "1dd78b6a059ea433",
"name" : "As a guest, the purchase of a product is successful.",
"fullName" : "A guest user visits the web application, search for an available product and place an order.As a guest, the purchase of a product is successful.",
"historyId" : "add545f3dcb8a1f67113c94b7b8f8700",
"time" : {
"start" : 1655270206056,
"stop" : 1655270263827,
"duration" : 57771
},
"description" : "",
"descriptionHtml" : "",
"status" : "passed",
"statusMessage" : "This test has been passed.",
"statusTrace" : "no error",
"flaky" : false,
"newFailed" : false,
"newBroken" : false,
"newPassed" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"beforeStages" : [ ],
"afterStages" : [ ],
"labels" : [ {
"name" : "feature",
"value" : "test run id or identifier"
}, {
"name" : "severity",
"value" : "blocker"
}, {
"name" : "story",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "suite",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testClass",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testMethod",
"value" : "As a guest, the purchase of a product is successful."
}, {
"name" : "package",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "resultFormat",
"value" : "allure1"
} ],
"parameters" : [ {
"name" : "JIRA Story Link",
"value" : "https://jira.nisum.com/browse/INS-452"
}, {
"name" : "JIRA Test Link",
"value" : "https://jira.nisum.com/secure/Tests.jspa#/testCase/3"
}, {
"name" : "User Agent",
"value" : "test run id or identifier"
} ],
"links" : [ ],
"hidden" : true,
"retry" : true,
"extra" : {
"categories" : [ ],
"tags" : [ ]
},
"source" : "1dd78b6a059ea433.json",
"parameterValues" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/3", "test run id or identifier" ]
}
\ No newline at end of file
{
"uid" : "302923f6cd66462f",
"name" : "Change Currency Test",
"fullName" : "A guest user visits the web application, search for an available product and place an order.Change Currency Test",
"historyId" : "a3b7d4d4bcb3db76a0fece747061aebc",
"time" : {
"start" : 1655270185137,
"stop" : 1655270222098,
"duration" : 36961
},
"description" : "",
"descriptionHtml" : "",
"status" : "passed",
"statusMessage" : "This test has been passed.",
"statusTrace" : "no error",
"flaky" : false,
"newFailed" : false,
"newBroken" : false,
"newPassed" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"beforeStages" : [ ],
"afterStages" : [ ],
"labels" : [ {
"name" : "feature",
"value" : "test run id or identifier"
}, {
"name" : "severity",
"value" : "Low"
}, {
"name" : "story",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "suite",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testClass",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testMethod",
"value" : "Change Currency Test"
}, {
"name" : "package",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "resultFormat",
"value" : "allure1"
} ],
"parameters" : [ {
"name" : "JIRA Story Link",
"value" : "https://jira.nisum.com/browse/INS-452"
}, {
"name" : "JIRA Test Link",
"value" : "https://jira.nisum.com/secure/Tests.jspa#/testCase/2"
}, {
"name" : "User Agent",
"value" : "test run id or identifier"
} ],
"links" : [ ],
"hidden" : true,
"retry" : true,
"extra" : {
"categories" : [ ],
"tags" : [ ]
},
"source" : "302923f6cd66462f.json",
"parameterValues" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/2", "test run id or identifier" ]
}
\ No newline at end of file
{
"uid" : "34aef2281b384534",
"name" : "Assert Home page",
"fullName" : "A guest user visits the web application, search for an available product and place an order.Assert Home page",
"historyId" : "eabe2f73dbc0231050c8a2e11cfec588",
"time" : {
"start" : 1655270477555,
"stop" : 1655270512677,
"duration" : 35122
},
"description" : "",
"descriptionHtml" : "",
"status" : "passed",
"statusMessage" : "This test has been passed.",
"statusTrace" : "no error",
"flaky" : false,
"newFailed" : false,
"newBroken" : false,
"newPassed" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"beforeStages" : [ ],
"afterStages" : [ ],
"labels" : [ {
"name" : "feature",
"value" : "test run id or identifier"
}, {
"name" : "severity",
"value" : "Medium"
}, {
"name" : "story",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "suite",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testClass",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testMethod",
"value" : "Assert Home page"
}, {
"name" : "package",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "resultFormat",
"value" : "allure1"
} ],
"parameters" : [ {
"name" : "JIRA Story Link",
"value" : "https://jira.nisum.com/browse/INS-452"
}, {
"name" : "JIRA Test Link",
"value" : "https://jira.nisum.com/secure/Tests.jspa#/testCase/1"
}, {
"name" : "User Agent",
"value" : "test run id or identifier"
} ],
"links" : [ ],
"hidden" : true,
"retry" : true,
"extra" : {
"categories" : [ ],
"tags" : [ ]
},
"source" : "34aef2281b384534.json",
"parameterValues" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/1", "test run id or identifier" ]
}
\ No newline at end of file
{
"uid" : "4d1b0466d479aec0",
"name" : "Change Currency Test",
"fullName" : "A guest user visits the web application, search for an available product and place an order.Change Currency Test",
"historyId" : "a3b7d4d4bcb3db76a0fece747061aebc",
"time" : {
"start" : 1655270477576,
"stop" : 1655270512369,
"duration" : 34793
},
"description" : "",
"descriptionHtml" : "",
"status" : "passed",
"statusMessage" : "This test has been passed.",
"statusTrace" : "no error",
"flaky" : false,
"newFailed" : false,
"newBroken" : false,
"newPassed" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"beforeStages" : [ ],
"afterStages" : [ ],
"labels" : [ {
"name" : "feature",
"value" : "test run id or identifier"
}, {
"name" : "severity",
"value" : "Low"
}, {
"name" : "story",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "suite",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testClass",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testMethod",
"value" : "Change Currency Test"
}, {
"name" : "package",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "resultFormat",
"value" : "allure1"
} ],
"parameters" : [ {
"name" : "JIRA Story Link",
"value" : "https://jira.nisum.com/browse/INS-452"
}, {
"name" : "JIRA Test Link",
"value" : "https://jira.nisum.com/secure/Tests.jspa#/testCase/2"
}, {
"name" : "User Agent",
"value" : "test run id or identifier"
} ],
"links" : [ ],
"hidden" : true,
"retry" : true,
"extra" : {
"categories" : [ ],
"tags" : [ ]
},
"source" : "4d1b0466d479aec0.json",
"parameterValues" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/2", "test run id or identifier" ]
}
\ No newline at end of file
{
"uid" : "68b75644e78b49cc",
"name" : "Change Currency Test",
"fullName" : "A guest user visits the web application, search for an available product and place an order.Change Currency Test",
"historyId" : "a3b7d4d4bcb3db76a0fece747061aebc",
"time" : {
"start" : 1655270071784,
"stop" : 1655270104371,
"duration" : 32587
},
"description" : "",
"descriptionHtml" : "",
"status" : "passed",
"statusMessage" : "This test has been passed.",
"statusTrace" : "no error",
"flaky" : false,
"newFailed" : false,
"newBroken" : false,
"newPassed" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"beforeStages" : [ ],
"afterStages" : [ ],
"labels" : [ {
"name" : "feature",
"value" : "test run id or identifier"
}, {
"name" : "severity",
"value" : "Low"
}, {
"name" : "story",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "suite",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testClass",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testMethod",
"value" : "Change Currency Test"
}, {
"name" : "package",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "resultFormat",
"value" : "allure1"
} ],
"parameters" : [ {
"name" : "JIRA Story Link",
"value" : "https://jira.nisum.com/browse/INS-452"
}, {
"name" : "JIRA Test Link",
"value" : "https://jira.nisum.com/secure/Tests.jspa#/testCase/2"
}, {
"name" : "User Agent",
"value" : "test run id or identifier"
} ],
"links" : [ ],
"hidden" : true,
"retry" : true,
"extra" : {
"categories" : [ ],
"tags" : [ ]
},
"source" : "68b75644e78b49cc.json",
"parameterValues" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/2", "test run id or identifier" ]
}
\ No newline at end of file
{
"uid" : "70eb30a9e0d8af00",
"name" : "Change Currency Test",
"fullName" : "A guest user visits the web application, search for an available product and place an order.Change Currency Test",
"historyId" : "a3b7d4d4bcb3db76a0fece747061aebc",
"time" : {
"start" : 1655309305595,
"stop" : 1655309423442,
"duration" : 117847
},
"description" : "",
"descriptionHtml" : "",
"status" : "passed",
"statusMessage" : "This test has been passed.",
"statusTrace" : "no error",
"flaky" : false,
"newFailed" : false,
"newBroken" : false,
"newPassed" : false,
"retriesCount" : 3,
"retriesStatusChange" : false,
"beforeStages" : [ ],
"afterStages" : [ ],
"labels" : [ {
"name" : "feature",
"value" : "test run id or identifier"
}, {
"name" : "severity",
"value" : "Low"
}, {
"name" : "story",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "suite",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testClass",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testMethod",
"value" : "Change Currency Test"
}, {
"name" : "package",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "resultFormat",
"value" : "allure1"
} ],
"parameters" : [ {
"name" : "JIRA Story Link",
"value" : "https://jira.nisum.com/browse/INS-452"
}, {
"name" : "JIRA Test Link",
"value" : "https://jira.nisum.com/secure/Tests.jspa#/testCase/2"
}, {
"name" : "User Agent",
"value" : "test run id or identifier"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ {
"uid" : "4d1b0466d479aec0",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270477576,
"stop" : 1655270512369,
"duration" : 34793
}
}, {
"uid" : "302923f6cd66462f",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270185137,
"stop" : 1655270222098,
"duration" : 36961
}
}, {
"uid" : "68b75644e78b49cc",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270071784,
"stop" : 1655270104371,
"duration" : 32587
}
} ],
"categories" : [ ],
"history" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
},
"items" : [ {
"uid" : "992a18b3818f0599",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270477576,
"stop" : 1655270512369,
"duration" : 34793
}
}, {
"uid" : "9935dfd72c7a1581",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270185137,
"stop" : 1655270222098,
"duration" : 36961
}
} ]
},
"tags" : [ ]
},
"source" : "70eb30a9e0d8af00.json",
"parameterValues" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/2", "test run id or identifier" ]
}
\ No newline at end of file
{
"uid" : "815b6b68f29e16d4",
"name" : "Assert Home page",
"fullName" : "A guest user visits the web application, search for an available product and place an order.Assert Home page",
"historyId" : "eabe2f73dbc0231050c8a2e11cfec588",
"time" : {
"start" : 1655309305573,
"stop" : 1655309423398,
"duration" : 117825
},
"description" : "",
"descriptionHtml" : "",
"status" : "passed",
"statusMessage" : "This test has been passed.",
"statusTrace" : "no error",
"flaky" : false,
"newFailed" : false,
"newBroken" : false,
"newPassed" : false,
"retriesCount" : 3,
"retriesStatusChange" : false,
"beforeStages" : [ ],
"afterStages" : [ ],
"labels" : [ {
"name" : "feature",
"value" : "test run id or identifier"
}, {
"name" : "severity",
"value" : "Medium"
}, {
"name" : "story",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "suite",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testClass",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testMethod",
"value" : "Assert Home page"
}, {
"name" : "package",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "resultFormat",
"value" : "allure1"
} ],
"parameters" : [ {
"name" : "JIRA Story Link",
"value" : "https://jira.nisum.com/browse/INS-452"
}, {
"name" : "JIRA Test Link",
"value" : "https://jira.nisum.com/secure/Tests.jspa#/testCase/1"
}, {
"name" : "User Agent",
"value" : "test run id or identifier"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ {
"uid" : "34aef2281b384534",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270477555,
"stop" : 1655270512677,
"duration" : 35122
}
}, {
"uid" : "b0315bb1110ad665",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270185108,
"stop" : 1655270222556,
"duration" : 37448
}
}, {
"uid" : "d298be978aed9215",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270071759,
"stop" : 1655270105084,
"duration" : 33325
}
} ],
"categories" : [ ],
"history" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
},
"items" : [ {
"uid" : "5a4d5cdd9bc76dd9",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270477555,
"stop" : 1655270512677,
"duration" : 35122
}
}, {
"uid" : "49186abba10a5c48",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270185108,
"stop" : 1655270222556,
"duration" : 37448
}
} ]
},
"tags" : [ ]
},
"source" : "815b6b68f29e16d4.json",
"parameterValues" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/1", "test run id or identifier" ]
}
\ No newline at end of file
{
"uid" : "9d6d5d1f5c33ca36",
"name" : "As a guest, the purchase of a product is successful.",
"fullName" : "A guest user visits the web application, search for an available product and place an order.As a guest, the purchase of a product is successful.",
"historyId" : "add545f3dcb8a1f67113c94b7b8f8700",
"time" : {
"start" : 1655309313005,
"stop" : 1655309437733,
"duration" : 124728
},
"description" : "",
"descriptionHtml" : "",
"status" : "passed",
"statusMessage" : "This test has been passed.",
"statusTrace" : "no error",
"flaky" : false,
"newFailed" : false,
"newBroken" : false,
"newPassed" : false,
"retriesCount" : 3,
"retriesStatusChange" : false,
"beforeStages" : [ ],
"afterStages" : [ ],
"labels" : [ {
"name" : "feature",
"value" : "test run id or identifier"
}, {
"name" : "severity",
"value" : "blocker"
}, {
"name" : "story",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "suite",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testClass",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testMethod",
"value" : "As a guest, the purchase of a product is successful."
}, {
"name" : "package",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "resultFormat",
"value" : "allure1"
} ],
"parameters" : [ {
"name" : "JIRA Story Link",
"value" : "https://jira.nisum.com/browse/INS-452"
}, {
"name" : "JIRA Test Link",
"value" : "https://jira.nisum.com/secure/Tests.jspa#/testCase/3"
}, {
"name" : "User Agent",
"value" : "test run id or identifier"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "blocker",
"retries" : [ {
"uid" : "af7821a2ad71f590",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270504433,
"stop" : 1655270566000,
"duration" : 61567
}
}, {
"uid" : "1dd78b6a059ea433",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270206056,
"stop" : 1655270263827,
"duration" : 57771
}
}, {
"uid" : "f730a2778baadc41",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270100776,
"stop" : 1655270162315,
"duration" : 61539
}
} ],
"categories" : [ ],
"history" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
},
"items" : [ {
"uid" : "b6405927ebf73c29",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270504433,
"stop" : 1655270566000,
"duration" : 61567
}
}, {
"uid" : "5469d90ff1feb5db",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270206056,
"stop" : 1655270263827,
"duration" : 57771
}
} ]
},
"tags" : [ ]
},
"source" : "9d6d5d1f5c33ca36.json",
"parameterValues" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/3", "test run id or identifier" ]
}
\ No newline at end of file
{
"uid" : "af7821a2ad71f590",
"name" : "As a guest, the purchase of a product is successful.",
"fullName" : "A guest user visits the web application, search for an available product and place an order.As a guest, the purchase of a product is successful.",
"historyId" : "add545f3dcb8a1f67113c94b7b8f8700",
"time" : {
"start" : 1655270504433,
"stop" : 1655270566000,
"duration" : 61567
},
"description" : "",
"descriptionHtml" : "",
"status" : "passed",
"statusMessage" : "This test has been passed.",
"statusTrace" : "no error",
"flaky" : false,
"newFailed" : false,
"newBroken" : false,
"newPassed" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"beforeStages" : [ ],
"afterStages" : [ ],
"labels" : [ {
"name" : "feature",
"value" : "test run id or identifier"
}, {
"name" : "severity",
"value" : "blocker"
}, {
"name" : "story",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "suite",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testClass",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testMethod",
"value" : "As a guest, the purchase of a product is successful."
}, {
"name" : "package",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "resultFormat",
"value" : "allure1"
} ],
"parameters" : [ {
"name" : "JIRA Story Link",
"value" : "https://jira.nisum.com/browse/INS-452"
}, {
"name" : "JIRA Test Link",
"value" : "https://jira.nisum.com/secure/Tests.jspa#/testCase/3"
}, {
"name" : "User Agent",
"value" : "test run id or identifier"
} ],
"links" : [ ],
"hidden" : true,
"retry" : true,
"extra" : {
"categories" : [ ],
"tags" : [ ]
},
"source" : "af7821a2ad71f590.json",
"parameterValues" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/3", "test run id or identifier" ]
}
\ No newline at end of file
{
"uid" : "b0315bb1110ad665",
"name" : "Assert Home page",
"fullName" : "A guest user visits the web application, search for an available product and place an order.Assert Home page",
"historyId" : "eabe2f73dbc0231050c8a2e11cfec588",
"time" : {
"start" : 1655270185108,
"stop" : 1655270222556,
"duration" : 37448
},
"description" : "",
"descriptionHtml" : "",
"status" : "passed",
"statusMessage" : "This test has been passed.",
"statusTrace" : "no error",
"flaky" : false,
"newFailed" : false,
"newBroken" : false,
"newPassed" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"beforeStages" : [ ],
"afterStages" : [ ],
"labels" : [ {
"name" : "feature",
"value" : "test run id or identifier"
}, {
"name" : "severity",
"value" : "Medium"
}, {
"name" : "story",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "suite",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testClass",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testMethod",
"value" : "Assert Home page"
}, {
"name" : "package",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "resultFormat",
"value" : "allure1"
} ],
"parameters" : [ {
"name" : "JIRA Story Link",
"value" : "https://jira.nisum.com/browse/INS-452"
}, {
"name" : "JIRA Test Link",
"value" : "https://jira.nisum.com/secure/Tests.jspa#/testCase/1"
}, {
"name" : "User Agent",
"value" : "test run id or identifier"
} ],
"links" : [ ],
"hidden" : true,
"retry" : true,
"extra" : {
"categories" : [ ],
"tags" : [ ]
},
"source" : "b0315bb1110ad665.json",
"parameterValues" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/1", "test run id or identifier" ]
}
\ No newline at end of file
{
"uid" : "d298be978aed9215",
"name" : "Assert Home page",
"fullName" : "A guest user visits the web application, search for an available product and place an order.Assert Home page",
"historyId" : "eabe2f73dbc0231050c8a2e11cfec588",
"time" : {
"start" : 1655270071759,
"stop" : 1655270105084,
"duration" : 33325
},
"description" : "",
"descriptionHtml" : "",
"status" : "passed",
"statusMessage" : "This test has been passed.",
"statusTrace" : "no error",
"flaky" : false,
"newFailed" : false,
"newBroken" : false,
"newPassed" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"beforeStages" : [ ],
"afterStages" : [ ],
"labels" : [ {
"name" : "feature",
"value" : "test run id or identifier"
}, {
"name" : "severity",
"value" : "Medium"
}, {
"name" : "story",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "suite",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testClass",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testMethod",
"value" : "Assert Home page"
}, {
"name" : "package",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "resultFormat",
"value" : "allure1"
} ],
"parameters" : [ {
"name" : "JIRA Story Link",
"value" : "https://jira.nisum.com/browse/INS-452"
}, {
"name" : "JIRA Test Link",
"value" : "https://jira.nisum.com/secure/Tests.jspa#/testCase/1"
}, {
"name" : "User Agent",
"value" : "test run id or identifier"
} ],
"links" : [ ],
"hidden" : true,
"retry" : true,
"extra" : {
"categories" : [ ],
"tags" : [ ]
},
"source" : "d298be978aed9215.json",
"parameterValues" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/1", "test run id or identifier" ]
}
\ No newline at end of file
{
"uid" : "f730a2778baadc41",
"name" : "As a guest, the purchase of a product is successful.",
"fullName" : "A guest user visits the web application, search for an available product and place an order.As a guest, the purchase of a product is successful.",
"historyId" : "add545f3dcb8a1f67113c94b7b8f8700",
"time" : {
"start" : 1655270100776,
"stop" : 1655270162315,
"duration" : 61539
},
"description" : "",
"descriptionHtml" : "",
"status" : "passed",
"statusMessage" : "This test has been passed.",
"statusTrace" : "no error",
"flaky" : false,
"newFailed" : false,
"newBroken" : false,
"newPassed" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"beforeStages" : [ ],
"afterStages" : [ ],
"labels" : [ {
"name" : "feature",
"value" : "test run id or identifier"
}, {
"name" : "severity",
"value" : "blocker"
}, {
"name" : "story",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "suite",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testClass",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "testMethod",
"value" : "As a guest, the purchase of a product is successful."
}, {
"name" : "package",
"value" : "A guest user visits the web application, search for an available product and place an order"
}, {
"name" : "resultFormat",
"value" : "allure1"
} ],
"parameters" : [ {
"name" : "JIRA Story Link",
"value" : "https://jira.nisum.com/browse/INS-452"
}, {
"name" : "JIRA Test Link",
"value" : "https://jira.nisum.com/secure/Tests.jspa#/testCase/3"
}, {
"name" : "User Agent",
"value" : "test run id or identifier"
} ],
"links" : [ ],
"hidden" : true,
"retry" : true,
"extra" : {
"categories" : [ ],
"tags" : [ ]
},
"source" : "f730a2778baadc41.json",
"parameterValues" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/3", "test run id or identifier" ]
}
\ No newline at end of file
{
"uid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"name" : "timeline",
"children" : [ {
"name" : "As a guest, the purchase of a product is successful.",
"uid" : "1dd78b6a059ea433",
"parentUid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"status" : "passed",
"time" : {
"start" : 1655270206056,
"stop" : 1655270263827,
"duration" : 57771
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/3", "test run id or identifier" ]
}, {
"name" : "Change Currency Test",
"uid" : "4d1b0466d479aec0",
"parentUid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"status" : "passed",
"time" : {
"start" : 1655270477576,
"stop" : 1655270512369,
"duration" : 34793
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/2", "test run id or identifier" ]
}, {
"name" : "Assert Home page",
"uid" : "d298be978aed9215",
"parentUid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"status" : "passed",
"time" : {
"start" : 1655270071759,
"stop" : 1655270105084,
"duration" : 33325
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/1", "test run id or identifier" ]
}, {
"name" : "As a guest, the purchase of a product is successful.",
"uid" : "f730a2778baadc41",
"parentUid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"status" : "passed",
"time" : {
"start" : 1655270100776,
"stop" : 1655270162315,
"duration" : 61539
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/3", "test run id or identifier" ]
}, {
"name" : "As a guest, the purchase of a product is successful.",
"uid" : "9d6d5d1f5c33ca36",
"parentUid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"status" : "passed",
"time" : {
"start" : 1655309313005,
"stop" : 1655309437733,
"duration" : 124728
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 3,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/3", "test run id or identifier" ]
}, {
"name" : "Assert Home page",
"uid" : "b0315bb1110ad665",
"parentUid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"status" : "passed",
"time" : {
"start" : 1655270185108,
"stop" : 1655270222556,
"duration" : 37448
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/1", "test run id or identifier" ]
}, {
"name" : "As a guest, the purchase of a product is successful.",
"uid" : "af7821a2ad71f590",
"parentUid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"status" : "passed",
"time" : {
"start" : 1655270504433,
"stop" : 1655270566000,
"duration" : 61567
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/3", "test run id or identifier" ]
}, {
"name" : "Change Currency Test",
"uid" : "70eb30a9e0d8af00",
"parentUid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"status" : "passed",
"time" : {
"start" : 1655309305595,
"stop" : 1655309423442,
"duration" : 117847
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 3,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/2", "test run id or identifier" ]
}, {
"name" : "Change Currency Test",
"uid" : "68b75644e78b49cc",
"parentUid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"status" : "passed",
"time" : {
"start" : 1655270071784,
"stop" : 1655270104371,
"duration" : 32587
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/2", "test run id or identifier" ]
}, {
"name" : "Change Currency Test",
"uid" : "302923f6cd66462f",
"parentUid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"status" : "passed",
"time" : {
"start" : 1655270185137,
"stop" : 1655270222098,
"duration" : 36961
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/2", "test run id or identifier" ]
}, {
"name" : "Assert Home page",
"uid" : "34aef2281b384534",
"parentUid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"status" : "passed",
"time" : {
"start" : 1655270477555,
"stop" : 1655270512677,
"duration" : 35122
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/1", "test run id or identifier" ]
}, {
"name" : "Assert Home page",
"uid" : "815b6b68f29e16d4",
"parentUid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"status" : "passed",
"time" : {
"start" : 1655309305573,
"stop" : 1655309423398,
"duration" : 117825
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 3,
"retriesStatusChange" : false,
"parameters" : [ "https://jira.nisum.com/browse/INS-452", "https://jira.nisum.com/secure/Tests.jspa#/testCase/1", "test run id or identifier" ]
} ]
}
\ No newline at end of file
launch_status failed=0 1655309370000000000
launch_status broken=0 1655309370000000000
launch_status passed=3 1655309370000000000
launch_status skipped=0 1655309370000000000
launch_status unknown=0 1655309370000000000
launch_time duration=132160 1655309370000000000
launch_time min_duration=117825 1655309370000000000
launch_time max_duration=124728 1655309370000000000
launch_time sum_duration=360400 1655309370000000000
launch_retries retries=9 1655309370000000000
launch_retries run=3 1655309370000000000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Allure Report summary mail</title>
</head>
<body>
Mail body
</body>
</html>
launch_status_failed 0
launch_status_broken 0
launch_status_passed 3
launch_status_skipped 0
launch_status_unknown 0
launch_time_duration 132160
launch_time_min_duration 117825
launch_time_max_duration 124728
launch_time_sum_duration 360400
launch_retries_retries 9
launch_retries_run 3
[ {
"data" : { }
}, {
"data" : { }
}, {
"data" : { }
} ]
\ No newline at end of file
[ {
"data" : {
"duration" : 132160
}
}, {
"data" : {
"duration" : 88445
}
}, {
"data" : {
"duration" : 78719
}
} ]
\ No newline at end of file
[ {
"data" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
}
}, {
"data" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
}
}, {
"data" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
}
} ]
\ No newline at end of file
{
"add545f3dcb8a1f67113c94b7b8f8700" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
},
"items" : [ {
"uid" : "9d6d5d1f5c33ca36",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655309313005,
"stop" : 1655309437733,
"duration" : 124728
}
}, {
"uid" : "b6405927ebf73c29",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270504433,
"stop" : 1655270566000,
"duration" : 61567
}
}, {
"uid" : "5469d90ff1feb5db",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270206056,
"stop" : 1655270263827,
"duration" : 57771
}
} ]
},
"a3b7d4d4bcb3db76a0fece747061aebc" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
},
"items" : [ {
"uid" : "70eb30a9e0d8af00",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655309305595,
"stop" : 1655309423442,
"duration" : 117847
}
}, {
"uid" : "992a18b3818f0599",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270477576,
"stop" : 1655270512369,
"duration" : 34793
}
}, {
"uid" : "9935dfd72c7a1581",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270185137,
"stop" : 1655270222098,
"duration" : 36961
}
} ]
},
"eabe2f73dbc0231050c8a2e11cfec588" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
},
"items" : [ {
"uid" : "815b6b68f29e16d4",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655309305573,
"stop" : 1655309423398,
"duration" : 117825
}
}, {
"uid" : "5a4d5cdd9bc76dd9",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270477555,
"stop" : 1655270512677,
"duration" : 35122
}
}, {
"uid" : "49186abba10a5c48",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270185108,
"stop" : 1655270222556,
"duration" : 37448
}
} ]
}
}
\ No newline at end of file
[ {
"data" : {
"run" : 3,
"retry" : 9
}
}, {
"data" : {
"run" : 3,
"retry" : 6
}
}, {
"data" : {
"run" : 3,
"retry" : 3
}
} ]
\ No newline at end of file
<!DOCTYPE html>
<html dir="ltr">
<head>
<meta charset="utf-8">
<title>Allure Report</title>
<link rel="favicon" href="favicon.ico?v=2">
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="stylesheet" href="plugins/screen-diff/styles.css">
</head>
<body>
<div id="alert"></div>
<div id="content">
<span class="spinner">
<span class="spinner__circle"></span>
</span>
</div>
<div id="popup"></div>
<script src="app.js"></script>
<script src="plugins/behaviors/index.js"></script>
<script src="plugins/packages/index.js"></script>
<script src="plugins/screen-diff/index.js"></script>
</body>
</html>
'use strict';
allure.api.addTranslation('en', {
tab: {
behaviors: {
name: 'Behaviors'
}
},
widget: {
behaviors: {
name: 'Features by stories',
showAll: 'show all'
}
}
});
allure.api.addTranslation('ru', {
tab: {
behaviors: {
name: 'Функциональность'
}
},
widget: {
behaviors: {
name: 'Функциональность',
showAll: 'показать все'
}
}
});
allure.api.addTranslation('zh', {
tab: {
behaviors: {
name: '功能'
}
},
widget: {
behaviors: {
name: '特性场景',
showAll: '显示所有'
}
}
});
allure.api.addTranslation('de', {
tab: {
behaviors: {
name: 'Verhalten'
}
},
widget: {
behaviors: {
name: 'Features nach Stories',
showAll: 'Zeige alle'
}
}
});
allure.api.addTranslation('nl', {
tab: {
behaviors: {
name: 'Functionaliteit'
}
},
widget: {
behaviors: {
name: 'Features en story’s',
showAll: 'Toon alle'
}
}
});
allure.api.addTranslation('he', {
tab: {
behaviors: {
name: 'התנהגויות'
}
},
widget: {
behaviors: {
name: 'תכונות לפי סיפורי משתמש',
showAll: 'הצג הכול'
}
}
});
allure.api.addTranslation('br', {
tab: {
behaviors: {
name: 'Comportamentos'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por história',
showAll: 'Mostrar tudo'
}
}
});
allure.api.addTranslation('ja', {
tab: {
behaviors: {
name: '振る舞い'
}
},
widget: {
behaviors: {
name: 'ストーリー別の機能',
showAll: '全て表示'
}
}
});
allure.api.addTranslation('es', {
tab: {
behaviors: {
name: 'Funcionalidades'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por Historias de Usuario',
showAll: 'mostrar todo'
}
}
});
allure.api.addTranslation('kr', {
tab: {
behaviors: {
name: '동작'
}
},
widget: {
behaviors: {
name: '스토리별 기능',
showAll: '전체 보기'
}
}
});
allure.api.addTranslation('fr', {
tab: {
behaviors: {
name: 'Comportements'
}
},
widget: {
behaviors: {
name: 'Thèmes par histoires',
showAll: 'Montrer tout'
}
}
});
allure.api.addTranslation('pl', {
tab: {
behaviors: {
name: 'Zachowania'
}
},
widget: {
behaviors: {
name: 'Funkcje według historii',
showAll: 'pokaż wszystko'
}
}
});
allure.api.addTab('behaviors', {
title: 'tab.behaviors.name', icon: 'fa fa-list',
route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.behaviors.name',
baseUrl: 'behaviors',
url: 'data/behaviors.json',
csvUrl: 'data/behaviors.csv'
});
})
});
allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({
rowTag: 'a',
title: 'widget.behaviors.name',
baseUrl: 'behaviors',
showLinks: true
}));
'use strict';
allure.api.addTranslation('en', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('ru', {
tab: {
packages: {
name: 'Пакеты'
}
}
});
allure.api.addTranslation('zh', {
tab: {
packages: {
name: '包'
}
}
});
allure.api.addTranslation('de', {
tab: {
packages: {
name: 'Pakete'
}
}
});
allure.api.addTranslation('nl', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('he', {
tab: {
packages: {
name: 'חבילות'
}
}
});
allure.api.addTranslation('br', {
tab: {
packages: {
name: 'Pacotes'
}
}
});
allure.api.addTranslation('ja', {
tab: {
packages: {
name: 'パッケージ'
}
}
});
allure.api.addTranslation('es', {
tab: {
packages: {
name: 'Paquetes'
}
}
});
allure.api.addTranslation('kr', {
tab: {
packages: {
name: '패키지'
}
}
});
allure.api.addTranslation('fr', {
tab: {
packages: {
name: 'Paquets'
}
}
});
allure.api.addTranslation('pl', {
tab: {
packages: {
name: 'Pakiety'
}
}
});
allure.api.addTab('packages', {
title: 'tab.packages.name', icon: 'fa fa-align-left',
route: 'packages(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.packages.name',
baseUrl: 'packages',
url: 'data/packages.json'
});
})
});
(function () {
var settings = allure.getPluginSettings('screen-diff', { diffType: 'diff' });
function renderImage(src) {
return (
'<div class="screen-diff__container">' +
'<img class="screen-diff__image" src="' +
src +
'">' +
'</div>'
);
}
function findImage(data, name) {
if (data.testStage && data.testStage.attachments) {
var matchedImage = data.testStage.attachments.filter(function (attachment) {
return attachment.name === name;
})[0];
if (matchedImage) {
return 'data/attachments/' + matchedImage.source;
}
}
return null;
}
function renderDiffContent(type, diffImage, actualImage, expectedImage) {
if (type === 'diff') {
if (diffImage) {
return renderImage(diffImage);
}
}
if (type === 'overlay' && expectedImage) {
return (
'<div class="screen-diff__overlay screen-diff__container">' +
'<img class="screen-diff__image" src="' +
expectedImage +
'">' +
'<div class="screen-diff__image-over">' +
'<img class="screen-diff__image" src="' +
actualImage +
'">' +
'</div>' +
'</div>'
);
}
if (actualImage) {
return renderImage(actualImage);
}
return 'No diff data provided';
}
var TestResultView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
var data = this.model.toJSON();
var testType = data.labels.filter(function (label) {
return label.name === 'testType';
})[0];
var diffImage = findImage(data, 'diff');
var actualImage = findImage(data, 'actual');
var expectedImage = findImage(data, 'expected');
if (!testType || testType.value !== 'screenshotDiff') {
return;
}
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: diffImage,
actualImage: actualImage,
expectedImage: expectedImage,
}),
);
},
});
var ErrorView = Backbone.Marionette.View.extend({
templateContext: function () {
return this.options;
},
template: function (data) {
return '<pre class="screen-diff-error">' + data.error + '</pre>';
},
});
var AttachmentView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
jQuery
.getJSON(this.options.sourceUrl)
.then(this.renderScreenDiffView.bind(this), this.renderErrorView.bind(this));
},
renderErrorView: function (error) {
console.log(error);
this.showChildView(
'subView',
new ErrorView({
error: error.statusText,
}),
);
},
renderScreenDiffView: function (data) {
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: data.diff,
actualImage: data.actual,
expectedImage: data.expected,
}),
);
},
});
var ScreenDiffView = Backbone.Marionette.View.extend({
className: 'pane__section',
events: function () {
return {
['click [name="screen-diff-type-' + this.cid + '"]']: 'onDiffTypeChange',
'mousemove .screen-diff__overlay': 'onOverlayMove',
};
},
initialize: function (options) {
this.diffImage = options.diffImage;
this.actualImage = options.actualImage;
this.expectedImage = options.expectedImage;
this.radioName = 'screen-diff-type-' + this.cid;
},
templateContext: function () {
return {
diffType: settings.get('diffType'),
diffImage: this.diffImage,
actualImage: this.actualImage,
expectedImage: this.expectedImage,
radioName: this.radioName,
};
},
template: function (data) {
if (!data.diffImage && !data.actualImage && !data.expectedImage) {
return '';
}
return (
'<h3 class="pane__section-title">Screen Diff</h3>' +
'<div class="screen-diff__content">' +
'<div class="screen-diff__switchers">' +
'<label><input type="radio" name="' +
data.radioName +
'" value="diff"> Show diff</label>' +
'<label><input type="radio" name="' +
data.radioName +
'" value="overlay"> Show overlay</label>' +
'</div>' +
renderDiffContent(
data.diffType,
data.diffImage,
data.actualImage,
data.expectedImage,
) +
'</div>'
);
},
adjustImageSize: function (event) {
var overImage = this.$(event.target);
overImage.width(overImage.width());
},
onRender: function () {
const diffType = settings.get('diffType');
this.$('[name="' + this.radioName + '"][value="' + diffType + '"]').prop(
'checked',
true,
);
if (diffType === 'overlay') {
this.$('.screen-diff__image-over img').on('load', this.adjustImageSize.bind(this));
}
},
onOverlayMove: function (event) {
var pageX = event.pageX;
var containerScroll = this.$('.screen-diff__container').scrollLeft();
var elementX = event.currentTarget.getBoundingClientRect().left;
var delta = pageX - elementX + containerScroll;
this.$('.screen-diff__image-over').width(delta);
},
onDiffTypeChange: function (event) {
settings.save('diffType', event.target.value);
this.render();
},
});
allure.api.addTestResultBlock(TestResultView, { position: 'before' });
allure.api.addAttachmentViewer('application/vnd.allure.image.diff', {
View: AttachmentView,
icon: 'fa fa-exchange',
});
})();
.screen-diff__switchers {
margin-bottom: 1em;
}
.screen-diff__switchers label + label {
margin-left: 1em;
}
.screen-diff__overlay {
position: relative;
cursor: col-resize;
}
.screen-diff__container {
overflow-x: auto;
}
.screen-diff__image-over {
top: 0;
left: 0;
bottom: 0;
background: #fff;
position: absolute;
overflow: hidden;
box-shadow: 2px 0 1px -1px #aaa;
}
.screen-diff-error {
color: #fd5a3e;
}
This diff is collapsed.
{
"total" : 1,
"items" : [ {
"uid" : "b1b3bee9cbea280580ee91c2791c562c",
"name" : "test run id or identifier",
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
}
} ]
}
\ No newline at end of file
[ {
"data" : { }
}, {
"data" : { }
}, {
"data" : { }
} ]
\ No newline at end of file
{
"total" : 0,
"items" : [ ]
}
\ No newline at end of file
[ {
"data" : {
"duration" : 132160
}
}, {
"data" : {
"duration" : 88445
}
}, {
"data" : {
"duration" : 78719
}
} ]
\ No newline at end of file
[ {
"uid" : "70eb30a9e0d8af00",
"name" : "Change Currency Test",
"time" : {
"start" : 1655309305595,
"stop" : 1655309423442,
"duration" : 117847
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "9d6d5d1f5c33ca36",
"name" : "As a guest, the purchase of a product is successful.",
"time" : {
"start" : 1655309313005,
"stop" : 1655309437733,
"duration" : 124728
},
"status" : "passed",
"severity" : "blocker"
}, {
"uid" : "815b6b68f29e16d4",
"name" : "Assert Home page",
"time" : {
"start" : 1655309305573,
"stop" : 1655309423398,
"duration" : 117825
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
[ ]
\ No newline at end of file
[ {
"data" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
}
}, {
"data" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
}
}, {
"data" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
}
} ]
\ No newline at end of file
[ ]
\ No newline at end of file
[ {
"data" : {
"run" : 3,
"retry" : 9
}
}, {
"data" : {
"run" : 3,
"retry" : 6
}
}, {
"data" : {
"run" : 3,
"retry" : 3
}
} ]
\ No newline at end of file
[ {
"uid" : "9d6d5d1f5c33ca36",
"name" : "As a guest, the purchase of a product is successful.",
"time" : {
"start" : 1655309313005,
"stop" : 1655309437733,
"duration" : 124728
},
"status" : "passed",
"severity" : "blocker"
}, {
"uid" : "70eb30a9e0d8af00",
"name" : "Change Currency Test",
"time" : {
"start" : 1655309305595,
"stop" : 1655309423442,
"duration" : 117847
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "815b6b68f29e16d4",
"name" : "Assert Home page",
"time" : {
"start" : 1655309305573,
"stop" : 1655309423398,
"duration" : 117825
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
[ {
"uid" : "70eb30a9e0d8af00",
"name" : "Change Currency Test",
"time" : {
"start" : 1655309305595,
"stop" : 1655309423442,
"duration" : 117847
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "9d6d5d1f5c33ca36",
"name" : "As a guest, the purchase of a product is successful.",
"time" : {
"start" : 1655309313005,
"stop" : 1655309437733,
"duration" : 124728
},
"status" : "passed",
"severity" : "blocker"
}, {
"uid" : "815b6b68f29e16d4",
"name" : "Assert Home page",
"time" : {
"start" : 1655309305573,
"stop" : 1655309423398,
"duration" : 117825
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
{
"total" : 1,
"items" : [ {
"uid" : "38e2dc2f83ef540e5c19e9504011d16c",
"name" : "A guest user visits the web application, search for an available product and place an order",
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
}
} ]
}
\ No newline at end of file
{
"reportName" : "Allure Report",
"testRuns" : [ ],
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
},
"time" : {
"start" : 1655309305573,
"stop" : 1655309437733,
"duration" : 132160,
"minDuration" : 117825,
"maxDuration" : 124728,
"sumDuration" : 360400
}
}
\ No newline at end of file
<?xml version='1.0'?>
<ns2:test-suite xmlns:ns2='urn:model.allure.qatools.yandex.ru' start='1655309313005' stop='1655309313005'>
<name>A guest user visits the web application, search for an available product and place an order</name>
<title>A guest user visits the web application, search for an available product and place an order</title>
<test-cases>
<test-case start='1655309313005' status='passed' stop='1655309437733'>
<name>As a guest, the purchase of a product is successful.</name>
<title>As a guest, the purchase of a product is successful.</title>
<labels>
<label name='feature' value='test run id or identifier'/>
<label name='story' value='A guest user visits the web application, search for an available product and place an order'/>
<label name='severity' value='blocker'/>
</labels>
<parameters>
<parameter kind='argument' name='User Agent' value='test run id or identifier'/>
<parameter kind='argument' name='JIRA Story Link' value='https://jira.nisum.com/browse/INS-452'/>
<parameter kind='argument' name='JIRA Test Link' value='https://jira.nisum.com/secure/Tests.jspa#/testCase/3'/>
</parameters>
<steps/>
<attachments/>
<failure>
<message>This test has been passed.</message>
<stack-trace>no error</stack-trace>
</failure>
</test-case>
</test-cases>
</ns2:test-suite>
\ No newline at end of file
<?xml version='1.0'?>
<ns2:test-suite xmlns:ns2='urn:model.allure.qatools.yandex.ru' start='1655309305595' stop='1655309305595'>
<name>A guest user visits the web application, search for an available product and place an order</name>
<title>A guest user visits the web application, search for an available product and place an order</title>
<test-cases>
<test-case start='1655309305595' status='passed' stop='1655309423442'>
<name>Change Currency Test</name>
<title>Change Currency Test</title>
<labels>
<label name='feature' value='test run id or identifier'/>
<label name='story' value='A guest user visits the web application, search for an available product and place an order'/>
<label name='severity' value='Low'/>
</labels>
<parameters>
<parameter kind='argument' name='User Agent' value='test run id or identifier'/>
<parameter kind='argument' name='JIRA Story Link' value='https://jira.nisum.com/browse/INS-452'/>
<parameter kind='argument' name='JIRA Test Link' value='https://jira.nisum.com/secure/Tests.jspa#/testCase/2'/>
</parameters>
<steps/>
<attachments/>
<failure>
<message>This test has been passed.</message>
<stack-trace>no error</stack-trace>
</failure>
</test-case>
</test-cases>
</ns2:test-suite>
\ No newline at end of file
<?xml version='1.0'?>
<ns2:test-suite xmlns:ns2='urn:model.allure.qatools.yandex.ru' start='1655270206056' stop='1655270206057'>
<name>A guest user visits the web application, search for an available product and place an order</name>
<title>A guest user visits the web application, search for an available product and place an order</title>
<test-cases>
<test-case start='1655270206056' status='passed' stop='1655270263827'>
<name>As a guest, the purchase of a product is successful.</name>
<title>As a guest, the purchase of a product is successful.</title>
<labels>
<label name='feature' value='test run id or identifier'/>
<label name='story' value='A guest user visits the web application, search for an available product and place an order'/>
<label name='severity' value='blocker'/>
</labels>
<parameters>
<parameter kind='argument' name='User Agent' value='test run id or identifier'/>
<parameter kind='argument' name='JIRA Story Link' value='https://jira.nisum.com/browse/INS-452'/>
<parameter kind='argument' name='JIRA Test Link' value='https://jira.nisum.com/secure/Tests.jspa#/testCase/3'/>
</parameters>
<steps/>
<attachments/>
<failure>
<message>This test has been passed.</message>
<stack-trace>no error</stack-trace>
</failure>
</test-case>
</test-cases>
</ns2:test-suite>
\ No newline at end of file
<?xml version='1.0'?>
<ns2:test-suite xmlns:ns2='urn:model.allure.qatools.yandex.ru' start='1655309305573' stop='1655309305574'>
<name>A guest user visits the web application, search for an available product and place an order</name>
<title>A guest user visits the web application, search for an available product and place an order</title>
<test-cases>
<test-case start='1655309305573' status='passed' stop='1655309423398'>
<name>Assert Home page</name>
<title>Assert Home page</title>
<labels>
<label name='feature' value='test run id or identifier'/>
<label name='story' value='A guest user visits the web application, search for an available product and place an order'/>
<label name='severity' value='Medium'/>
</labels>
<parameters>
<parameter kind='argument' name='User Agent' value='test run id or identifier'/>
<parameter kind='argument' name='JIRA Story Link' value='https://jira.nisum.com/browse/INS-452'/>
<parameter kind='argument' name='JIRA Test Link' value='https://jira.nisum.com/secure/Tests.jspa#/testCase/1'/>
</parameters>
<steps/>
<attachments/>
<failure>
<message>This test has been passed.</message>
<stack-trace>no error</stack-trace>
</failure>
</test-case>
</test-cases>
</ns2:test-suite>
\ No newline at end of file
<?xml version='1.0'?>
<ns2:test-suite xmlns:ns2='urn:model.allure.qatools.yandex.ru' start='1655270071784' stop='1655270071784'>
<name>A guest user visits the web application, search for an available product and place an order</name>
<title>A guest user visits the web application, search for an available product and place an order</title>
<test-cases>
<test-case start='1655270071784' status='passed' stop='1655270104371'>
<name>Change Currency Test</name>
<title>Change Currency Test</title>
<labels>
<label name='feature' value='test run id or identifier'/>
<label name='story' value='A guest user visits the web application, search for an available product and place an order'/>
<label name='severity' value='Low'/>
</labels>
<parameters>
<parameter kind='argument' name='User Agent' value='test run id or identifier'/>
<parameter kind='argument' name='JIRA Story Link' value='https://jira.nisum.com/browse/INS-452'/>
<parameter kind='argument' name='JIRA Test Link' value='https://jira.nisum.com/secure/Tests.jspa#/testCase/2'/>
</parameters>
<steps/>
<attachments/>
<failure>
<message>This test has been passed.</message>
<stack-trace>no error</stack-trace>
</failure>
</test-case>
</test-cases>
</ns2:test-suite>
\ No newline at end of file
<?xml version='1.0'?>
<ns2:test-suite xmlns:ns2='urn:model.allure.qatools.yandex.ru' start='1655270071759' stop='1655270071760'>
<name>A guest user visits the web application, search for an available product and place an order</name>
<title>A guest user visits the web application, search for an available product and place an order</title>
<test-cases>
<test-case start='1655270071759' status='passed' stop='1655270105084'>
<name>Assert Home page</name>
<title>Assert Home page</title>
<labels>
<label name='feature' value='test run id or identifier'/>
<label name='story' value='A guest user visits the web application, search for an available product and place an order'/>
<label name='severity' value='Medium'/>
</labels>
<parameters>
<parameter kind='argument' name='User Agent' value='test run id or identifier'/>
<parameter kind='argument' name='JIRA Story Link' value='https://jira.nisum.com/browse/INS-452'/>
<parameter kind='argument' name='JIRA Test Link' value='https://jira.nisum.com/secure/Tests.jspa#/testCase/1'/>
</parameters>
<steps/>
<attachments/>
<failure>
<message>This test has been passed.</message>
<stack-trace>no error</stack-trace>
</failure>
</test-case>
</test-cases>
</ns2:test-suite>
\ No newline at end of file
<?xml version='1.0'?>
<ns2:test-suite xmlns:ns2='urn:model.allure.qatools.yandex.ru' start='1655270185108' stop='1655270185109'>
<name>A guest user visits the web application, search for an available product and place an order</name>
<title>A guest user visits the web application, search for an available product and place an order</title>
<test-cases>
<test-case start='1655270185108' status='passed' stop='1655270222556'>
<name>Assert Home page</name>
<title>Assert Home page</title>
<labels>
<label name='feature' value='test run id or identifier'/>
<label name='story' value='A guest user visits the web application, search for an available product and place an order'/>
<label name='severity' value='Medium'/>
</labels>
<parameters>
<parameter kind='argument' name='User Agent' value='test run id or identifier'/>
<parameter kind='argument' name='JIRA Story Link' value='https://jira.nisum.com/browse/INS-452'/>
<parameter kind='argument' name='JIRA Test Link' value='https://jira.nisum.com/secure/Tests.jspa#/testCase/1'/>
</parameters>
<steps/>
<attachments/>
<failure>
<message>This test has been passed.</message>
<stack-trace>no error</stack-trace>
</failure>
</test-case>
</test-cases>
</ns2:test-suite>
\ No newline at end of file
<?xml version='1.0'?>
<ns2:test-suite xmlns:ns2='urn:model.allure.qatools.yandex.ru' start='1655270477576' stop='1655270477576'>
<name>A guest user visits the web application, search for an available product and place an order</name>
<title>A guest user visits the web application, search for an available product and place an order</title>
<test-cases>
<test-case start='1655270477576' status='passed' stop='1655270512369'>
<name>Change Currency Test</name>
<title>Change Currency Test</title>
<labels>
<label name='feature' value='test run id or identifier'/>
<label name='story' value='A guest user visits the web application, search for an available product and place an order'/>
<label name='severity' value='Low'/>
</labels>
<parameters>
<parameter kind='argument' name='User Agent' value='test run id or identifier'/>
<parameter kind='argument' name='JIRA Story Link' value='https://jira.nisum.com/browse/INS-452'/>
<parameter kind='argument' name='JIRA Test Link' value='https://jira.nisum.com/secure/Tests.jspa#/testCase/2'/>
</parameters>
<steps/>
<attachments/>
<failure>
<message>This test has been passed.</message>
<stack-trace>no error</stack-trace>
</failure>
</test-case>
</test-cases>
</ns2:test-suite>
\ No newline at end of file
<?xml version='1.0'?>
<ns2:test-suite xmlns:ns2='urn:model.allure.qatools.yandex.ru' start='1655270477555' stop='1655270477556'>
<name>A guest user visits the web application, search for an available product and place an order</name>
<title>A guest user visits the web application, search for an available product and place an order</title>
<test-cases>
<test-case start='1655270477555' status='passed' stop='1655270512677'>
<name>Assert Home page</name>
<title>Assert Home page</title>
<labels>
<label name='feature' value='test run id or identifier'/>
<label name='story' value='A guest user visits the web application, search for an available product and place an order'/>
<label name='severity' value='Medium'/>
</labels>
<parameters>
<parameter kind='argument' name='User Agent' value='test run id or identifier'/>
<parameter kind='argument' name='JIRA Story Link' value='https://jira.nisum.com/browse/INS-452'/>
<parameter kind='argument' name='JIRA Test Link' value='https://jira.nisum.com/secure/Tests.jspa#/testCase/1'/>
</parameters>
<steps/>
<attachments/>
<failure>
<message>This test has been passed.</message>
<stack-trace>no error</stack-trace>
</failure>
</test-case>
</test-cases>
</ns2:test-suite>
\ No newline at end of file
<?xml version='1.0'?>
<ns2:test-suite xmlns:ns2='urn:model.allure.qatools.yandex.ru' start='1655270185137' stop='1655270185137'>
<name>A guest user visits the web application, search for an available product and place an order</name>
<title>A guest user visits the web application, search for an available product and place an order</title>
<test-cases>
<test-case start='1655270185137' status='passed' stop='1655270222098'>
<name>Change Currency Test</name>
<title>Change Currency Test</title>
<labels>
<label name='feature' value='test run id or identifier'/>
<label name='story' value='A guest user visits the web application, search for an available product and place an order'/>
<label name='severity' value='Low'/>
</labels>
<parameters>
<parameter kind='argument' name='User Agent' value='test run id or identifier'/>
<parameter kind='argument' name='JIRA Story Link' value='https://jira.nisum.com/browse/INS-452'/>
<parameter kind='argument' name='JIRA Test Link' value='https://jira.nisum.com/secure/Tests.jspa#/testCase/2'/>
</parameters>
<steps/>
<attachments/>
<failure>
<message>This test has been passed.</message>
<stack-trace>no error</stack-trace>
</failure>
</test-case>
</test-cases>
</ns2:test-suite>
\ No newline at end of file
<?xml version='1.0'?>
<ns2:test-suite xmlns:ns2='urn:model.allure.qatools.yandex.ru' start='1655270100776' stop='1655270100777'>
<name>A guest user visits the web application, search for an available product and place an order</name>
<title>A guest user visits the web application, search for an available product and place an order</title>
<test-cases>
<test-case start='1655270100776' status='passed' stop='1655270162315'>
<name>As a guest, the purchase of a product is successful.</name>
<title>As a guest, the purchase of a product is successful.</title>
<labels>
<label name='feature' value='test run id or identifier'/>
<label name='story' value='A guest user visits the web application, search for an available product and place an order'/>
<label name='severity' value='blocker'/>
</labels>
<parameters>
<parameter kind='argument' name='User Agent' value='test run id or identifier'/>
<parameter kind='argument' name='JIRA Story Link' value='https://jira.nisum.com/browse/INS-452'/>
<parameter kind='argument' name='JIRA Test Link' value='https://jira.nisum.com/secure/Tests.jspa#/testCase/3'/>
</parameters>
<steps/>
<attachments/>
<failure>
<message>This test has been passed.</message>
<stack-trace>no error</stack-trace>
</failure>
</test-case>
</test-cases>
</ns2:test-suite>
\ No newline at end of file
<?xml version='1.0'?>
<ns2:test-suite xmlns:ns2='urn:model.allure.qatools.yandex.ru' start='1655270504433' stop='1655270504433'>
<name>A guest user visits the web application, search for an available product and place an order</name>
<title>A guest user visits the web application, search for an available product and place an order</title>
<test-cases>
<test-case start='1655270504433' status='passed' stop='1655270566000'>
<name>As a guest, the purchase of a product is successful.</name>
<title>As a guest, the purchase of a product is successful.</title>
<labels>
<label name='feature' value='test run id or identifier'/>
<label name='story' value='A guest user visits the web application, search for an available product and place an order'/>
<label name='severity' value='blocker'/>
</labels>
<parameters>
<parameter kind='argument' name='User Agent' value='test run id or identifier'/>
<parameter kind='argument' name='JIRA Story Link' value='https://jira.nisum.com/browse/INS-452'/>
<parameter kind='argument' name='JIRA Test Link' value='https://jira.nisum.com/secure/Tests.jspa#/testCase/3'/>
</parameters>
<steps/>
<attachments/>
<failure>
<message>This test has been passed.</message>
<stack-trace>no error</stack-trace>
</failure>
</test-case>
</test-cases>
</ns2:test-suite>
\ No newline at end of file
[ {
"data" : { }
}, {
"data" : { }
} ]
\ No newline at end of file
[ {
"data" : {
"duration" : 88445
}
}, {
"data" : {
"duration" : 78719
}
} ]
\ No newline at end of file
[ {
"data" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
}
}, {
"data" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
}
} ]
\ No newline at end of file
{
"add545f3dcb8a1f67113c94b7b8f8700" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 2,
"unknown" : 0,
"total" : 2
},
"items" : [ {
"uid" : "b6405927ebf73c29",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270504433,
"stop" : 1655270566000,
"duration" : 61567
}
}, {
"uid" : "5469d90ff1feb5db",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270206056,
"stop" : 1655270263827,
"duration" : 57771
}
} ]
},
"a3b7d4d4bcb3db76a0fece747061aebc" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 2,
"unknown" : 0,
"total" : 2
},
"items" : [ {
"uid" : "992a18b3818f0599",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270477576,
"stop" : 1655270512369,
"duration" : 34793
}
}, {
"uid" : "9935dfd72c7a1581",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270185137,
"stop" : 1655270222098,
"duration" : 36961
}
} ]
},
"eabe2f73dbc0231050c8a2e11cfec588" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 2,
"unknown" : 0,
"total" : 2
},
"items" : [ {
"uid" : "5a4d5cdd9bc76dd9",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270477555,
"stop" : 1655270512677,
"duration" : 35122
}
}, {
"uid" : "49186abba10a5c48",
"status" : "passed",
"statusDetails" : "This test has been passed.",
"time" : {
"start" : 1655270185108,
"stop" : 1655270222556,
"duration" : 37448
}
} ]
}
}
\ No newline at end of file
[ {
"data" : {
"run" : 3,
"retry" : 6
}
}, {
"data" : {
"run" : 3,
"retry" : 3
}
} ]
\ No newline at end of file
const createTestCafe = require('testcafe');
const {join} = require('path');
let testCafe = null;
createTestCafe('localhost', 1337, 1338)
.then(tc => {
testCafe = tc;
const runner = testCafe.createRunner();
return runner
.src(['test/RegistrationTest.js'])
.browsers(['chrome:headless'])
.screenshots({
path: join(process.cwd(), './.tmp'),
fullPage: true,
takeOnFails: true,
})
.concurrency(1)
.run();
})
.then(failedCount => {
console.log('Tests failed: ' + failedCount);
testCafe.close();
});
\ No newline at end of file
const createTestCafe = require('testcafe');
const testcafe = await createTestCafe('localhost', 1337, 1338);
const runner = testcafe.createRunner();
const remoteConnection = await testcafe.createBrowserConnection();
// Outputs remoteConnection.url so that it can be visited from the remote browser.
console.log(remoteConnection.url);
remoteConnection.once('ready', async () => {
const failedCount = await runner
.src('test.js')
.browsers(remoteConnection)
.run();
console.log(failedCount);
await testcafe.close();
});
\ No newline at end of file
{
"firstName": "Hasan",
"lastName": "Eqbal",
"password": "123456",
"country": "Germany",
"cityTxt": "Berlin",
"addressTxt": "108 ddd test",
"zipTxt": "123456",
"phoneTxt": "332434345",
"checkoutURL":"checkout",
"register": "register",
"date": "5",
"month": "November",
"year": "1988"
}
\ No newline at end of file
const MongoClient = require('mongodb').MongoClient
const url = 'mongodb://localhost:27017/TestCafeDBConnection';
const dbName = 'test';
function getClient() {
return new Promise((resolve, reject) => {
MongoClient.connect(url, function(err, client) {
if (err)
return reject(err);
console.log("Connected successfully to server");
resolve(client);
});
});
}
function findDocs (db) {
return new Promise((resolve, reject) => {
const collection = db.collection('UserData');
collection.find({}).toArray(function(err, docs) {
if (err)
return reject(err);
console.log("Found the following records");
console.log(docs);
resolve(docs);
});
});
}
export async function getKeywords () {
const client = await getClient();
const db = client.db(dbName);
try {
return await findDocs(db);
}
finally {
client.close();
}
}
const DOC_ALLURE_CONFIG = {
CLEAN_REPORT_DIR: false,
COPY_HISTORY: true,
RESULT_DIR: '/allure/allure-results',
REPORT_DIR: '/allure/allure-report',
META: {
STORY_ID: 'STORY',
TEST_ID: 'ID',
SEVERITY: 'SEVERITY',
TEST_RUN: 'TEST_RUN'
},
STORY_LABEL: 'JIRA Story Link',
STORY_URL: 'https://jira.nisum.com/browse/{{ID}}',
TEST_LABEL: 'JIRA Test Link',
TEST_URL: 'https://jira.nisum.com/secure/Tests.jspa#/testCase/{{ID}}',
labels: {
screenshotLabel: 'Screenshot',
browserLabel: 'Browser',
userAgentLabel: 'User Agent',
allureStartMessage: 'Allure reporter started...',
allureClosedMessage: 'Allure reporter closed...'
}
};
module.exports = DOC_ALLURE_CONFIG;
\ No newline at end of file
This diff is collapsed.
{
"name": "pageobjectmodel",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test.local": "node config/local.js",
"test.remote": "node config/remote.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"@ffmpeg-installer/ffmpeg": "^1.1.0",
"@google-cloud/storage": "^5.18.1",
"mongodb": "^4.6.0",
"testcafe": "^1.18.1",
"testcafe-reporter-allure": "^1.0.5",
"testcafe-reporter-html": "^1.4.6",
"the": "^1.0.2"
}
}
import { Selector } from 'testcafe';
class BrowsePage{
constructor() {
this.addToWishList = Selector('button.button-2.add-to-wishlist-button')
}
}
export default new BrowsePage();
\ No newline at end of file
import { Selector } from 'testcafe';
class CartPage{
constructor() {
this.termsLabel = Selector('input#termsofservice')
this.cartTotal = Selector('td.cart-total-right')
this.checkoutBtn = Selector('button#checkout.button-1.checkout-button')
}
}
export default new CartPage();
\ No newline at end of file
import { Selector,t } from 'testcafe';
class CheckoutPage{
constructor() {
this.firstName = Selector("#BillingNewAddress_FirstName")
this.lastName = Selector("#BillingNewAddress_LastName")
this.emailAddress = Selector("#BillingNewAddress_Email")
this.city = Selector("#BillingNewAddress_City")
this.address = Selector("#BillingNewAddress_Address1")
this.countryList = Selector("select[id='BillingNewAddress_CountryId']")
this.cityTxt = Selector("input[id='BillingNewAddress_City']")
this.addressTxt = Selector("input[id='BillingNewAddress_Address1']")
this.zipTxt = Selector("input[id='BillingNewAddress_ZipPostalCode']")
this.phoneTxt = Selector("input[id='BillingNewAddress_PhoneNumber']")
this.continueBtn = Selector('button.button-1.new-address-next-step-button')
this.nextDayOption = Selector("#shippingoption_1")
this.nextShippingBtn = Selector('button.button-1.shipping-method-next-step-button')
this.nextPaymentBtn = Selector('button.button-1.payment-method-next-step-button')
this.nextConfirmBtn = Selector('button.button-1.payment-info-next-step-button')
this.confirmOrderBtn = Selector('button.button-1.confirm-order-next-step-button')
this.orderConfirmationMessage = Selector('strong').withText('Your order has been successfully processed!')
this.viewOrderDetailsLink = Selector('a').withText('Click here for order details.')
}
async selectCountry(country){
const countryOption = this.countryList.find('option');
await t
.click(this.countryList)
.click(countryOption.withText(country));
}
}
export default new CheckoutPage();
\ No newline at end of file
import { Selector } from "testcafe";
class CustomerPage {
constructor() {
this.ordersLink = Selector('a').withText('Orders')
this.noOrdersLabel = Selector('div.no-data').withText('No orders');
}
}
export default new CustomerPage();
\ No newline at end of file
import {t, Selector} from "testcafe";
class HomePage{
constructor(){
this.subtitleHeader = Selector("h2").withText("Welcome to our store");
this.RegisterLink = Selector("a").withText("Register");
this.LoginLink = Selector('a').withText('Log in')
this.CartLink = Selector('a').withText('Shopping cart')
this.MyAccountLink = Selector('a').withText('My account')
this.LogoutLink = Selector('a').withText('Log out');
this.currencyList = Selector("select#customerCurrency")
this.Books = Selector("a").withText("Books");
this.WishListLink = Selector("a.ico-wishlist");
}
get productSearch() {
return Selector("input[id='small-searchterms']");
}
async search(product) {
await t.
typeText(this.productSearch, product).
wait(3000).
pressKey('enter')
}
async changeCurrency(currency){
await t
.click(this.currencyList)
.click(Selector('option', { text: currency }));
}
}
export default new HomePage();
\ No newline at end of file
import { Selector } from "testcafe";
class LoginPage {
constructor() {
this.emailInput = Selector("#Email");
this.passwordInput = Selector("#Password");
this.submitButton = Selector("button.button-1.login-button");
this.accountHeader = Selector("strong").withText("Returning Customer");
this.checkoutAsGuestUser = Selector('button.button-1.checkout-as-guest-button');
}
}
export default new LoginPage();
\ No newline at end of file
import { Selector } from 'testcafe';
class MyOrdersPage{
constructor() {
this.orders = Selector("li.customer-orders");
}
}
export default new MyOrdersPage();
\ No newline at end of file
import { Selector } from 'testcafe';
class ProductDetailsPage{
constructor() {
this.productPrice = Selector("span[id='price-value-4']").withText('$1,800.00')
this.prductQuantity = Selector('input#product_enteredQuantity_4.qty-input')
this.addToCart = Selector("button[id='add-to-cart-button-4']")
this.successMessage = Selector('div.bar-notification.success');
}
}
export default new ProductDetailsPage();
\ No newline at end of file
import { Selector,t } from "testcafe";
class RegisterPage{
constructor() {
this.GenderOption = Selector('#gender-male')
this.FirstName = Selector('#FirstName')
this.LastName = Selector('#LastName')
this.DateOfBirthDayList = Selector("select[name='DateOfBirthDay']")
this.DateOfBirthMonthList = Selector("select[name='DateOfBirthMonth']")
this.DateOfBirthYearList = Selector("select[name='DateOfBirthYear']")
this.Email = Selector('#Email')
this.Password = Selector('#Password')
this.ConfirmPassword = Selector('#ConfirmPassword')
this.RegisterButton = Selector('#register-button.button-1.register-next-step-button')
this.SuccessfullMessage = Selector('div.result').withText('Your registration completed');
}
async selectDay(day){
const DaysOption = this.DateOfBirthDayList.find('option');
await t
.click(this.DateOfBirthDayList)
.click(DaysOption.withText(day));
}
async selectMonth(month){
const DaysOption = this.DateOfBirthMonthList.find('option');
await t
.click(this.DateOfBirthMonthList)
.click(DaysOption.withText(month));
}
async selectYear(year){
const DaysOption = this.DateOfBirthYearList.find('option');
await t
.click(this.DateOfBirthYearList)
.click(DaysOption.withText(year));
}
}
export default new RegisterPage();
\ No newline at end of file
import { Selector } from 'testcafe';
class SearchResultPage {
constructor(){
this.productItem = Selector('div.product-item')
this.productTitle = Selector('a').withText('Apple MacBook Pro 13-inch')
}
}
export default new SearchResultPage();
\ No newline at end of file
import { Selector } from 'testcafe';
class WishListPage {
constructor(){
this.AddToCartCheckBox = Selector('td.add-to-cart>input')
this.AddToCartButton = Selector('button.button-2.wishlist-add-to-cart-button')
this.WishListSuccessMessage = Selector('.bar-notification.success>p.content')
this.WishListSuccessMessageClose = Selector('.close')
}
}
export default new WishListPage();
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.rawgit.com/drvic10k/bootstrap-sortable/ff650fd1/Contents/bootstrap-sortable.css">
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="https://cdn.rawgit.com/drvic10k/bootstrap-sortable/ff650fd1/Scripts/bootstrap-sortable.js"></script>
<script src="https://cdn.rawgit.com/drvic10k/bootstrap-sortable/ff650fd1/Scripts/moment.min.js"></script>
<style>
body {font-family: Arial, Helvetica, sans-serif;}
.thumbImg {
width: 100%;
max-width: 35px;
border-radius: 3px;
cursor: pointer;
margin-bottom: 5px;
border-width: 1px;
border-color: #f1f1f1;
border-style: solid;
}
.modal {
display: none;
position: fixed;
z-index: 1;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.7);
}
.modal-content {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
}
.closeModal {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
}
.closeModal:hover,
.closeModal:focus {
cursor: pointer;
}
</style>
</head>
<body>
<div id="myModal" class="modal">
<span class="closeModal">&times;</span>
<img class="modal-content" id="modelImage">
</div>
<div class="container">
<h1 class="text-primary">TestCafe Test Summary</h1>
<div class="client-logo" style="padding:15px"></div>
<div class="bg-primary" style="padding:15px;box-shadow: 6px 6px 6px 6px #00000033;border-radius: 10px;">
<h3>Summary</h3><br>
<p class="lead">Start Time: Wed Jun 15 2022 10:06:42 GMT+0530 (India Standard Time)</p>
<p class="lead">Browsers: Microsoft Edge 102.0.1245.41 / Windows 10, Chrome 102.0.5005.115 / Windows 10</p>
<p class="lead">Duration: 4m 20s</p>
<p class="lead">Tests Failed: 0 out of 3</p>
<p class="lead">Tests Skipped: 0</p>
</div><br>
<table class="table sortable" style="padding:15px;box-shadow: 6px 6px 6px 6px #00000033;border-radius: 10px;">
<thead>
<tr>
<th>#</th>
<th>Fixture</th>
<th>Test Name</th>
<th>Browsers</th>
<th>Duration</th>
<th>Result</th>
</tr>
</thead>
<tbody>
<tr class="success">
<td>1</td>
<td>Registration Page</td>
<td>Assert Home page</td>
<td>Microsoft Edge 102.0.1245.41 / Windows 10, Chrome 102.0.5005.115 / Windows 10</td>
<td>3m 51s</td>
<td>passed</td>
</tr>
<tr class="success">
<td>2</td>
<td>Registration Page</td>
<td>Validate register user data in database</td>
<td>Microsoft Edge 102.0.1245.41 / Windows 10, Chrome 102.0.5005.115 / Windows 10</td>
<td>3m 51s</td>
<td>passed</td>
</tr>
<tr class="success">
<td>3</td>
<td>Registration Page</td>
<td>User Register and Login page</td>
<td>Microsoft Edge 102.0.1245.41 / Windows 10, Chrome 102.0.5005.115 / Windows 10</td>
<td>4m 17s</td>
<td>passed</td>
</tr>
</tbody>
<thead>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
</table>
<br>
<h3>Error Details</h3>
</div>
<script>
const modal = document.getElementById('myModal');
const modalImage = document.getElementById("modelImage");
Array.from(document.getElementsByClassName("thumbImg")).forEach(function(el) {
el.onclick = function() {
modal.style.display = "block";
modalImage.src = this.src;
}
});
document.getElementsByClassName("closeModal")[0].onclick = function() {
modal.style.display = "none";
}
</script>
</body>
<br>
</html>
\ No newline at end of file
import { ClientFunction } from 'testcafe';
import homepage from '../pages/HomePage';
import searchresults from '../pages/SearchResultPage'
import productdetails from '../pages/ProductDetailsPage'
import cartpage from '../pages/CartPage'
import checkoutpage from '../pages/CheckoutPage'
import loginpage from "../pages/LoginPage";
const URL = 'https://demo.nopcommerce.com/';
const getURL = ClientFunction(() => window.location.href);
var randomNumber = Math.floor(Math.random() * 10000);
var userEmail = 'hasan' + randomNumber + '@email.com';
fixture`A guest user visits the web application, search for an available product and place an order`
.page(URL).beforeEach(async t => {
await t
.setTestSpeed(1)
.setPageLoadTimeout(1);
});
test.meta({
ID: '1',
SEVERITY: 'Medium',
STORY: 'INS-452',
TEST_RUN: 'test run id or identifier'
})("Assert Home page", async (t) => {
await t
.expect(getURL()).eql(URL)
.takeScreenshot()
.expect(homepage.subtitleHeader.exists).ok()
});
test.meta({
ID: '2',
SEVERITY: 'Low',
STORY: 'INS-452',
TEST_RUN: 'test run id or identifier'
})("Change Currency Test", async (t) => {
await homepage.changeCurrency('Euro')
});
test.meta({
ID: '3',
SEVERITY: 'blocker',
STORY: 'INS-452',
TEST_RUN: 'test run id or identifier'
})("As a guest, the purchase of a product is successful.", async (t) => {
await homepage.search(t.fixtureCtx.searchKeyWord);
await t
.click(searchresults.productTitle)
.expect(getURL()).contains(t.fixtureCtx.searchKeyWordInURL)
.expect(productdetails.productPrice.exists).ok()
.click(productdetails.addToCart)
.expect(productdetails.successMessage.exists).ok()
.wait(3000)
.click(homepage.CartLink)
.click(cartpage.termsLabel)
.click(cartpage.checkoutBtn)
.expect(getURL()).contains(t.fixtureCtx.checkoutGuestURL)
.click(loginpage.checkoutAsGuestUser)
.typeText(checkoutpage.firstName, t.fixtureCtx.firstName)
.typeText(checkoutpage.lastName, t.fixtureCtx.lastName)
.typeText(checkoutpage.emailAddress, userEmail);
await checkoutpage.selectCountry( t.fixtureCtx.country);
await t
.typeText(checkoutpage.cityTxt, t.fixtureCtx.cityTxt)
.typeText(checkoutpage.addressTxt, t.fixtureCtx.addressTxt)
.typeText(checkoutpage.zipTxt, t.fixtureCtx.zipTxt)
.typeText(checkoutpage.phoneTxt, t.fixtureCtx.phoneTxt)
.click(checkoutpage.continueBtn)
.click(checkoutpage.nextDayOption)
.click(checkoutpage.nextShippingBtn)
.click(checkoutpage.nextPaymentBtn)
.click(checkoutpage.nextConfirmBtn)
.click(checkoutpage.confirmOrderBtn);
// .expect(checkoutpage.orderConfirmationMessage.exists).Ok()
//.click(checkoutpage.viewOrderDetailsLink);
});
import { ClientFunction } from "testcafe";
import homepage from "../pages/HomePage";
import customerpage from "../pages/CustomerPage";
import loginpage from "../pages/LoginPage";
import registerpage from "../pages/RegisterPage";
import browsepage from "../pages/BrowsePage";
import wishlistpage from "../pages/WishListPage";
import cartpage from '../pages/CartPage'
import checkoutpage from '../pages/CheckoutPage'
import { getKeywords } from "../dataBase/MongoDbConnection";
import myorderpage from '../pages/MyOrdersPage'
const userData = require("../data/data.json")
const URL ="https://demo.nopcommerce.com/";
const pageURL = ClientFunction(()=>window.location.href);
const getURL = ClientFunction(() => window.location.href);
fixture("Registration Page").page(URL).beforeEach(async t =>{
await t
.setTestSpeed(1)
.setPageLoadTimeout(0);
});;
test.meta({
ID: '1',
SEVERITY: 'low',
STORY: 'NSC-1431',
TEST_RUN: '1'
}).page("https://demo.nopcommerce.com/")
("Assert Home page", async (t) => {
const keyword = await getKeywords();
await t
.expect(pageURL()).eql(URL)
.takeScreenshot()
.expect(homepage.subtitleHeader.exists).ok()
});
test.meta({
ID: '2',
SEVERITY: 'medium',
STORY: 'NSC-1431',
TEST_RUN: '1'
}).page("https://demo.nopcommerce.com/")
("Validate register user data in database", async (t) => {
const keyword = await getKeywords();
await t
.expect(keyword[0].firstName).eql(userData.firstName)
.expect(keyword[0].lastName).eql(userData.lastName)
.expect(keyword[0].country).eql(userData.country)
.expect(keyword[0].cityTxt).eql(userData.cityTxt)
.expect(keyword[0].addressTxt).eql(userData.addressTxt)
.expect(keyword[0].phoneTxt).eql(userData.phoneTxt)
.expect(keyword[0].date).eql(userData.date)
.expect(keyword[0].month).eql(userData.month)
.expect(keyword[0].year).eql(userData.year)
});
test.meta({
ID: '3',
SEVERITY: 'blocker',
STORY: 'NSC-1431',
TEST_RUN: '1'
}).page("https://demo.nopcommerce.com/")
("User Register and Login page", async (t) => {
var randomNumber = Math.floor(Math.random() * 10000);
var userEmail = 'hasaneqbal'+randomNumber+'@test.com';
await t
.click(homepage.RegisterLink)
.expect(pageURL()).contains("register")
.click(registerpage.GenderOption)
.typeText(registerpage.FirstName,userData.firstName)
.typeText(registerpage.LastName,userData.lastName);
await registerpage.selectDay(userData.date);
await registerpage.selectMonth(userData.month);
await registerpage.selectYear(userData.year);
await t
.typeText(registerpage.Email,userEmail)
.typeText(registerpage.Password,userData.password)
.typeText(registerpage.ConfirmPassword,userData.password)
.click(registerpage.RegisterButton)
.expect(registerpage.SuccessfullMessage.exists).ok()
.click(homepage.LogoutLink)
.click(homepage.LoginLink)
.expect(loginpage.accountHeader.exists).ok()
.typeText(loginpage.emailInput,userEmail)
.typeText(loginpage.passwordInput,userData.password)
.click(loginpage.submitButton)
.click(homepage.MyAccountLink)
.expect(customerpage.ordersLink.exists).ok()
.click(customerpage.ordersLink)
.expect(customerpage.noOrdersLabel.exists).ok()
.click(homepage.Books)
.click(browsepage.addToWishList)
.wait(3000)
.click(wishlistpage.WishListSuccessMessageClose)
.click(homepage.WishListLink)
.click(wishlistpage.AddToCartCheckBox)
.click(wishlistpage.AddToCartButton)
.click(cartpage.termsLabel)
.click(cartpage.checkoutBtn)
.expect(getURL()).contains(userData.checkoutURL);
await checkoutpage.selectCountry(userData.country);
await t
.takeScreenshot()
.typeText(checkoutpage.cityTxt,userData.cityTxt)
.typeText(checkoutpage.addressTxt,userData.addressTxt)
.typeText(checkoutpage.zipTxt,userData.zipTxt)
.typeText(checkoutpage.phoneTxt,userData.phoneTxt)
.click(checkoutpage.continueBtn)
.click(checkoutpage.nextDayOption)
.click(checkoutpage.nextShippingBtn)
.click(checkoutpage.nextPaymentBtn)
.click(checkoutpage.nextConfirmBtn)
.click(checkoutpage.confirmOrderBtn)
.expect(checkoutpage.orderConfirmationMessage.exists).ok()
.click(checkoutpage.viewOrderDetailsLink)
.click(homepage.MyAccountLink)
.click(customerpage.ordersLink)
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment