-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathServiceNowBaseTest.java
More file actions
42 lines (35 loc) · 1.48 KB
/
ServiceNowBaseTest.java
File metadata and controls
42 lines (35 loc) · 1.48 KB
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
36
37
38
39
40
41
42
package solutions.bellatrix.servicenow.baseTest;
import solutions.bellatrix.servicenow.listeners.AutoWaitListener;
import solutions.bellatrix.servicenow.pages.serviceNowPage.ServiceNowPage;
import solutions.bellatrix.servicenow.pages.serviceNowTableViewPage.ServiceNowTableViewPage;
import solutions.bellatrix.servicenow.plugins.authentication.AuthenticationPlugin;
import solutions.bellatrix.servicenow.plugins.fileuploads.FileUploadPlugin;
import solutions.bellatrix.core.plugins.junit.BaseTest;
import solutions.bellatrix.web.infrastructure.BrowserLifecyclePlugin;
import solutions.bellatrix.web.infrastructure.LogLifecyclePlugin;
import solutions.bellatrix.web.services.App;
public class ServiceNowBaseTest extends BaseTest {
protected ServiceNowPage serviceNowPage;
protected ServiceNowTableViewPage serviceNowTableViewPage;
protected App app() {
return new App();
}
@Override
protected void configure() {
addPlugin(FileUploadPlugin.class);
addPlugin(LogLifecyclePlugin.class);
addPlugin(BrowserLifecyclePlugin.class);
addPlugin(AuthenticationPlugin.class);
addListener(AutoWaitListener.class);
}
@Override
protected void beforeEach() throws Exception {
super.beforeEach();
serviceNowPage = app().createPage(ServiceNowPage.class);
serviceNowTableViewPage = app().createPage(ServiceNowTableViewPage.class);
}
@Override
protected void afterEach() {
super.afterEach();
}
}