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 */ 016package edu.sampleu.admin; 017 018import org.kuali.rice.testtools.common.JiraAwareFailable; 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 AddingNameSpacesAftBase extends AdminTmplMthdAftNavBase { 026 027 /** 028 * ITUtil.PORTAL+"?channelTitle=Namespace&channelUrl="+WebDriverUtils.getBaseUrlString()+"/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.rice.coreservice.impl.namespace.NamespaceBo&docFormKey=88888888&returnLocation="+ITUtil.PORTAL_URL+"&hideReturnLink=true"; 029 */ 030 public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL+"?channelTitle=Namespace&channelUrl="+ WebDriverUtils 031 .getBaseUrlString()+"/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.rice.coreservice.impl.namespace.NamespaceBo&docFormKey=88888888&returnLocation="+ AutomatedFunctionalTestUtils.PORTAL_URL+"&hideReturnLink=true"; 032 033 @Override 034 protected String getBookmarkUrl() { 035 return BOOKMARK_URL; 036 } 037 038 /** 039 * {@inheritDoc} 040 * Namespace 041 * @return 042 */ 043 @Override 044 protected String getLinkLocator() { 045 return "Namespace"; 046 } 047 048 public void testAddingNamespaceBookmark(JiraAwareFailable failable) throws Exception { 049 testAddingNamespace(this); 050 passed(); 051 } 052 053 public void testAddingNamespaceNav(JiraAwareFailable failable) throws Exception { 054 testAddingNamespace(this); 055 passed(); 056 } 057 058 public void testSearchEditBackNav(JiraAwareFailable failable) throws Exception { 059 testSearchEditBack(this); 060 passed(); 061 } 062 063 public void testSearchSearchBackNav(JiraAwareFailable failable) throws Exception { 064 testSearchSearchBack(this, "code", "KR-SYS"); 065 passed(); 066 } 067}