1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  package edu.samplu.admin.test;
17  
18  import static org.junit.Assert.assertEquals;
19  
20  import edu.samplu.common.ITUtil;
21  import edu.samplu.common.WebDriverLegacyITBase;
22  
23  import org.junit.Test;
24  import org.openqa.selenium.By;
25  import java.util.List;
26  
27  
28  
29  
30  
31  
32  public class ParameterWDIT extends WebDriverLegacyITBase {
33     
34      String docId;
35      String parameterName;
36      public static final String TEST_URL = ITUtil.PORTAL + "?channelTitle=Parameter&channelUrl=" + ITUtil.getBaseUrlString() +
37              "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.rice.coreservice.impl.parameter.ParameterBo&docFormKey=88888888&returnLocation=" +
38              ITUtil.PORTAL_URL + "&hideReturnLink=true";
39      
40      @Override
41      public String getTestUrl() {
42          return TEST_URL;
43      }
44      @Test
45      public void testParameter() throws Exception {
46          
47          
48          selectFrame("iframeportlet");
49          super.waitAndCreateNew();
50          List<String> params;
51          params=super.testCreateNewParameter(docId, parameterName);
52         
53          
54          super.open(ITUtil.getBaseUrlString()+TEST_URL);
55          selectFrame("iframeportlet");
56          params=super.testLookUpParameter(params.get(0), params.get(1));
57     
58          
59          params=super.testEditParameter(params.get(0), params.get(1));
60          
61          
62          super.open(ITUtil.getBaseUrlString()+TEST_URL);
63          selectFrame("iframeportlet");
64          params=super.testVerifyModifiedParameter(params.get(0), params.get(1));
65    
66          
67          params=super.testCopyParameter(params.get(0), params.get(1));
68          
69          
70          super.open(ITUtil.getBaseUrlString()+TEST_URL);
71          selectFrame("iframeportlet");
72          super.testVerifyModifiedParameter(params.get(0), params.get(1));
73      }
74  
75      
76  }