Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
login.spec.js file is used to create test cases
/**
* Created by Keshav on 6/9/2016.
* login.spec.js file
*/
var loginPage = require('./../fame1/login.po.js');
var beforeScenario=require('./../fame1/beforeTest.js')
describe('FameLiv HomePage', function()
{
var params = browser.params;
var loginObject;
beforeEach(function () {
console.log("In before each");
//isAngularSite(false);
var abc = new beforeScenario();
abc.loginIntoFameApp(params.userName,params.password);
});
afterEach(function () {
browser.manage().deleteAllCookies();
console.log('cookies deleted successfully');
console.log('********************************************************');
browser.driver.sleep(500);
});
//Test Case 1
//If you don't wants to run a test case put "x" before it
xit('Manual Login Test', function()
{
var loginO = new loginPage();
loginO.manualLogin(params.userName,params.password);
console.log("first Test Case");
browser.driver.sleep(5000);
});
//Test Case 2
it('Manual Login Test', function()
{
console.log("first Test Case");
browser.driver.sleep(5000);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.