001 /**
002 * Copyright 2005-2013 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.samplu.travel.test;
017
018 import edu.samplu.common.Failable;
019 import edu.samplu.common.ITUtil;
020 import edu.samplu.common.WebDriverLegacyITBase;
021
022 /**
023 * Tests the Component section in Rice.
024 *
025 * @author Kuali Rice Team (rice.collab@kuali.org)
026 */
027 public abstract class FiscalOfficerInfoMaintenanceAbstractSmokeTestBase extends WebDriverLegacyITBase {
028
029 /**
030 * ITUtil.PORTAL
031 * + "?channelTitle=FiscalOfficerInfo%20Maintenance%20(New)&channelUrl="
032 * + ITUtil.getBaseUrlString()
033 * + "/kr-krad/maintenance?methodToCall=start&dataObjectClassName=edu.sampleu.travel.dto.FiscalOfficerInfo&returnLocation="
034 * + ITUtil.PORTAL_URL + ITUtil.HIDE_RETURN_LINK
035 */
036 public static final String BOOKMARK_URL = ITUtil.PORTAL
037 + "?channelTitle=FiscalOfficerInfo%20Maintenance%20(New)&channelUrl="
038 + ITUtil.getBaseUrlString()
039 + "/kr-krad/maintenance?methodToCall=start&dataObjectClassName=edu.sampleu.travel.dto.FiscalOfficerInfo&returnLocation="
040 + ITUtil.PORTAL_URL + ITUtil.HIDE_RETURN_LINK;
041
042 protected void bookmark() {
043 open(ITUtil.getBaseUrlString() + BOOKMARK_URL);
044 }
045
046 /**
047 * Nav tests start at {@link edu.samplu.common.ITUtil#PORTAL}.
048 * Bookmark Tests should override and return {@link edu.samplu.travel.krad.test.CollectionTotallingAbstractSmokeTestBase#BOOKMARK_URL}
049 * {@inheritDoc}
050 * @return
051 */
052 @Override
053 public String getTestUrl() {
054 return ITUtil.PORTAL;
055 }
056
057 protected void navigation() throws InterruptedException {
058 waitAndClickKRAD();
059 waitAndClickByXpath(FISCAL_OFFICER_INFO_MAINTENANCE_NEW_XPATH);
060 }
061
062 protected void testFiscalOfficerInfoMaintenanceNav(Failable failable) throws Exception {
063 navigation();
064 testFiscalOfficerInfoMaintenanceNew();
065 passed();
066 }
067
068 protected void testFiscalOfficerInfoMaintenanceBookmark(Failable failable) throws Exception {
069 testFiscalOfficerInfoMaintenanceNew();
070 passed();
071 }
072 }