View Javadoc
1   /**
2    * Copyright 2005-2015 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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   * Tests the Component section in Rice.
23   *
24   * @author Kuali Rice Team (rice.collab@kuali.org)
25   */
26  public abstract class RichMessagesAftBase extends WebDriverLegacyITBase {
27  
28      /**
29       * /kr-krad/uicomponents?viewId=RichMessagesView&methodToCall=start
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          //Verify Basic Functionality Section
49          super.verifyRichMessagesValidationBasicFunctionality();
50                  
51          //Verify Advanced Functionality Section
52          super.verifyRichMessagesValidationAdvancedFunctionality();
53                  
54          //Verify Letters and Numbers Validation
55          super.verifyRichMessagesValidationLettersNumbersValidation();
56                  
57          //Verify Radio and Checkbox groups rich messages Section
58          super.verifyRichMessagesValidationRadioAndCheckBoxGroupFunctionality();
59                  
60          //Verify Link Declarations Section
61          super.verifyRichMessagesValidationLinkDeclarationsFunctionality();
62          passed();
63      }
64  
65      protected void testRichMessagesBookmark(JiraAwareFailable failable) throws Exception {
66          checkForIncidentReport(getTestUrl());
67          Thread.sleep(9000);
68          
69          //Verify Basic Functionality Section
70          super.verifyRichMessagesValidationBasicFunctionality();
71                  
72          //Verify Advanced Functionality Section
73          super.verifyRichMessagesValidationAdvancedFunctionality();
74                  
75          //Verify Letters and Numbers Validation
76          super.verifyRichMessagesValidationLettersNumbersValidation();
77                  
78          //Verify Radio and Checkbox groups rich messages Section
79          super.verifyRichMessagesValidationRadioAndCheckBoxGroupFunctionality();
80                  
81          //Verify Link Declarations Section
82          super.verifyRichMessagesValidationLinkDeclarationsFunctionality();
83          passed();
84      }
85    
86  }