1 /** 2 * Copyright 2005-2013 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.samplu.admin.test; 17 18 import edu.samplu.common.ITUtil; 19 import org.testng.annotations.Parameters; 20 import org.testng.annotations.Test; 21 22 /** 23 * TestNG implementation of ComponentSTNGBase that navigates through the UI to the page under test. In the future 24 * the idea is to generate this class using the test methods from ComponentAbstractSmokeTestBase and following the simple pattern of 25 * <pre>super.testNavTestMethod(this);</pre> 26 * 27 * @see ComponentSTNGBase 28 * @see ComponentSTNGBkMrkGen 29 * @author Kuali Rice Team (rice.collab@kuali.org) 30 */ 31 public class ComponentSTNGNavGen extends ComponentSTNGBase { 32 33 @Override 34 public String getTestUrl() { 35 return ITUtil.PORTAL; 36 } 37 38 @Override 39 public void gotoTest() throws Exception { 40 navigtaion(); 41 } 42 43 /** 44 * @link ComponentAbstractSmokeTestBase#testComponentCreateNewCancelNav 45 * @throws Exception 46 */ 47 @Test(groups = { "all", "fast", "default", "nav" }, description = "testComponentCreateNewCancelNav") 48 @Parameters( { "seleniumHost", "seleniumPort", "os", "browser", "version", "webSite" }) 49 public void testComponentCreateNewCancelNav() throws Exception { 50 testComponentCreateNewCancelNav(this); 51 } 52 53 /** 54 * @link ComponentAbstractSmokeTestBase#testComponentParameterNav 55 * @throws Exception 56 */ 57 @Test(groups = { "all", "fast", "default", "nav" }, description = "testComponentParameterNav") 58 @Parameters( { "seleniumHost", "seleniumPort", "os", "browser", "version", "webSite" }) 59 public void testComponentParameterNav() throws Exception { 60 testComponentParameterNav(this); 61 } 62 }