1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.krad.compview;
17
18 import org.kuali.rice.testtools.common.JiraAwareFailable;
19 import org.kuali.rice.testtools.selenium.WebDriverLegacyITBase;
20
21
22
23
24
25
26 public abstract class RichMessagesAftBase extends WebDriverLegacyITBase {
27
28
29
30
31 public static final String BOOKMARK_URL = "/kr-krad/uicomponents?viewId=RichMessagesView&methodToCall=start";
32
33 @Override
34 protected String getBookmarkUrl() {
35 return BOOKMARK_URL;
36 }
37
38 protected void navigation() throws Exception {
39 waitAndClickKRAD();
40 waitAndClickByLinkText("Rich Messages");
41 switchToWindow(RICH_MESSAGES_WINDOW_TITLE);
42 checkForIncidentReport(RICH_MESSAGES_WINDOW_TITLE);
43 Thread.sleep(9000);
44 }
45
46 protected void testRichMessagesNav(JiraAwareFailable failable) throws Exception {
47 navigation();
48
49 super.verifyRichMessagesValidationBasicFunctionality();
50
51
52 super.verifyRichMessagesValidationAdvancedFunctionality();
53
54
55 super.verifyRichMessagesValidationLettersNumbersValidation();
56
57
58 super.verifyRichMessagesValidationRadioAndCheckBoxGroupFunctionality();
59
60
61 super.verifyRichMessagesValidationLinkDeclarationsFunctionality();
62 passed();
63 }
64
65 protected void testRichMessagesBookmark(JiraAwareFailable failable) throws Exception {
66 checkForIncidentReport(getTestUrl());
67 Thread.sleep(9000);
68
69
70 super.verifyRichMessagesValidationBasicFunctionality();
71
72
73 super.verifyRichMessagesValidationAdvancedFunctionality();
74
75
76 super.verifyRichMessagesValidationLettersNumbersValidation();
77
78
79 super.verifyRichMessagesValidationRadioAndCheckBoxGroupFunctionality();
80
81
82 super.verifyRichMessagesValidationLinkDeclarationsFunctionality();
83 passed();
84 }
85
86 }