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.admin.test;
17  
18  import java.util.List;
19  
20  import org.junit.Test;
21  
22  /**
23   * tests the Parameter section in Rice.
24   * 
25   * @author Kuali Rice Team (rice.collab@kuali.org)
26   */
27  public class ParameterNavIT extends AdminTmplMthdSTNavBase {
28  
29      String docId;
30      String parameterName;
31  
32      @Override
33      protected String getLinkLocator() {
34          return "Parameter";
35      }
36  
37      @Test
38      public void testParameter() throws Exception {
39          
40          //Create New
41          super.gotoCreateNew();
42          List<String> params;
43          params=super.testCreateNewParameter(docId, parameterName);
44      
45          //Lookup
46          super.gotoMenuLinkLocator();
47          selectFrame("iframeportlet");
48          params=super.testLookUpParameter(params.get(0), params.get(1));
49  
50          //edit
51          params=super.testEditParameter(params.get(0), params.get(1));
52          
53          //Verify if its edited
54          super.gotoMenuLinkLocator();
55          params=super.testVerifyModifiedParameter(params.get(0), params.get(1));
56  
57          //copy
58          params=super.testCopyParameter(params.get(0), params.get(1));
59          
60          //Verify if its copied
61          super.gotoMenuLinkLocator();
62          super.testVerifyModifiedParameter(params.get(0), params.get(1));
63      }
64  }