1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.kim.api.identity;
17
18 import edu.sampleu.admin.AdminTmplMthdAftNavBase;
19 import org.kuali.rice.testtools.common.JiraAwareFailable;
20 import org.kuali.rice.testtools.selenium.AutomatedFunctionalTestUtils;
21 import org.kuali.rice.testtools.selenium.WebDriverUtils;
22
23 import java.util.List;
24
25
26
27
28 public abstract class PersonAftBase extends AdminTmplMthdAftNavBase {
29
30
31
32
33
34
35 public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL + "?channelTitle=Person&channelUrl="
36 + WebDriverUtils.getBaseUrlString() + AutomatedFunctionalTestUtils.KNS_LOOKUP_METHOD +
37 "org.kuali.rice.kim.api.identity.Person&docFormKey=88888888&returnLocation=" +
38 AutomatedFunctionalTestUtils.PORTAL_URL + AutomatedFunctionalTestUtils.HIDE_RETURN_LINK ;
39
40 private String docId;
41 private String personName;
42
43 @Override
44 protected String getBookmarkUrl() {
45 return BOOKMARK_URL;
46 }
47
48
49
50
51
52
53 @Override
54 protected String getLinkLocator() {
55 return "Person";
56 }
57
58 public void testPersonBookmark(JiraAwareFailable failable) throws Exception {
59
60 selectFrame("iframeportlet");
61 waitAndCreateNew();
62 List<String> params;
63 params=testCreateNewPerson(docId, personName);
64
65
66 selectTopFrame();
67 open(WebDriverUtils.getBaseUrlString()+BOOKMARK_URL);
68 selectFrame("iframeportlet");
69 params=testLookUpPerson(params.get(0), params.get(1));
70
71
72 testVerifyPerson(params.get(0), params.get(1));
73 passed();
74 }
75
76 public void testPersonNav(JiraAwareFailable failable) throws Exception {
77
78 gotoCreateNew();
79 List<String> params;
80 params=testCreateNewPerson(docId, personName);
81
82
83 selectTopFrame();
84 navigate();
85 params=testLookUpPerson(params.get(0), params.get(1));
86
87
88 testVerifyPerson(params.get(0), params.get(1));
89 passed();
90 }
91 }