@nsshunt/stsrunnerframework 1.0.93 → 1.0.94
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 +114 -2
- package/dist/stsrunnerframework.mjs.map +1 -1
- package/dist/stsrunnerframework.umd.js +114 -2
- package/dist/stsrunnerframework.umd.js.map +1 -1
- package/package.json +1 -1
- package/types/commonTypes.d.ts +2 -2
- package/types/commonTypes.d.ts.map +1 -1
- package/types/testing/testCase01.d.ts +1 -1
- package/types/testing/testCase01.d.ts.map +1 -1
- package/types/workerManager.d.ts +17 -1
- package/types/workerManager.d.ts.map +1 -1
|
@@ -1819,7 +1819,7 @@ class WorkerInstance {
|
|
|
1819
1819
|
}
|
|
1820
1820
|
if (cont) {
|
|
1821
1821
|
if (__privateGet(this, _CanExecuteNextIterationById).call(this, runnerId)) {
|
|
1822
|
-
await ((_a2 = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _a2.Execute(
|
|
1822
|
+
await ((_a2 = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _a2.Execute());
|
|
1823
1823
|
if (!__privateGet(this, _IsCompletedById).call(this, runnerId)) {
|
|
1824
1824
|
__privateGet(this, _IncRunnerIterationById).call(this, runnerId);
|
|
1825
1825
|
}
|
|
@@ -1936,7 +1936,7 @@ class WorkerInstance {
|
|
|
1936
1936
|
const runnerId = testRunnerTelemetryPayload.runner.id;
|
|
1937
1937
|
const currentIteration = __privateGet(this, _GetRunnerIterationById).call(this, runnerId);
|
|
1938
1938
|
__privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runnerId}]`)} ExecuteRunner(${currentIteration})`);
|
|
1939
|
-
await ((_a = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _a.Execute(
|
|
1939
|
+
await ((_a = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _a.Execute());
|
|
1940
1940
|
const newIteration = __privateGet(this, _IncRunnerIterationById).call(this, runnerId);
|
|
1941
1941
|
__privateGet(this, _debug).call(this, `${chalk.magenta(` --> runner: [${runnerId}]`)} Next iteration number: [${newIteration}] for next Execute or Resume.`);
|
|
1942
1942
|
await __privateGet(this, _UpdateRunnerStateById).call(this, runnerId, IRunnerState.paused);
|
|
@@ -2833,6 +2833,118 @@ class STSWorkerManager {
|
|
|
2833
2833
|
__publicField(this, "UpdateAllWorkers", (options) => {
|
|
2834
2834
|
return __privateGet(this, _HandleAllWorkers).call(this, "UpdateOptions", options);
|
|
2835
2835
|
});
|
|
2836
|
+
__publicField(this, "StopAllRunners", (workerId) => {
|
|
2837
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2838
|
+
return __privateGet(this, _workersEx)[workerId].Stop();
|
|
2839
|
+
}
|
|
2840
|
+
return [];
|
|
2841
|
+
});
|
|
2842
|
+
__publicField(this, "StopRunner", (workerId, runnerId) => {
|
|
2843
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2844
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2845
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].Stop();
|
|
2846
|
+
}
|
|
2847
|
+
}
|
|
2848
|
+
return void 0;
|
|
2849
|
+
});
|
|
2850
|
+
__publicField(this, "StartAllRunners", (workerId) => {
|
|
2851
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2852
|
+
return __privateGet(this, _workersEx)[workerId].Start();
|
|
2853
|
+
}
|
|
2854
|
+
return [];
|
|
2855
|
+
});
|
|
2856
|
+
__publicField(this, "StartRunner", (workerId, runnerId) => {
|
|
2857
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2858
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2859
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].Start();
|
|
2860
|
+
}
|
|
2861
|
+
}
|
|
2862
|
+
return void 0;
|
|
2863
|
+
});
|
|
2864
|
+
__publicField(this, "PauseAllRunners", (workerId) => {
|
|
2865
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2866
|
+
return __privateGet(this, _workersEx)[workerId].Pause();
|
|
2867
|
+
}
|
|
2868
|
+
return [];
|
|
2869
|
+
});
|
|
2870
|
+
__publicField(this, "PauseRunner", (workerId, runnerId) => {
|
|
2871
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2872
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2873
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].Pause();
|
|
2874
|
+
}
|
|
2875
|
+
}
|
|
2876
|
+
return void 0;
|
|
2877
|
+
});
|
|
2878
|
+
__publicField(this, "ResumeAllRunners", (workerId) => {
|
|
2879
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2880
|
+
return __privateGet(this, _workersEx)[workerId].Resume();
|
|
2881
|
+
}
|
|
2882
|
+
return [];
|
|
2883
|
+
});
|
|
2884
|
+
__publicField(this, "ResumeRunner", (workerId, runnerId) => {
|
|
2885
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2886
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2887
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].Resume();
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2890
|
+
return void 0;
|
|
2891
|
+
});
|
|
2892
|
+
__publicField(this, "TerminateAllRunners", (workerId) => {
|
|
2893
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2894
|
+
return __privateGet(this, _workersEx)[workerId].Terminate();
|
|
2895
|
+
}
|
|
2896
|
+
return [];
|
|
2897
|
+
});
|
|
2898
|
+
__publicField(this, "TerminateRunner", (workerId, runnerId) => {
|
|
2899
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2900
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2901
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].Terminate();
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2904
|
+
return void 0;
|
|
2905
|
+
});
|
|
2906
|
+
__publicField(this, "ResetAllRunners", (workerId) => {
|
|
2907
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2908
|
+
return __privateGet(this, _workersEx)[workerId].Reset();
|
|
2909
|
+
}
|
|
2910
|
+
return [];
|
|
2911
|
+
});
|
|
2912
|
+
__publicField(this, "ResetRunner", (workerId, runnerId) => {
|
|
2913
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2914
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2915
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].Reset();
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
return void 0;
|
|
2919
|
+
});
|
|
2920
|
+
__publicField(this, "ExecuteAllRunners", (workerId) => {
|
|
2921
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2922
|
+
return __privateGet(this, _workersEx)[workerId].Execute();
|
|
2923
|
+
}
|
|
2924
|
+
return [];
|
|
2925
|
+
});
|
|
2926
|
+
__publicField(this, "ExecuteRunner", (workerId, runnerId) => {
|
|
2927
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2928
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2929
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].Execute();
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2932
|
+
return void 0;
|
|
2933
|
+
});
|
|
2934
|
+
__publicField(this, "UpdateAllRunners", (workerId, executionProfile) => {
|
|
2935
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2936
|
+
return __privateGet(this, _workersEx)[workerId].UpdateOptions(executionProfile);
|
|
2937
|
+
}
|
|
2938
|
+
return [];
|
|
2939
|
+
});
|
|
2940
|
+
__publicField(this, "UpdateRunner", (workerId, runnerId, executionProfile) => {
|
|
2941
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2942
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2943
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].UpdateOptions(executionProfile);
|
|
2944
|
+
}
|
|
2945
|
+
}
|
|
2946
|
+
return void 0;
|
|
2947
|
+
});
|
|
2836
2948
|
__privateAdd(this, _SyncRunnerData, (runnerEx, runner) => {
|
|
2837
2949
|
runnerEx.iteration = runner.iteration;
|
|
2838
2950
|
runnerEx.state = runner.state;
|