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 import org.openqa.selenium.By;
23
24
25
26
27 public abstract class IdentityResponsibilityAftBase extends AdminTmplMthdAftNavBase {
28
29
30
31
32
33
34 public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL + "?channelTitle=Responsibility&channelUrl="
35 + WebDriverUtils.getBaseUrlString() + AutomatedFunctionalTestUtils.KNS_LOOKUP_METHOD +
36 "org.kuali.rice.kim.impl.responsibility.UberResponsibilityBo&docFormKey=88888888&returnLocation=" +
37 AutomatedFunctionalTestUtils.PORTAL_URL + AutomatedFunctionalTestUtils.HIDE_RETURN_LINK ;
38
39 @Override
40 protected String getBookmarkUrl() {
41 return BOOKMARK_URL;
42 }
43
44
45
46
47
48
49 @Override
50 protected String getLinkLocator() {
51 return "Responsibility";
52 }
53
54 protected void createNewEnterDetails() throws InterruptedException {
55 waitAndTypeByName("document.documentHeader.documentDescription", getDescriptionUnique());
56 selectOptionByName("document.newMaintainableObject.namespaceCode", namespaceCode);
57 jiraAwareTypeByName("document.newMaintainableObject.name", "name" + uniqueString);
58 jiraAwareTypeByName("document.newMaintainableObject.documentTypeName", "DocumentTypeDocument");
59 jiraAwareTypeByName("document.newMaintainableObject.routeNodeName", "routeNodeName" + uniqueString);
60 waitAndClick(By.name("document.newMaintainableObject.actionDetailsAtRoleMemberLevel"));
61 waitAndClick(By.name("document.newMaintainableObject.required"));
62 }
63
64 public void testIdentityResponsibilityBookmark(JiraAwareFailable failable) throws Exception {
65 testCreateNewCancel();
66 passed();
67 }
68
69 public void testIdentityResponsibilityNav(JiraAwareFailable failable) throws Exception {
70 testCreateNewCancelNav();
71 passed();
72 }
73 }