1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.admin;
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 public class ConfigPessimisticLockAft extends WebDriverLegacyITBase {
27
28
29
30
31
32
33 public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL+"?channelTitle=Pessimistic%20Lock&channelUrl="+ WebDriverUtils
34 .getBaseUrlString()+"/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.rice.krad.document.authorization.PessimisticLock&returnLocation="+
35 AutomatedFunctionalTestUtils.PORTAL_URL+ AutomatedFunctionalTestUtils.HIDE_RETURN_LINK+"&docFormKey=88888888";
36
37 @Override
38 public String getBookmarkUrl() {
39 return BOOKMARK_URL;
40 }
41
42 @Override
43 protected void navigate() throws Exception {
44 waitAndClickAdministration();
45 waitAndClickByLinkText("Pessimistic Lock");
46 }
47
48 @Test
49 public void testPessimisticLockBookmark() throws Exception {
50 testPessimisticLock();
51 passed();
52 }
53
54 @Test
55 public void testPessimisticLockNav() throws Exception {
56 testPessimisticLock();
57 passed();
58 }
59
60 protected void testPessimisticLock() throws InterruptedException {
61 selectFrameIframePortlet();
62 waitAndClickByXpath("//input[@name='methodToCall.search' and @alt='search']");
63 waitForTextPresent("No values match this search.");
64 }
65 }