Advertisement
Guest User

Untitled

a guest
Jul 5th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1. import org.junit.*;
  2. public class InvalidUser {
  3.  
  4.     @BeforeClass
  5.     public static void testSettingUPChrome() {
  6.        CommonSteps.settingUPChrome();
  7.     }
  8.  
  9.     public void login(){
  10.         String USER = "admin";
  11.         String PASS = "123456";
  12.         CommonSteps.doLogin(USER,PASS);
  13.     }
  14.  
  15.     @Test
  16.     public void isUserLogged(){
  17.         login();
  18.         CommonSteps.isUserLoggedProperly();
  19.     }
  20.  
  21.     @After
  22.     public void testSaveScreenshott () {
  23.         System.out.println("I've been invoked after each method");
  24.     }
  25.  
  26.     @AfterClass
  27.     public static void testCloseBrowser() {
  28.         CommonSteps.closeAllBrowsers();
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement