001 /** 002 * Copyright 2005-2011 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 017 package edu.samplu.admin.test; 018 019 import static org.junit.Assert.assertEquals; 020 021 import java.util.List; 022 023 import org.junit.Test; 024 025 import edu.samplu.common.ITUtil; 026 import edu.samplu.common.WebDriverLegacyITBase; 027 028 /** 029 * @author Kuali Rice Team (rice.collab@kuali.org) 030 */ 031 public class PersonWDIT extends WebDriverLegacyITBase { 032 033 String docId; 034 String personName; 035 036 public static final String TEST_URL = ITUtil.PORTAL + "?channelTitle=Person&channelUrl=" + ITUtil.getBaseUrlString() + 037 "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.rice.kim.api.identity.Person&docFormKey=88888888&returnLocation=" + 038 ITUtil.PORTAL_URL + "&hideReturnLink=true"; 039 040 @Override 041 public String getTestUrl() { 042 return TEST_URL; 043 } 044 @Test 045 public void testPerson() throws Exception { 046 //Create New Permission 047 selectFrame("iframeportlet"); 048 super.waitAndCreateNew(); 049 List<String> params; 050 params=super.testCreateNewPerson(docId, personName); 051 052 //LookUp Person 053 selectTopFrame(); 054 super.open(ITUtil.getBaseUrlString()+TEST_URL); 055 selectFrame("iframeportlet"); 056 params=super.testLookUpPerson(params.get(0), params.get(1)); 057 058 //Verify Person 059 super.testVerifyPerson(params.get(0), params.get(1)); 060 061 } 062 063 }