Created
June 10, 2016 17:36
-
-
Save kkashyap1707/4b419ded4bf8ee05e75ae8547f6cdaab to your computer and use it in GitHub Desktop.
login.spec.js file is used to create test cases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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