1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.admin.workflow;
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 RuleTemplateAft extends WebDriverLegacyITBase {
27
28
29
30
31
32
33 public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL+"?channelTitle=Rule%20Template&channelUrl="+ WebDriverUtils
34 .getBaseUrlString()+"/kr/lookup.do?businessObjectClassName=org.kuali.rice.kew.rule.bo.RuleTemplateBo&docFormKey=88888888&returnLocation="
35 + AutomatedFunctionalTestUtils.PORTAL_URL+ AutomatedFunctionalTestUtils.HIDE_RETURN_LINK;
36
37 @Override
38 protected String getBookmarkUrl() {
39 return BOOKMARK_URL;
40 }
41
42 @Override
43 protected void navigate() throws InterruptedException {
44 waitAndClickAdministration();
45 waitAndClickByLinkText("Rule Template");
46 }
47
48 protected void testRuleTemplate() throws Exception {
49 selectFrameIframePortlet();
50 waitAndTypeByName("name","a");
51 waitAndClickSearch();
52 Thread.sleep(2000);
53 assertTextPresent("No values match this search.");
54 }
55
56 @Test
57 public void testRuleTemplateBookmark() throws Exception {
58 testRuleTemplate();
59 passed();
60 }
61
62 @Test
63 public void testRuleTemplateNav() throws Exception {
64 testRuleTemplate();
65 passed();
66 }
67 }