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.WebDriverUtils;
21
22
23
24
25 public abstract class ReviewAllServicesAndWsdlAft extends AdminTmplMthdAftNavBase {
26
27
28
29
30
31 public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL+"?channelTitle=Service%20Registry&channelUrl="+ WebDriverUtils
32 .getBaseUrlString()+"/ksb/ServiceRegistry.do";
33
34
35
36
37
38
39 @Override
40 protected String getLinkLocator() {
41 return "Service Registry";
42 }
43
44 public void testReviewAllServicesAndWsdl() throws Exception {
45 Thread.sleep(10000);
46 selectFrameIframePortlet();
47 assertTextPresent("{http://rice.kuali.org/core/v2_0}componentService");
48 waitAndClickByXpath("//input[@value='Refresh Service Registry']");
49 Thread.sleep(10000);
50 assertTextPresent("{http://rice.kuali.org/core/v2_0}componentService");
51 waitAndClickByXpath("//a[contains(text(),'/remoting/soap/core/v2_0/componentService')]");
52 }
53
54 @Test
55 public void testReviewAllServicesAndWsdlBookmark() throws Exception {
56 testReviewAllServicesAndWsdl();
57 }
58
59 @Test
60 public void testReviewAllServicesAndWsdlNav() throws Exception {
61 testReviewAllServicesAndWsdl();
62 }
63 }