View Javadoc
1   /**
2    * Copyright 2005-2015 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.sampleu.travel;
17  
18  import org.kuali.rice.testtools.common.JiraAwareFailable;
19  import org.kuali.rice.testtools.selenium.AutomatedFunctionalTestUtils;
20  import org.kuali.rice.testtools.selenium.WebDriverLegacyITBase;
21  import org.kuali.rice.testtools.selenium.WebDriverUtils;
22  
23  /**
24   * Tests the Component section in Rice.
25   *
26   * @author Kuali Rice Team (rice.collab@kuali.org)
27   */
28  public abstract class FiscalOfficerInfoMaintenanceAftBase extends WebDriverLegacyITBase {
29  
30      /**
31       * ITUtil.PORTAL
32       * + "?channelTitle=FiscalOfficerInfo%20Maintenance%20(New)&channelUrl="
33       * + WebDriverUtils.getBaseUrlString()
34       * + "/kr-krad/maintenance?methodToCall=start&dataObjectClassName=edu.sampleu.travel.dto.FiscalOfficerInfo&returnLocation="
35       * + ITUtil.PORTAL_URL + ITUtil.HIDE_RETURN_LINK
36       */
37      public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL
38              + "?channelTitle=FiscalOfficerInfo%20Maintenance%20(New)&channelUrl="
39              + WebDriverUtils.getBaseUrlString()
40              + "/kr-krad/maintenance?methodToCall=start&dataObjectClassName=edu.sampleu.travel.dto.FiscalOfficerInfo&returnLocation="
41              + AutomatedFunctionalTestUtils.PORTAL_URL + AutomatedFunctionalTestUtils.HIDE_RETURN_LINK;
42  
43      @Override
44      protected String getBookmarkUrl() {
45          return BOOKMARK_URL;
46      }
47  
48      protected void navigation() throws InterruptedException {
49          waitAndClickKRAD();
50          waitAndClickByXpath(FISCAL_OFFICER_INFO_MAINTENANCE_NEW_XPATH);
51      }
52  
53      protected void testFiscalOfficerInfoMaintenanceNav(JiraAwareFailable failable) throws Exception {
54          navigation();
55          testFiscalOfficerInfoMaintenanceNew(); 
56          passed();
57      }
58  
59      protected void testFiscalOfficerInfoMaintenanceBookmark(JiraAwareFailable failable) throws Exception {
60          testFiscalOfficerInfoMaintenanceNew();
61          passed();
62      }    
63  }