1 package edu.sampleu.admin;
2
3 /**
4 * Copyright 2005-2014 The Kuali Foundation
5 *
6 * Licensed under the Educational Community License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.opensource.org/licenses/ecl2.php
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19 import org.junit.Test;
20 import org.kuali.rice.testtools.selenium.AutomatedFunctionalTestUtils;
21 import org.openqa.selenium.By;
22
23 /**
24 * Test name does not end in Aft so this test isn't normally run, created to provide load test data
25 *
26 * @author Kuali Rice Team (rice.collab@kuali.org)
27 */
28 public class ConfigComponentActionListLoadTestData extends ConfigComponentActionListAftBase {
29
30 @Override
31 public String getBookmarkUrl() {
32 return BOOKMARK_URL;
33 }
34
35 @Test
36 public void testCreate1000ApprovalComponentBookmark() throws InterruptedException {
37 // String[] users = {"eric", "fran", "frank", "erin", "fred", "earl", "doug", "edna"};
38 String[] users = {"eric"};
39 for (String user: users) {
40 for (int i = 0; i < 1000; i++) {
41 System.out.println(user + " " + i);
42 testCreateActionRequestPerson(new String[][]{{user, "A"}});
43 uniqueString = AutomatedFunctionalTestUtils.createUniqueDtsPlusTwoRandomCharsNot9Digits();
44 open(getBaseUrlString() + getTestUrl());
45 waitForElementPresent(By.xpath("//iframe"));
46 }
47 }
48 }
49 }