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.admin.test; 017 018 import edu.samplu.common.ITUtil; 019 import org.testng.annotations.Parameters; 020 import org.testng.annotations.Test; 021 022 /** 023 * TestNG implementation of ComponentSTNGBase that navigates through the UI to the page under test. In the future 024 * the idea is to generate this class using the test methods from ComponentAbstractSmokeTestBase and following the simple pattern of 025 * <pre>super.testNavTestMethod(this);</pre> 026 * 027 * @see ComponentSTNGBase 028 * @see ComponentSTNGBkMrkGen 029 * @author Kuali Rice Team (rice.collab@kuali.org) 030 */ 031 public class ComponentSTNGNavGen extends ComponentSTNGBase { 032 033 @Override 034 public String getTestUrl() { 035 return ITUtil.PORTAL; 036 } 037 038 @Override 039 public void gotoTest() throws Exception { 040 navigtaion(); 041 } 042 043 /** 044 * @link ComponentAbstractSmokeTestBase#testComponentCreateNewCancelNav 045 * @throws Exception 046 */ 047 @Test(groups = { "all", "fast", "default", "nav" }, description = "testComponentCreateNewCancelNav") 048 @Parameters( { "seleniumHost", "seleniumPort", "os", "browser", "version", "webSite" }) 049 public void testComponentCreateNewCancelNav() throws Exception { 050 testComponentCreateNewCancelNav(this); 051 } 052 053 /** 054 * @link ComponentAbstractSmokeTestBase#testComponentParameterNav 055 * @throws Exception 056 */ 057 @Test(groups = { "all", "fast", "default", "nav" }, description = "testComponentParameterNav") 058 @Parameters( { "seleniumHost", "seleniumPort", "os", "browser", "version", "webSite" }) 059 public void testComponentParameterNav() throws Exception { 060 testComponentParameterNav(this); 061 } 062 }