throw new JMeterStopTestException("Keystore Config error : Alias start index must be lower than Alias end index");
log.info("Stopping Test: {}", e.toString());
group.start(groupCount, notifier, threadGroupTree, this); } catch (JMeterStopTestException ex) { // NOSONAR Reported by log JMeterUtils.reportErrorToUser("Error occurred starting thread group :" + group.getName()+ ", error message:"+ex.getMessage() +", \r\nsee log file for more details", ex); return; // no point continuing
log.info("Stopping Test: {}", e.toString());
public void sendOnlineData(JSONObject data) throws IOException { JSONObject session = test.getSession().sendData(data); int statusCode = session.getInt("statusCode"); if (statusCode > 100) { notifier.notifyAbout("Test was stopped through Web UI: " + session.getString("status")); throw new JMeterStopTestException("The test was interrupted through Web UI"); } }
/** * {@inheritDoc} */ @Override public void resolveReplacementSubTree(JMeterTreeNode context) { if (selectedNode == null) { List<?> nodePathList = getNodePath(); if (nodePathList != null && !nodePathList.isEmpty()) { traverse(context, nodePathList, 1); } if(hasReplacementOccured() && selectedNode == null) { throw new JMeterStopTestException("ModuleController:" + getName() + " has no selected Controller (did you rename some element in the path to target controller?), test was shutdown as a consequence"); } } }
/** * This will schedule the time for the JMeterThread. * * @param thread JMeterThread * @param now in milliseconds */ private void scheduleThread(JMeterThread thread, long now) { if (!getScheduler()) { // if the Scheduler is not enabled return; } if (getDelay() >= 0) { // Duration is in seconds thread.setStartTime(getDelay() * 1000 + now); } else { throw new JMeterStopTestException("Invalid delay " + getDelay() + " set in Thread Group:" + getName()); } // set the endtime for the Thread if (getDuration() > 0) {// Duration is in seconds thread.setEndTime(getDuration() * 1000 + (thread.getStartTime())); } else { throw new JMeterStopTestException("Invalid duration " + getDuration() + " set in Thread Group:" + getName()); } // Enables the scheduler thread.setScheduled(true); }