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 PersonWDIT extends WebDriverLegacyITBase {
32
33 String docId;
34 String personName;
35
36 public static final String TEST_URL = ITUtil.PORTAL + "?channelTitle=Person&channelUrl=" + ITUtil.getBaseUrlString() +
37 "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.rice.kim.api.identity.Person&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.testCreateNewPerson(docId, personName);
51
52
53 selectTopFrame();
54 super.open(ITUtil.getBaseUrlString()+TEST_URL);
55 selectFrame("iframeportlet");
56 params=super.testLookUpPerson(params.get(0), params.get(1));
57
58
59 super.testVerifyPerson(params.get(0), params.get(1));
60
61 }
62
63 }