1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.krad.compview;
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 RichMessagesAbstractSmokeTestBase extends WebDriverLegacyITBase {
28
29
30
31
32 public static final String BOOKMARK_URL = "/kr-krad/uicomponents?viewId=RichMessagesView&methodToCall=start";
33
34
35
36
37
38
39 @Override
40 public String getTestUrl() {
41 return ITUtil.PORTAL;
42 }
43
44 protected void navigation() throws Exception {
45 waitAndClickKRAD();
46 waitAndClickByXpath("(//a[contains(text(),'Rich Messages')])[2]");
47 switchToWindow(RICH_MESSAGES_WINDOW_TITLE);
48 checkForIncidentReport(RICH_MESSAGES_WINDOW_TITLE);
49 Thread.sleep(9000);
50 }
51
52 protected void testRichMessagesNav(Failable failable) throws Exception {
53 navigation();
54
55 super.verifyRichMessagesValidationBasicFunctionality();
56
57
58 super.verifyRichMessagesValidationAdvancedFunctionality();
59
60
61 super.verifyRichMessagesValidationLettersNumbersValidation();
62
63
64 super.verifyRichMessagesValidationRadioAndCheckBoxGroupFunctionality();
65
66
67 super.verifyRichMessagesValidationLinkDeclarationsFunctionality();
68 passed();
69 }
70
71 protected void testRichMessagesBookmark(Failable failable) throws Exception {
72 checkForIncidentReport(getTestUrl());
73 Thread.sleep(9000);
74
75
76 super.verifyRichMessagesValidationBasicFunctionality();
77
78
79 super.verifyRichMessagesValidationAdvancedFunctionality();
80
81
82 super.verifyRichMessagesValidationLettersNumbersValidation();
83
84
85 super.verifyRichMessagesValidationRadioAndCheckBoxGroupFunctionality();
86
87
88 super.verifyRichMessagesValidationLinkDeclarationsFunctionality();
89 passed();
90 }
91
92 }