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.admin.test;
017    
018    import java.util.List;
019    
020    import org.junit.Test;
021    
022    /**
023     * tests the Parameter section in Rice.
024     * 
025     * @author Kuali Rice Team (rice.collab@kuali.org)
026     */
027    public class ParameterNavIT extends AdminTmplMthdSTNavBase {
028    
029        String docId;
030        String parameterName;
031    
032        @Override
033        protected String getLinkLocator() {
034            return "Parameter";
035        }
036    
037        @Test
038        public void testParameter() throws Exception {
039            
040            //Create New
041            super.gotoCreateNew();
042            List<String> params;
043            params=super.testCreateNewParameter(docId, parameterName);
044        
045            //Lookup
046            super.gotoMenuLinkLocator();
047            selectFrame("iframeportlet");
048            params=super.testLookUpParameter(params.get(0), params.get(1));
049    
050            //edit
051            params=super.testEditParameter(params.get(0), params.get(1));
052            
053            //Verify if its edited
054            super.gotoMenuLinkLocator();
055            params=super.testVerifyModifiedParameter(params.get(0), params.get(1));
056    
057            //copy
058            params=super.testCopyParameter(params.get(0), params.get(1));
059            
060            //Verify if its copied
061            super.gotoMenuLinkLocator();
062            super.testVerifyModifiedParameter(params.get(0), params.get(1));
063        }
064    }