thread.setThreadNum(n); tg.scheduleThread(thread, now); row.add(thread.getStartTime() - 1, 0); thread.setThreadNum(n); tg.scheduleThread(thread, now); row.add(thread.getEndTime() - 1, 0);
thread.setThreadNum(n); tg.scheduleThread(thread, now); row.add(thread.getStartTime() - 1, 0); thread.setThreadNum(n); tg.scheduleThread(thread, now); row.add(thread.getEndTime() - 1, 0);
log.debug("Num Threads: " + numThreads); for (int n = 0; n < numThreads; n++) { thread.setThreadNum(n); thread.setThreadName(Integer.toString(n)); tg.scheduleThread(thread, now); thread.setThreadNum(n); thread.setThreadName(Integer.toString(n)); tg.scheduleThread(thread, now);
log.debug("Num Threads: " + numThreads); for (int n = 0; n < numThreads; n++) { thread.setThreadNum(n); thread.setThreadName(Integer.toString(n)); tg.scheduleThread(thread, now); thread.setThreadNum(n); thread.setThreadName(Integer.toString(n)); tg.scheduleThread(thread, now);
thread.setThreadNum(n); tg.scheduleThread(thread, now); row.add(thread.getStartTime() - 1, 0); thread.setThreadNum(n); tg.scheduleThread(thread, now); row.add(thread.getEndTime() - 1, 0);
log.debug("Num Threads: " + numThreads); for (int n = 0; n < numThreads; n++) { thread.setThreadNum(n); thread.setThreadName(Integer.toString(n)); tg.scheduleThread(thread, now); thread.setThreadNum(n); thread.setThreadName(Integer.toString(n)); tg.scheduleThread(thread, now);
String groupName = getName(); final JMeterThread jmeterThread = new JMeterThread(cloneTree(threadGroupTree), this, notifier); jmeterThread.setThreadNum(threadNumber); jmeterThread.setThreadGroup(this); jmeterThread.setInitialContext(context);
private JMeterThread makeThread(int groupCount, ListenerNotifier notifier, ListedHashTree threadGroupTree, StandardJMeterEngine engine, int i, JMeterContext context) { // N.B. Context needs to be fetched in the correct thread boolean onErrorStopTest = getOnErrorStopTest(); boolean onErrorStopTestNow = getOnErrorStopTestNow(); boolean onErrorStopThread = getOnErrorStopThread(); boolean onErrorStartNextLoop = getOnErrorStartNextLoop(); String groupName = getName(); final JMeterThread jmeterThread = new JMeterThread(cloneTree(threadGroupTree), this, notifier); jmeterThread.setThreadNum(i); jmeterThread.setThreadGroup(this); jmeterThread.setInitialContext(context); final String threadName = groupName + " " + (groupCount) + "-" + (i + 1); jmeterThread.setThreadName(threadName); jmeterThread.setEngine(engine); jmeterThread.setOnErrorStopTest(onErrorStopTest); jmeterThread.setOnErrorStopTestNow(onErrorStopTestNow); jmeterThread.setOnErrorStopThread(onErrorStopThread); jmeterThread.setOnErrorStartNextLoop(onErrorStartNextLoop); return jmeterThread; }
private JMeterThread makeThread(int groupCount, ListenerNotifier notifier, ListedHashTree threadGroupTree, StandardJMeterEngine engine, int i, JMeterContext context) { // N.B. Context needs to be fetched in the correct thread boolean onErrorStopTest = getOnErrorStopTest(); boolean onErrorStopTestNow = getOnErrorStopTestNow(); boolean onErrorStopThread = getOnErrorStopThread(); boolean onErrorStartNextLoop = getOnErrorStartNextLoop(); String groupName = getName(); final JMeterThread jmeterThread = new JMeterThread(cloneTree(threadGroupTree), this, notifier); jmeterThread.setThreadNum(i); jmeterThread.setThreadGroup(this); jmeterThread.setInitialContext(context); final String threadName = groupName + " " + (groupCount) + "-" + (i + 1); jmeterThread.setThreadName(threadName); jmeterThread.setEngine(engine); jmeterThread.setOnErrorStopTest(onErrorStopTest); jmeterThread.setOnErrorStopTestNow(onErrorStopTestNow); jmeterThread.setOnErrorStopThread(onErrorStopThread); jmeterThread.setOnErrorStartNextLoop(onErrorStartNextLoop); return jmeterThread; }
private JMeterThread makeThread(int groupCount, ListenerNotifier notifier, ListedHashTree threadGroupTree, StandardJMeterEngine engine, int i, JMeterContext context) { // N.B. Context needs to be fetched in the correct thread boolean onErrorStopTest = getOnErrorStopTest(); boolean onErrorStopTestNow = getOnErrorStopTestNow(); boolean onErrorStopThread = getOnErrorStopThread(); boolean onErrorStartNextLoop = getOnErrorStartNextLoop(); String groupName = getName(); final JMeterThread jmeterThread = new JMeterThread(cloneTree(threadGroupTree), this, notifier); jmeterThread.setThreadNum(i); jmeterThread.setThreadGroup(this); jmeterThread.setInitialContext(context); final String threadName = groupName + " " + (groupCount) + "-" + (i + 1); jmeterThread.setThreadName(threadName); jmeterThread.setEngine(engine); jmeterThread.setOnErrorStopTest(onErrorStopTest); jmeterThread.setOnErrorStopTestNow(onErrorStopTestNow); jmeterThread.setOnErrorStopThread(onErrorStopThread); jmeterThread.setOnErrorStartNextLoop(onErrorStartNextLoop); return jmeterThread; }