1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.admin.test;
17
18 import edu.samplu.common.Failable;
19 import edu.samplu.common.ITUtil;
20
21
22
23
24 public abstract class ClearAllCashesAbstractSmokeTestBase 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 testClearAllCashesBookmark(Failable failable) throws Exception {
44 testClearAllCashes();
45 passed();
46 }
47
48 public void testClearAllCashesNav(Failable failable) throws Exception {
49 gotoMenuLinkLocator();
50 testClearAllCashes();
51 passed();
52 }
53
54 public void testClearAllCashes() throws Exception
55 {
56 selectFrameIframePortlet();
57 waitAndClickByXpath("//li[@id='u27_node_0_parent_root']/a/ins");
58 waitAndClickByXpath("//li[@id='u27_node_1_parent_root']/a/ins");
59 waitAndClickByXpath("//li[@id='u27_node_2_parent_root']/a/ins");
60 waitAndClickByXpath("//li[@id='u27_node_3_parent_root']/a/ins");
61 waitAndClickByXpath("//li[@id='u27_node_4_parent_root']/a/ins");
62 waitAndClickByXpath("//button[@id='u50']");
63 Thread.sleep(10000);
64 assertTextPresent("All caches were flushed for the CacheManager: coreServiceDistributedCacheManager.");
65 assertTextPresent(" Cache Management ");
66 }
67 }