Beispiel #1
0
 public void SetThreadGroup(AbstractThreadGroup threadgrp)
 {
     this.threadGroup = threadgrp;
 }
Beispiel #2
0
        private void StartThreadGroup(AbstractThreadGroup group, int groupCount, SearchByType<AbstractThreadGroup> searcher, LinkedList<Object> testLevelElements, ListenerNotifier notifier)
        {
            int numThreads = group.GetNumThreads();
            NetMeterContextManager.AddTotalThreads(numThreads);
            Boolean onErrorStopTest = group.GetOnErrorStopTest();
            Boolean onErrorStopTestNow = group.GetOnErrorStopTestNow();
            Boolean onErrorStopThread = group.GetOnErrorStopThread();
            Boolean onErrorStartNextLoop = group.GetOnErrorStartNextLoop();
            String groupName = group.GetName();
            log.Info("Starting " + numThreads + " threads for group " + groupName + ".");

            if (onErrorStopTest) {
                log.Info("Test will stop on error");
            } else if (onErrorStopTestNow) {
                log.Info("Test will stop abruptly on error");
            } else if (onErrorStopThread) {
                log.Info("Thread will stop on error");
            } else if (onErrorStartNextLoop) {
                log.Info("Thread will start next loop on error");
            } else {
                log.Info("Thread will continue on error");
            }
            OrderedHashTree threadGroupTree = (OrderedHashTree) searcher.GetSubTree(group);
            threadGroupTree.Put(group, testLevelElements);

            groups.Add(group);
            group.Start(groupCount, notifier, threadGroupTree, this);
        }
Beispiel #3
0
 public void SetThreadGroup(AbstractThreadGroup group)
 {
     this.threadGroup = group;
 }
Beispiel #4
0
 /**
  * Adds a feature to the AbstractThreadGroup attribute of the TestPlan object.
  *
  * @param group
  *            the feature to be added to the AbstractThreadGroup attribute
  */
 public void AddThreadGroup(AbstractThreadGroup group)
 {
     threadGroups.AddLast(group);
 }
Beispiel #5
0
 public void SetThreadGroup(AbstractThreadGroup group)
 {
     this.threadGroup = group;
 }
 public void SetThreadGroup(AbstractThreadGroup threadgrp)
 {
     this.threadGroup = threadgrp;
 }