001    /**
002     * Copyright 2005-2014 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     */
016    package edu.sampleu.travel;
017    
018    import org.kuali.rice.testtools.common.JiraAwareFailable;
019    import org.kuali.rice.testtools.selenium.AutomatedFunctionalTestUtils;
020    import org.kuali.rice.testtools.selenium.WebDriverLegacyITBase;
021    import org.kuali.rice.testtools.selenium.WebDriverUtils;
022    
023    /**
024     * Tests the Component section in Rice.
025     *
026     * @author Kuali Rice Team (rice.collab@kuali.org)
027     */
028    public abstract class FiscalOfficerInfoMaintenanceAftBase extends WebDriverLegacyITBase {
029    
030        /**
031         * ITUtil.PORTAL
032         * + "?channelTitle=FiscalOfficerInfo%20Maintenance%20(New)&channelUrl="
033         * + WebDriverUtils.getBaseUrlString()
034         * + "/kr-krad/maintenance?methodToCall=start&dataObjectClassName=edu.sampleu.travel.dto.FiscalOfficerInfo&returnLocation="
035         * + ITUtil.PORTAL_URL + ITUtil.HIDE_RETURN_LINK
036         */
037        public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL
038                + "?channelTitle=FiscalOfficerInfo%20Maintenance%20(New)&channelUrl="
039                + WebDriverUtils.getBaseUrlString()
040                + "/kr-krad/maintenance?methodToCall=start&dataObjectClassName=edu.sampleu.travel.dto.FiscalOfficerInfo&returnLocation="
041                + AutomatedFunctionalTestUtils.PORTAL_URL + AutomatedFunctionalTestUtils.HIDE_RETURN_LINK;
042    
043        @Override
044        protected String getBookmarkUrl() {
045            return BOOKMARK_URL;
046        }
047    
048        protected void navigation() throws InterruptedException {
049            waitAndClickKRAD();
050            waitAndClickByXpath(FISCAL_OFFICER_INFO_MAINTENANCE_NEW_XPATH);
051        }
052    
053        protected void testFiscalOfficerInfoMaintenanceNav(JiraAwareFailable failable) throws Exception {
054            navigation();
055            testFiscalOfficerInfoMaintenanceNew(); 
056            passed();
057        }
058    
059        protected void testFiscalOfficerInfoMaintenanceBookmark(JiraAwareFailable failable) throws Exception {
060            testFiscalOfficerInfoMaintenanceNew();
061            passed();
062        }    
063    }