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