001/**
002 * Copyright 2005-2016 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package edu.sampleu.admin;
017
018import org.junit.Test;
019import org.kuali.rice.testtools.selenium.AutomatedFunctionalTestUtils;
020import org.kuali.rice.testtools.selenium.WebDriverUtils;
021
022/**
023 * @author Kuali Rice Team (rice.collab@kuali.org)
024 */
025public abstract class ReviewAllServicesAndWsdlAft extends AdminTmplMthdAftNavBase {
026
027    /**
028     * ITUtil.PORTAL+"?channelTitle=Service%20Registry&channelUrl="+WebDriverUtils.getBaseUrlString()+
029     *  "/ksb/ServiceRegistry.do";
030     */
031    public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL+"?channelTitle=Service%20Registry&channelUrl="+ WebDriverUtils
032            .getBaseUrlString()+"/ksb/ServiceRegistry.do";
033    
034    /**
035     * {@inheritDoc}
036     * Service Registry
037     * @return
038     */
039    @Override
040    protected String getLinkLocator() {
041        return "Service Registry";
042    }
043
044    public void testReviewAllServicesAndWsdl() throws Exception {
045        Thread.sleep(10000);
046        selectFrameIframePortlet();
047        assertTextPresent("{http://rice.kuali.org/core/v2_0}componentService");
048        waitAndClickByXpath("//input[@value='Refresh Service Registry']");
049        Thread.sleep(10000);
050        assertTextPresent("{http://rice.kuali.org/core/v2_0}componentService");
051        waitAndClickByXpath("//a[contains(text(),'/remoting/soap/core/v2_0/componentService')]");
052    }
053
054    @Test
055    public void testReviewAllServicesAndWsdlBookmark() throws Exception {
056        testReviewAllServicesAndWsdl();
057    }
058
059    @Test
060    public void testReviewAllServicesAndWsdlNav() throws Exception {
061        testReviewAllServicesAndWsdl();
062    }
063}