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          gotoMenuLinkLocator();        
50          testReviewAllServicesAndWSDL();
51          passed();
52      }    
53      
54      public void testReviewAllServicesAndWSDL() throws Exception
55      {
56          Thread.sleep(10000);
57          selectFrameIframePortlet();
58          assertTextPresent("{http://rice.kuali.org/core/v2_0}componentService");
59          waitAndClickByXpath("//input[@value='Refresh Service Registry']");
60          Thread.sleep(10000);
61          assertTextPresent("{http://rice.kuali.org/core/v2_0}componentService");
62          waitAndClickByXpath("//a[contains(text(),'http://env1.rice.kuali.org/remoting/soap/core/v2_0/componentService')]");
63      }
64  }