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.WebDriverLegacyITBase;
019    
020    import org.junit.Assert;
021    import org.junit.Test;
022    
023    /**
024     * @author Kuali Rice Team (rice.collab@kuali.org)
025     */
026    public class RichMessagesValidationWDIT extends WebDriverLegacyITBase {
027    
028        @Override
029        public void fail(String message) {
030            Assert.fail(message);
031        }
032    
033        @Override
034        public String getTestUrl() {
035            return "/kr-krad/uicomponents?viewId=RichMessagesView&methodToCall=start";
036        }
037    
038            @Test
039            public void testRichMessagesValidationIT() throws Exception {
040                    
041                    checkForIncidentReport(getTestUrl());
042            Thread.sleep(9000);
043    //        selectWindow(RICH_MESSAGES_WINDOW_TITLE);
044                    
045                    //Verify Basic Functionality Section
046                    super.verifyRichMessagesValidationBasicFunctionality();
047                                    
048                    //Verify Advanced Functionality Section
049                    super.verifyRichMessagesValidationAdvancedFunctionality();
050                                    
051                    //Verify Letters and Numbers Validation
052                    super.verifyRichMessagesValidationLettersNumbersValidation();
053                                    
054                    //Verify Radio and Checkbox groups rich messages Section
055                    super.verifyRichMessagesValidationRadioAndCheckBoxGroupFunctionality();
056                                    
057                    //Verify Link Declarations Section
058                    super.verifyRichMessagesValidationLinkDeclarationsFunctionality();
059            passed();
060            }
061            
062            
063    
064    }