171 lines
3.4 KiB
JavaScript
171 lines
3.4 KiB
JavaScript
|
$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("file:src/test/resources/Features/HillsLogin.feature");
|
||
|
formatter.feature({
|
||
|
"name": "hills login functionality",
|
||
|
"description": "",
|
||
|
"keyword": "Feature"
|
||
|
});
|
||
|
formatter.scenarioOutline({
|
||
|
"name": "Verify valid login credentials",
|
||
|
"description": "",
|
||
|
"keyword": "Scenario Outline"
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user navigate to hills login page",
|
||
|
"keyword": "Given "
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user enters username\u003cusername\u003e and password\u003cpassword\u003e",
|
||
|
"keyword": "When "
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user clicks on sign in button",
|
||
|
"keyword": "And "
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user shold be login to hills application",
|
||
|
"keyword": "Then "
|
||
|
});
|
||
|
formatter.examples({
|
||
|
"name": "",
|
||
|
"description": "",
|
||
|
"keyword": "Examples",
|
||
|
"rows": [
|
||
|
{
|
||
|
"cells": [
|
||
|
"username",
|
||
|
"password"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cells": [
|
||
|
"hillmgr",
|
||
|
"Ss@hills1"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
});
|
||
|
formatter.scenario({
|
||
|
"name": "Verify valid login credentials",
|
||
|
"description": "",
|
||
|
"keyword": "Scenario Outline"
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user navigate to hills login page",
|
||
|
"keyword": "Given "
|
||
|
});
|
||
|
formatter.match({});
|
||
|
formatter.result({
|
||
|
"status": "undefined"
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user enters usernamehillmgr and passwordSs@hills1",
|
||
|
"keyword": "When "
|
||
|
});
|
||
|
formatter.match({});
|
||
|
formatter.result({
|
||
|
"status": "undefined"
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user clicks on sign in button",
|
||
|
"keyword": "And "
|
||
|
});
|
||
|
formatter.match({});
|
||
|
formatter.result({
|
||
|
"status": "undefined"
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user shold be login to hills application",
|
||
|
"keyword": "Then "
|
||
|
});
|
||
|
formatter.match({});
|
||
|
formatter.result({
|
||
|
"status": "undefined"
|
||
|
});
|
||
|
formatter.scenarioOutline({
|
||
|
"name": "Verify Invalid login credentials",
|
||
|
"description": "",
|
||
|
"keyword": "Scenario Outline",
|
||
|
"tags": [
|
||
|
{
|
||
|
"name": "@Invalidtest"
|
||
|
}
|
||
|
]
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user navigate to hills login page",
|
||
|
"keyword": "Given "
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user enters username\u003cusername\u003e and password\u003cpassword\u003e",
|
||
|
"keyword": "When "
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user clicks on sign in button",
|
||
|
"keyword": "And "
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user shold not be login to hills application",
|
||
|
"keyword": "Then "
|
||
|
});
|
||
|
formatter.examples({
|
||
|
"name": "",
|
||
|
"description": "",
|
||
|
"keyword": "Examples",
|
||
|
"rows": [
|
||
|
{
|
||
|
"cells": [
|
||
|
"username",
|
||
|
"password"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cells": [
|
||
|
"hillmgr",
|
||
|
"RR@his1"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
});
|
||
|
formatter.scenario({
|
||
|
"name": "Verify Invalid login credentials",
|
||
|
"description": "",
|
||
|
"keyword": "Scenario Outline",
|
||
|
"tags": [
|
||
|
{
|
||
|
"name": "@Invalidtest"
|
||
|
}
|
||
|
]
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user navigate to hills login page",
|
||
|
"keyword": "Given "
|
||
|
});
|
||
|
formatter.match({});
|
||
|
formatter.result({
|
||
|
"status": "undefined"
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user enters usernamehillmgr and passwordRR@his1",
|
||
|
"keyword": "When "
|
||
|
});
|
||
|
formatter.match({});
|
||
|
formatter.result({
|
||
|
"status": "undefined"
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user clicks on sign in button",
|
||
|
"keyword": "And "
|
||
|
});
|
||
|
formatter.match({});
|
||
|
formatter.result({
|
||
|
"status": "undefined"
|
||
|
});
|
||
|
formatter.step({
|
||
|
"name": "user shold not be login to hills application",
|
||
|
"keyword": "Then "
|
||
|
});
|
||
|
formatter.match({});
|
||
|
formatter.result({
|
||
|
"status": "undefined"
|
||
|
});
|
||
|
});
|