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