Package com.clarkware.junitperf

Examples of com.clarkware.junitperf.LoadTest


   protected Test test;

   public StressFilerTestSetup(Test test,
                               Filer filer,
                               int users) {
      super(new LoadTest(test, users), filer);
      this.test = test;
   }
View Full Code Here


  TestSuite suite = new TestSuite ();
  Map sas = new HashMap ();
  sas.put ("users", "1");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(factory, 1, 20, new ConstantTimer(10)),
        "Samples", sas));
  sas.put ("users", "2");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(factory, 2, 10, new ConstantTimer(10)),
        "Samples", sas));
  sas.put ("users", "4");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(factory, 4, 5, new ConstantTimer(10)),
        "Samples", sas));
  sas.put ("users", "5");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(factory, 5, 4, new ConstantTimer(10)),
        "Samples", sas));
  sas.put ("users", "10");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(factory, 10, 2, new ConstantTimer(10)),
        "Samples", sas));

  Map tt = new HashMap ();
  tt.put ("title", title);
  parentSuite.addTest (new NamedTestGroup(suite, "Test", tt));
View Full Code Here

     */
    public static Test suite() {
        TestSuite suite = new TestSuite();
     suite.addTest(new MassiveProcCreation("importProcessDefinitions"));
     suite.addTest
         (new LoadTest
          (new MassiveProcCreation("createProcess"),
           5, 20000, new ConstantTimer(10)));
        return new EJBClientTest (plc, suite);
    }
View Full Code Here

  TestSuite suite = new TestSuite ();
  Map sas = new HashMap ();
  sas.put ("users", new Integer(USERS));
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, USERS, ITERATIONS,
         new ConstantTimer(DELAYTIME)),
        "Samples", sas));
      
  Map tt = new HashMap ();
  tt.put ("title", title);
View Full Code Here

  TestSuite suite = new TestSuite ();
  Map sas = new HashMap ();
  sas.put ("users", "1");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 1, 20, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
   
  sas.put ("users", "2");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 2, 10, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());

  sas.put ("users", "4");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 4, 5, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
 
  sas.put ("users", "5");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 5, 4, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
   
  sas.put ("users", "10");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 10, 2, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
 
  Map tt = new HashMap ();
  tt.put ("title", title);
View Full Code Here

  suite.addTest(new GenericTest("prepareForCreateProcess",
              packageID));
  suite.addTest(new GenericTest("createProcess", packageID));

  Timer timer = new ConstantTimer(delay);
  suite.addTest(new LoadTest(new GenericTest("createProcess",
               packageID),
           users, iterations, timer));
  suite.addTest(new LoadTest(new GenericTest("createAndStartProcess",
               packageID),
           users, iterations, timer));
  suite.addTest(GenericTest.cleaningSuite());
  return new EJBClientTest (plc, suite);
    }
View Full Code Here

  TestSuite suite = new TestSuite ();
  Map sas = new HashMap ();
  sas.put ("users", "1");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 1, 20, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
   
  sas.put ("users", "2");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 2, 10, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
 
  sas.put ("users", "4");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 4, 5, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
 
  sas.put ("users", "5");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 5, 4, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
   
  sas.put ("users", "10");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 10, 2, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
      
  Map tt = new HashMap ();
  tt.put ("title", title);
View Full Code Here

  public static Test suite() {
    BerkeleyDbTicketRegistryPerformanceTesta testCase = new BerkeleyDbTicketRegistryPerformanceTesta(
        "testAddGetRemove");


    return new BerkleyDbTicketRegistryTestSetup(new LoadTest(testCase,
        10));
  }
View Full Code Here

    public static Test suite() {
        BerkeleyDbTicketRegistryConcurrencyTests testCase = new BerkeleyDbTicketRegistryConcurrencyTests(
            "testBasicFunctionality");

        return new BerkleyDbTicketRegistryTestSetup(new LoadTest(testCase, 100));
    }
View Full Code Here

        int maxUsers = 50;
        int iterations = 10;
        long maxElapsedTime = 20000;

        Test testCase = new ResourceLimitingPoolMultithreadMaxTestCase( "testGetPut" );
        Test loadTest = new LoadTest( testCase, maxUsers, iterations, timer );
        Test timedTest = new TimedTest( loadTest, maxElapsedTime );
        suite.addTest( timedTest );

        TestSetup wrapper = new TestSetup( suite )
        {
View Full Code Here

TOP

Related Classes of com.clarkware.junitperf.LoadTest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.