-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBaseTest.java
More file actions
35 lines (28 loc) · 783 Bytes
/
Copy pathBaseTest.java
File metadata and controls
35 lines (28 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package org.brit.tests;
import org.brit.application.IApplication;
import org.brit.webdriver.AppFactory;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
public class BaseTest {
public IApplication application;
@BeforeClass
public void beforeSuite(){
application = AppFactory.initApp();
}
@AfterClass
public void afterClass(){
application.closeApp();
}
@BeforeMethod
public void beforeMethod(){
application
.goToApp()
.login("standard_user", "secret_sauce");
}
@AfterMethod
public void afterMethod(){
application.openMenu().logout();
}
}