1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.krad.configview;
17
18 import edu.samplu.common.Failable;
19 import edu.samplu.common.ITUtil;
20 import edu.samplu.common.WebDriverLegacyITBase;
21
22
23
24
25 public abstract class HelpAbstractSmokeTestBase extends WebDriverLegacyITBase {
26
27
28
29
30 public static final String BOOKMARK_URL = "/kr-krad/configuration-test-view-uif-controller?viewId=ConfigurationTestView&methodToCall=start&pageId=ConfigurationTestView-Help-Page";
31
32
33
34
35
36
37 @Override
38 public String getTestUrl() {
39 return ITUtil.PORTAL;
40 }
41
42 protected void navigation() throws Exception {
43 waitAndClickKRAD();
44 waitAndClickByXpath(CONFIGURATION_VIEW_XPATH);
45 switchToWindow(CONFIGURATION_VIEW_WINDOW_TITLE);
46 waitAndClickByLinkText("Help");
47 Thread.sleep(5000);
48 selectFrameIframePortlet();
49 }
50
51 protected void testHelpNav(Failable failable) throws Exception {
52 navigation();
53 testViewHelp();
54 navigation();
55 testPageHelp();
56 navigation();
57 testTooltipHelp();
58 navigation();
59 testDisplayOnlyTooltipHelp();
60 navigation();
61 testMissingTooltipHelp();
62 }
63
64 protected void testHelpBookmark(Failable failable) throws Exception {
65 testViewHelp();
66 testPageHelp();
67 testTooltipHelp();
68 testDisplayOnlyTooltipHelp();
69 testMissingTooltipHelp();
70 passed();
71 }
72 }