Beispiel #1
0
 private SimpleLoadRunner(PerformanceSuite.ITestProvider testProvider, int numThreads, TimeSpan runFor, TimeSpan delayBetweenTests, bool failOnError, ThreadPriority threadPriority, TimeSpan threadStartDelay, double threadStartDelayVariance, double testDelayVariance)
 {
     m_testProvider             = testProvider;
     m_numThreads               = numThreads;
     m_delayBetweenTests        = delayBetweenTests;
     m_failOnError              = failOnError;
     m_threadPriority           = threadPriority;
     m_threadStartDelay         = threadStartDelay;
     m_threadStartDelayVariance = threadStartDelayVariance;
     m_testDelayVariance        = testDelayVariance;
     m_runFor = runFor;
 }
Beispiel #2
0
            public Builder Tests(PerformanceSuite.ITestProvider testProvider)
            {
                var tests = new List <IPerformanceTest>();
                IPerformanceTest test;

                while ((test = testProvider.Next()) != null && tests.Count < m_maxNumTests)
                {
                    tests.Add(test);
                }
                m_tests = tests;
                return(this);
            }
Beispiel #3
0
 public Builder Tests(PerformanceSuite.ITestProvider testProvider)
 {
     m_testProvider = testProvider;
     return(this);
 }