View Javadoc
1   /**
2    * Copyright 2005-2013 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.samplu.admin.test;
17  
18  import edu.samplu.common.Failable;
19  import edu.samplu.common.ITUtil;
20  
21  /**
22   * @author Kuali Rice Team (rice.collab@kuali.org)
23   */
24  public abstract class ReviewAllServicesAndWSDLAbstractSmokeTestBase extends AdminTmplMthdSTNavBase{
25  
26      /**
27       * ITUtil.PORTAL+"?channelTitle=Service%20Registry&channelUrl="+ITUtil.getBaseUrlString()+
28       *  "/ksb/ServiceRegistry.do";
29       */
30      public static final String BOOKMARK_URL = ITUtil.PORTAL+"?channelTitle=Service%20Registry&channelUrl="+ITUtil.getBaseUrlString()+
31              "/ksb/ServiceRegistry.do";
32      
33      /**
34       * {@inheritDoc}
35       * Service Registry
36       * @return
37       */
38      @Override
39      protected String getLinkLocator() {
40          return "Service Registry";
41      }
42  
43      public void testReviewAllServicesAndWSDLBookmark(Failable failable) throws Exception {
44          testReviewAllServicesAndWSDL();
45          passed();
46      }
47  
48      public void testReviewAllServicesAndWSDLNav(Failable failable) throws Exception {
49          testReviewAllServicesAndWSDL();
50          passed();
51      }    
52      
53      public void testReviewAllServicesAndWSDL() throws Exception
54      {
55          Thread.sleep(10000);
56          selectFrameIframePortlet();
57          assertTextPresent("{http://rice.kuali.org/core/v2_0}componentService");
58          waitAndClickByXpath("//input[@value='Refresh Service Registry']");
59          Thread.sleep(10000);
60          assertTextPresent("{http://rice.kuali.org/core/v2_0}componentService");
61          waitAndClickByXpath("//a[contains(text(),'/remoting/soap/core/v2_0/componentService')]");
62      }
63  }