Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.junit.*;
- public class InvalidUser {
- @BeforeClass
- public static void testSettingUPChrome() {
- CommonSteps.settingUPChrome();
- }
- public void login(){
- String USER = "admin";
- String PASS = "123456";
- CommonSteps.doLogin(USER,PASS);
- }
- @Test
- public void isUserLogged(){
- login();
- CommonSteps.isUserLoggedProperly();
- }
- @After
- public void testSaveScreenshott () {
- System.out.println("I've been invoked after each method");
- }
- @AfterClass
- public static void testCloseBrowser() {
- CommonSteps.closeAllBrowsers();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement