1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.krad.reference;
17
18 import org.junit.Test;
19 import org.kuali.rice.testtools.selenium.AutomatedFunctionalTestUtils;
20 import org.kuali.rice.testtools.selenium.WebDriverLegacyITBase;
21 import org.kuali.rice.testtools.selenium.WebDriverUtils;
22
23
24
25
26
27
28 public class RoleGroupPermissionResponsibilityTypeAft extends WebDriverLegacyITBase {
29
30
31
32
33
34
35
36 public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL + "?channelTitle=Role/Group/Permission/Responsibility%20Type&channelUrl="
37 + WebDriverUtils.getBaseUrlString() + AutomatedFunctionalTestUtils.KRAD_LOOKUP_METHOD +
38 "org.kuali.rice.kim.impl.type.KimTypeBo&returnLocation="
39 + AutomatedFunctionalTestUtils.PORTAL_URL + AutomatedFunctionalTestUtils.HIDE_RETURN_LINK;
40
41 @Override
42 protected String getBookmarkUrl() {
43 return BOOKMARK_URL;
44 }
45
46 @Override
47 protected void navigate() throws InterruptedException {
48 waitAndClickKRAD();
49 waitAndClickByLinkText("Role/Group/Permission/Responsibility Type");
50 }
51
52
53 protected void testRoleGroupPermissionResponsibilityType() throws Exception {
54 selectFrameIframePortlet();
55 selectByName("lookupCriteria[namespaceCode]","KR-BUS - Service Bus");
56 waitAndClickSearchByText();
57 Thread.sleep(3000);
58 assertTextPresent("No values match this search.");
59 waitAndClickButtonByText("Clear Values");
60 waitAndClickSearchByText();
61 assertDataTableContains(new String[][]{{"KUALI"}, {"KR-NS"}});
62 waitAndTypeByName("lookupCriteria[name]","Permission");
63 waitAndClickSearchByText();
64 waitForTextNotPresent("Namespace or Component");
65 assertTextPresent("KR-IDM");
66 }
67
68 @Test
69 public void testRoleGroupPermissionResponsibilityTypeBookmark() throws Exception {
70 testRoleGroupPermissionResponsibilityType();
71 passed();
72 }
73
74 @Test
75 public void testRoleGroupPermissionResponsibilityTypeNav() throws Exception {
76 testRoleGroupPermissionResponsibilityType();
77 passed();
78 }
79 }