1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  package edu.sampleu.admin.servicebus;
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 ThreadPoolAft extends WebDriverLegacyITBase {
27  
28      
29  
30  
31  
32      public static final String BOOKMARK_URL =AutomatedFunctionalTestUtils.PORTAL+"?channelTitle=Thread%20Pool&channelUrl="+WebDriverUtils
33              .getBaseUrlString()+"/ksb/ThreadPool.do";
34  
35      @Override
36      protected String getBookmarkUrl() {
37          return BOOKMARK_URL;
38      }
39  
40      @Override
41      protected void navigate() throws InterruptedException {
42          waitAndClickAdministration();
43          waitAndClickByLinkText("Thread Pool");
44      }
45      
46      private void testThreadPool() throws Exception{
47          selectFrameIframePortlet();
48          String [] assertText={"Core Pool Size:","Maximum Pool Size:","Pool Size:","Active Count:","Largest Pool Size:",
49                  "Keep Alive Time:","Task Count:","Completed Task Count:","RouteQueue.TimeIncrement:","RouteQueue.maxRetryAttempts:"};
50          assertTextPresent(assertText);
51      }
52      
53      @Test
54      public void testThreadPoolBookmark() throws Exception {
55          testThreadPool();
56          passed();
57      }
58  
59      @Test
60      public void testThreadPoolNav() throws Exception {
61          testThreadPool();
62          passed();
63      }
64      
65  }