001 /* 002 * Copyright 2005-2013 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package edu.samplu.krad.compview; 017 018 import edu.samplu.common.ITUtil; 019 import edu.samplu.common.WebDriverLegacyITBase; 020 021 import org.junit.Test; 022 023 /** 024 * @author Kuali Rice Team (rice.collab@kuali.org) 025 */ 026 public class RichMessagesValidationNavIT extends WebDriverLegacyITBase { 027 028 @Override 029 public String getTestUrl() { 030 return ITUtil.PORTAL; 031 } 032 033 @Test 034 public void testRichMessagesValidationIT() throws Exception { 035 waitAndClickKRAD(); 036 waitAndClickByXpath("(//a[contains(text(),'Rich Messages')])[2]"); 037 switchToWindow(RICH_MESSAGES_WINDOW_TITLE); 038 039 checkForIncidentReport(RICH_MESSAGES_WINDOW_TITLE); 040 Thread.sleep(9000); 041 // selectWindow(RICH_MESSAGES_WINDOW_TITLE); 042 043 //Verify Basic Functionality Section 044 super.verifyRichMessagesValidationBasicFunctionality(); 045 046 //Verify Advanced Functionality Section 047 super.verifyRichMessagesValidationAdvancedFunctionality(); 048 049 //Verify Letters and Numbers Validation 050 super.verifyRichMessagesValidationLettersNumbersValidation(); 051 052 //Verify Radio and Checkbox groups rich messages Section 053 super.verifyRichMessagesValidationRadioAndCheckBoxGroupFunctionality(); 054 055 //Verify Link Declarations Section 056 super.verifyRichMessagesValidationLinkDeclarationsFunctionality(); 057 passed(); 058 } 059 }