1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.admin.test;
17
18 import org.kuali.rice.testtools.selenium.Failable;
19 import org.kuali.rice.testtools.selenium.ITUtil;
20
21
22
23
24 public abstract class ClearIndividualCashesAbstractSmokeTestBase extends AdminTmplMthdSTNavBase{
25
26
27
28
29
30 public static final String BOOKMARK_URL = ITUtil.PORTAL+"?channelTitle=Cache%20Admin&channelUrl="+ITUtil.getBaseUrlString()+
31 "/kr-krad/core/admin/cache?viewId=CacheAdmin-view1&methodToCall=start";
32
33
34
35
36
37
38 @Override
39 protected String getLinkLocator() {
40 return "Cache Admin";
41 }
42
43 public void testClearIndividualCashesBookmark(Failable failable) throws Exception {
44 testClearIndividualCashes();
45 passed();
46 }
47
48 public void testClearIndividualCashesNav(Failable failable) throws Exception {
49 testClearIndividualCashes();
50 passed();
51 }
52
53 public void testClearIndividualCashes() throws Exception
54 {
55 selectFrameIframePortlet();
56 waitAndClickByXpath("//ul[@class='jstree-no-icons']/li[4]/ins");
57 waitAndClickByXpath("//ul[@class='jstree-no-icons']/li[4]/ul/li[15]/a/ins");
58 waitAndClickButtonByText("Flush");
59 Thread.sleep(10000);
60 assertTextPresent(" Cache: http://rice.kuali.org/krms/v2_0/TermSpecificationType was flushed for the CacheManager: krmsDistributedCacheManager.");
61 assertTextPresent("Cache Management");
62 }
63 }