Guest User

Untitled

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