@nsshunt/stsrunnerframework 1.0.137 → 1.0.139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stsrunnerframework.mjs +4 -0
- package/dist/stsrunnerframework.mjs.map +1 -1
- package/dist/stsrunnerframework.umd.js +4 -0
- package/dist/stsrunnerframework.umd.js.map +1 -1
- package/package.json +1 -1
- package/types/testing/mockedWorkerTestRunner01.d.ts.map +1 -1
- package/types/testing/testCase02.d.ts +21 -0
- package/types/testing/testCase02.d.ts.map +1 -0
- package/types/testing/wmwokerProcess2.test.d.ts +2 -0
- package/types/testing/wmwokerProcess2.test.d.ts.map +1 -0
- package/types/workerInstance.d.ts.map +1 -1
|
@@ -1823,6 +1823,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1823
1823
|
const { iterations, duration, delayBetweenIterations, pauseOnComplete } = executionProfile;
|
|
1824
1824
|
if (iterations > 0) {
|
|
1825
1825
|
cont = __privateGet(this, _GetRunnerIterationById).call(this, runnerId) < iterations;
|
|
1826
|
+
if (cont === false && pauseOnComplete === true && __privateGet(this, _runners)[runnerId].runner.state === IRunnerState.paused) {
|
|
1827
|
+
cont = true;
|
|
1828
|
+
}
|
|
1826
1829
|
} else if (duration > 0) {
|
|
1827
1830
|
cont = ((/* @__PURE__ */ new Date()).getTime() - startLoop.getTime()) / 1e3 < duration;
|
|
1828
1831
|
}
|
|
@@ -1850,6 +1853,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1850
1853
|
if (pauseOnComplete === true) {
|
|
1851
1854
|
await ((_b = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _b.PauseRunner());
|
|
1852
1855
|
__privateGet(this, _UpdateRunnerStateById).call(this, runnerId, IRunnerState.paused);
|
|
1856
|
+
ExecuteLoop();
|
|
1853
1857
|
} else {
|
|
1854
1858
|
await ((_c = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _c.Completed());
|
|
1855
1859
|
__privateGet(this, _UpdateRunnerStateById).call(this, runnerId, IRunnerState.completed);
|