1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package edu.samplu.admin.test;
18
19 import static org.junit.Assert.assertEquals;
20
21 import java.util.List;
22
23 import org.junit.Test;
24
25 import edu.samplu.common.ITUtil;
26 import edu.samplu.common.WebDriverLegacyITBase;
27
28
29
30
31 public class PermissionWDIT extends WebDriverLegacyITBase {
32
33 String docId;
34 String permissionName;
35
36 public static final String TEST_URL = ITUtil.PORTAL + "?channelTitle=Permission&channelUrl=" + ITUtil.getBaseUrlString() +
37 "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.rice.kim.impl.permission.UberPermissionBo&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 testPerson() throws Exception {
46
47 selectFrame("iframeportlet");
48 super.waitAndCreateNew();
49 List<String> params;
50 params=super.testCreateNewPermission(docId, permissionName);
51
52
53 selectTopFrame();
54 super.open(ITUtil.getBaseUrlString()+TEST_URL);
55 selectFrame("iframeportlet");
56 params=super.testLookUpPermission(params.get(0), params.get(1));
57
58
59 params=super.testEditPermission(params.get(0), params.get(1));
60
61
62 selectTopFrame();
63 super.open(ITUtil.getBaseUrlString()+TEST_URL);
64 selectFrame("iframeportlet");
65 params=testVerifyPermission(params.get(0), params.get(1));
66
67 }
68
69 }