View Javadoc
1   /**
2    * Copyright 2005-2016 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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   * @author Kuali Rice Team (rice.collab@kuali.org)
24   */
25  public abstract class ReviewAllServicesAndWsdlAft extends AdminTmplMthdAftNavBase {
26  
27      /**
28       * ITUtil.PORTAL+"?channelTitle=Service%20Registry&channelUrl="+WebDriverUtils.getBaseUrlString()+
29       *  "/ksb/ServiceRegistry.do";
30       */
31      public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL+"?channelTitle=Service%20Registry&channelUrl="+ WebDriverUtils
32              .getBaseUrlString()+"/ksb/ServiceRegistry.do";
33      
34      /**
35       * {@inheritDoc}
36       * Service Registry
37       * @return
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  }