1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.travel.krad.test;
17
18 import edu.samplu.common.Failable;
19 import edu.samplu.common.ITUtil;
20 import edu.samplu.common.WebDriverLegacyITBase;
21
22
23
24
25
26
27 public abstract class ConfigurationTestViewAbstractSmokeTestBase extends WebDriverLegacyITBase {
28
29
30
31
32 public static final String BOOKMARK_URL = "/kr-krad/configuration-test-view-uif-controller?viewId=ConfigurationTestView_KNS&methodToCall=start";
33
34
35 private String idPrefix = "ConfigurationTestView-ProgressiveRender-";
36
37
38 String addLineIdSuffix = "InputField_add_control";
39
40
41 protected void bookmark() {
42 open(ITUtil.getBaseUrlString() + BOOKMARK_URL);
43 }
44
45
46
47
48
49
50
51 @Override
52 public String getTestUrl() {
53 return ITUtil.PORTAL;
54 }
55
56 protected void navigation() throws InterruptedException {
57 waitAndClickKRAD();
58 waitAndClickByXpath("(//a[text()='Configuration Test View'])[2]");
59 switchToWindow(CONFIGURATION_VIEW_WINDOW_TITLE);
60 waitForTitleToEqualKualiPortalIndex();
61 }
62
63 protected void testConfigurationTestViewNav(Failable failable) throws Exception {
64 navigation();
65 testConfigurationTestView(idPrefix);
66 testAddLineWithSpecificTime(idPrefix, addLineIdSuffix);
67 testAddLineWithAllDay(idPrefix, addLineIdSuffix);
68 testAddLineAllDay(idPrefix, addLineIdSuffix);
69 passed();
70 }
71
72 protected void testConfigurationTestViewBookmark(Failable failable) throws Exception {
73 testConfigurationTestView(idPrefix);
74 testAddLineWithSpecificTime(idPrefix, addLineIdSuffix);
75 testAddLineWithAllDay(idPrefix, addLineIdSuffix);
76 testAddLineAllDay(idPrefix, addLineIdSuffix);
77 passed();
78 }
79 }