View Javadoc

1   /**
2    * Copyright 2005-2013 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.samplu.krad.compview;
17  
18  import edu.samplu.common.WebDriverLegacyITBase;
19  
20  import org.junit.Assert;
21  import org.junit.Test;
22  
23  /**
24   * @author Kuali Rice Team (rice.collab@kuali.org)
25   */
26  public class RichMessagesValidationWDIT extends WebDriverLegacyITBase {
27  
28      @Override
29      public void fail(String message) {
30          Assert.fail(message);
31      }
32  
33      @Override
34      public String getTestUrl() {
35          return "/kr-krad/uicomponents?viewId=RichMessagesView&methodToCall=start";
36      }
37  
38  	@Test
39  	public void testRichMessagesValidationIT() throws Exception {
40  		
41  		checkForIncidentReport(getTestUrl());
42          Thread.sleep(9000);
43  //        selectWindow(RICH_MESSAGES_WINDOW_TITLE);
44  		
45  		//Verify Basic Functionality Section
46  		super.verifyRichMessagesValidationBasicFunctionality();
47  				
48  		//Verify Advanced Functionality Section
49  		super.verifyRichMessagesValidationAdvancedFunctionality();
50  				
51  		//Verify Letters and Numbers Validation
52  		super.verifyRichMessagesValidationLettersNumbersValidation();
53  				
54  		//Verify Radio and Checkbox groups rich messages Section
55  		super.verifyRichMessagesValidationRadioAndCheckBoxGroupFunctionality();
56  				
57  		//Verify Link Declarations Section
58  		super.verifyRichMessagesValidationLinkDeclarationsFunctionality();
59          passed();
60  	}
61  	
62  	
63  
64  }