001/** 002 * Copyright 2005-2016 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 018/** 019 * Copyright 2005-2014 The Kuali Foundation 020 * 021 * Licensed under the Educational Community License, Version 2.0 (the "License"); 022 * you may not use this file except in compliance with the License. 023 * You may obtain a copy of the License at 024 * 025 * http://www.opensource.org/licenses/ecl2.php 026 * 027 * Unless required by applicable law or agreed to in writing, software 028 * distributed under the License is distributed on an "AS IS" BASIS, 029 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 030 * See the License for the specific language governing permissions and 031 * limitations under the License. 032 */ 033 034import org.junit.Test; 035import org.kuali.rice.testtools.selenium.AutomatedFunctionalTestUtils; 036import org.openqa.selenium.By; 037 038/** 039 * Test name does not end in Aft so this test isn't normally run, created to provide load test data 040 * 041 * @author Kuali Rice Team (rice.collab@kuali.org) 042 */ 043public class ConfigComponentActionListLoadTestData extends ConfigComponentActionListAftBase { 044 045 @Override 046 public String getBookmarkUrl() { 047 return BOOKMARK_URL; 048 } 049 050 @Test 051 public void testCreate1000ApprovalComponentBookmark() throws InterruptedException { 052// String[] users = {"eric", "fran", "frank", "erin", "fred", "earl", "doug", "edna"}; 053 String[] users = {"eric"}; 054 for (String user: users) { 055 for (int i = 0; i < 1000; i++) { 056 System.out.println(user + " " + i); 057 testCreateActionRequestPerson(new String[][]{{user, "A"}}); 058 uniqueString = AutomatedFunctionalTestUtils.createUniqueDtsPlusTwoRandomCharsNot9Digits(); 059 open(getBaseUrlString() + getTestUrl()); 060 waitForElementPresent(By.xpath("//iframe")); 061 } 062 } 063 } 064}