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.kuali.rice.testtools.selenium.Failable;
21 import org.kuali.rice.testtools.selenium.ITUtil;
22
23
24
25
26 public abstract class PersonAbstractSmokeTestBase extends AdminTmplMthdSTNavBase{
27
28
29
30
31
32
33 public static final String BOOKMARK_URL = ITUtil.PORTAL + "?channelTitle=Person&channelUrl="
34 + ITUtil.getBaseUrlString() + ITUtil.KNS_LOOKUP_METHOD +
35 "org.kuali.rice.kim.api.identity.Person&docFormKey=88888888&returnLocation=" +
36 ITUtil.PORTAL_URL + ITUtil.HIDE_RETURN_LINK ;
37
38 private String docId;
39 private String personName;
40
41
42
43
44
45
46 @Override
47 protected String getLinkLocator() {
48 return "Person";
49 }
50
51 public void testPersonBookmark(Failable failable) throws Exception {
52
53 selectFrame("iframeportlet");
54 waitAndCreateNew();
55 List<String> params;
56 params=testCreateNewPerson(docId, personName);
57
58
59 selectTopFrame();
60 open(ITUtil.getBaseUrlString()+BOOKMARK_URL);
61 selectFrame("iframeportlet");
62 params=testLookUpPerson(params.get(0), params.get(1));
63
64
65 testVerifyPerson(params.get(0), params.get(1));
66 passed();
67 }
68
69 public void testPersonNav(Failable failable) throws Exception {
70
71 gotoCreateNew();
72 List<String> params;
73 params=testCreateNewPerson(docId, personName);
74
75
76 selectTopFrame();
77 navigate();
78 params=testLookUpPerson(params.get(0), params.get(1));
79
80
81 testVerifyPerson(params.get(0), params.get(1));
82 passed();
83 }
84 }