in lib/Utils/LoadtestConfigUtil.js [100:127]
static getAutoStopCriteria(autoStopInput) {
let autoStop;
if (autoStopInput == null) {
autoStop = null;
return autoStop;
}
if (typeof autoStopInput == "string") {
if (autoStopInput == GeneralConstants_1.autoStopDisable) {
let data = {
autoStopDisabled: true,
};
autoStop = data;
}
else {
throw new Error("Invalid value, for disabling auto stop use 'autoStop: disable'");
}
}
else {
let data = {
autoStopDisabled: false,
errorRate: autoStopInput.errorPercentage,
errorRateTimeWindowInSeconds: autoStopInput.timeWindow,
maximumVirtualUsersPerEngine: autoStopInput.maximumVirtualUsersPerEngine,
};
autoStop = data;
}
return autoStop;
}