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