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