@nsshunt/stsrunnerframework 1.0.93 → 1.0.95
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 +124 -3
- package/dist/stsrunnerframework.mjs.map +1 -1
- package/dist/stsrunnerframework.umd.js +124 -3
- 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
|
@@ -13,7 +13,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
13
13
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
14
14
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
15
15
|
|
|
16
|
-
var _collectorCollectorPort, _runners, _options, _workerId, _logMessage, _debug, _error, _warn, _processLoopExecutor, _SetMessagePort, _CreateRunnerEx2RunState, _UpdateRunnerStateById, _GetAllRunners, _CanExecuteNextIterationById, _IsCompletedById, _GetRunnerIterationById, _ResetRunnerIterationById, _IncRunnerIterationById, _GetRunnerInstanceById, _GetRunnerExecutionProfileById, _GetRunnerOptionsById, _SetRunnerOptionsById, _AddRunner, _WorkerInstance_instances, SleepImmediate_fn, _PostMessageToWorkerManagerById, _PostRunnersToWorkerManager, _StartRunner, _StopRunnerByRunnerId, _StopAllRunners, _StopRunner, _TerminateRunner, _PauseRunner, _ResumeRunner, _ResetRunner, _ExecuteRunner, _UpdateOptions, _workersEx, _options2, _STSInstrumentController, _telemetryProcessor, _archiveList, _id, _messages, _logMessage2, _debug2, _error2, _processLoopExecutor2, _SetRunnerIntoWorker, _ProcessTelemetry, _EmitWorkerEvent, _EmitRunnerEvent, _RunnerStateChange, _RemoveRunnerFromCollection, _CreateAsyncRunner, _PostMessageToWorkerUsingDefaultChannel, _PostMessageToWorker, _StartRunner2, _ResetRunner2, _ExecuteRunner2, _StopRunner2, _TerminateRunner2, _PauseRunner2, _ResumeRunner2, _UpdateOptionsRunner, _PauseWorker, _ResumeWorker, _StopWorker, _StartWorker, _ResetWorker, _ExecuteWorker, _UpdateOptionsWorker, _TerminateWorker, _BroadcastCommandToAllRunners, _HandleAllWorkers, _STSWorkerManager_instances, GetRunnersResponse_fn, _SyncRunnerData, _SyncWorkerDataFromPayload, _SyncWorkerDataFromWorker, _SyncWorkerDataFromWorkers, _PostMessageToWorkerGetRunners;
|
|
16
|
+
var _collectorCollectorPort, _runners, _options, _workerId, _logMessage, _debug, _error, _warn, _processLoopExecutor, _SetMessagePort, _CreateRunnerEx2RunState, _UpdateRunnerStateById, _GetAllRunners, _CanExecuteNextIterationById, _IsCompletedById, _GetRunnerIterationById, _ResetRunnerIterationById, _IncRunnerIterationById, _GetRunnerInstanceById, _GetRunnerExecutionProfileById, _GetRunnerOptionsById, _SetRunnerOptionsById, _AddRunner, _WorkerInstance_instances, SleepImmediate_fn, _PostMessageToWorkerManagerById, _PostRunnersToWorkerManager, _StartRunner, _StopRunnerByRunnerId, _StopAllRunners, _StopRunner, _TerminateRunner, _PauseRunner, _ResumeRunner, _ResetRunner, _ExecuteRunner, _UpdateOptions, _workersEx, _options2, _STSInstrumentController, _telemetryProcessor, _archiveList, _id, _messages, _logMessage2, _debug2, _error2, _processLoopExecutor2, _SetRunnerIntoWorker, _ProcessTelemetry, _EmitWorkerEvent, _EmitRunnerEvent, _RunnerStateChange, _RemoveRunnerFromCollection, _CreateAsyncRunner, _PostMessageToWorkerUsingDefaultChannel, _PostMessageToWorker, _StartRunner2, _ResetRunner2, _ExecuteRunner2, _StopRunner2, _TerminateRunner2, _PauseRunner2, _ResumeRunner2, _UpdateOptionsRunner, _PauseWorker, _ResumeWorker, _StopWorker, _StartWorker, _ResetWorker, _ExecuteWorker, _UpdateOptionsWorker, _TerminateWorker, _BroadcastCommandToAllRunners, _HandleAllWorkers, _ExecuteRunnerActionResultFalse, _STSWorkerManager_instances, GetRunnersResponse_fn, _SyncRunnerData, _SyncWorkerDataFromPayload, _SyncWorkerDataFromWorker, _SyncWorkerDataFromWorkers, _PostMessageToWorkerGetRunners;
|
|
17
17
|
const URI_BASE_VUEUTILS = "/";
|
|
18
18
|
const STS_RF_RES_PREFIX = "STS_R_RF_";
|
|
19
19
|
const STS_RF_RES_ENT_PREFIX = "STS_RE_RF_";
|
|
@@ -1821,7 +1821,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1821
1821
|
}
|
|
1822
1822
|
if (cont) {
|
|
1823
1823
|
if (__privateGet(this, _CanExecuteNextIterationById).call(this, runnerId)) {
|
|
1824
|
-
await ((_a2 = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _a2.Execute(
|
|
1824
|
+
await ((_a2 = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _a2.Execute());
|
|
1825
1825
|
if (!__privateGet(this, _IsCompletedById).call(this, runnerId)) {
|
|
1826
1826
|
__privateGet(this, _IncRunnerIterationById).call(this, runnerId);
|
|
1827
1827
|
}
|
|
@@ -1938,7 +1938,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1938
1938
|
const runnerId = testRunnerTelemetryPayload.runner.id;
|
|
1939
1939
|
const currentIteration = __privateGet(this, _GetRunnerIterationById).call(this, runnerId);
|
|
1940
1940
|
__privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runnerId}]`)} ExecuteRunner(${currentIteration})`);
|
|
1941
|
-
await ((_a = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _a.Execute(
|
|
1941
|
+
await ((_a = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _a.Execute());
|
|
1942
1942
|
const newIteration = __privateGet(this, _IncRunnerIterationById).call(this, runnerId);
|
|
1943
1943
|
__privateGet(this, _debug).call(this, `${chalk.magenta(` --> runner: [${runnerId}]`)} Next iteration number: [${newIteration}] for next Execute or Resume.`);
|
|
1944
1944
|
await __privateGet(this, _UpdateRunnerStateById).call(this, runnerId, IRunnerState.paused);
|
|
@@ -2835,6 +2835,126 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2835
2835
|
__publicField(this, "UpdateAllWorkers", (options) => {
|
|
2836
2836
|
return __privateGet(this, _HandleAllWorkers).call(this, "UpdateOptions", options);
|
|
2837
2837
|
});
|
|
2838
|
+
__publicField(this, "StopAllRunners", (workerId) => {
|
|
2839
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2840
|
+
return __privateGet(this, _workersEx)[workerId].Stop();
|
|
2841
|
+
}
|
|
2842
|
+
return [];
|
|
2843
|
+
});
|
|
2844
|
+
__publicField(this, "StopRunner", (workerId, runnerId) => {
|
|
2845
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2846
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2847
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].Stop();
|
|
2848
|
+
}
|
|
2849
|
+
}
|
|
2850
|
+
return __privateGet(this, _ExecuteRunnerActionResultFalse).call(this, workerId, runnerId);
|
|
2851
|
+
});
|
|
2852
|
+
__publicField(this, "StartAllRunners", (workerId) => {
|
|
2853
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2854
|
+
return __privateGet(this, _workersEx)[workerId].Start();
|
|
2855
|
+
}
|
|
2856
|
+
return [];
|
|
2857
|
+
});
|
|
2858
|
+
__publicField(this, "StartRunner", (workerId, runnerId) => {
|
|
2859
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2860
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2861
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].Start();
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
return __privateGet(this, _ExecuteRunnerActionResultFalse).call(this, workerId, runnerId);
|
|
2865
|
+
});
|
|
2866
|
+
__publicField(this, "PauseAllRunners", (workerId) => {
|
|
2867
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2868
|
+
return __privateGet(this, _workersEx)[workerId].Pause();
|
|
2869
|
+
}
|
|
2870
|
+
return [];
|
|
2871
|
+
});
|
|
2872
|
+
__publicField(this, "PauseRunner", (workerId, runnerId) => {
|
|
2873
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2874
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2875
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].Pause();
|
|
2876
|
+
}
|
|
2877
|
+
}
|
|
2878
|
+
return __privateGet(this, _ExecuteRunnerActionResultFalse).call(this, workerId, runnerId);
|
|
2879
|
+
});
|
|
2880
|
+
__publicField(this, "ResumeAllRunners", (workerId) => {
|
|
2881
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2882
|
+
return __privateGet(this, _workersEx)[workerId].Resume();
|
|
2883
|
+
}
|
|
2884
|
+
return [];
|
|
2885
|
+
});
|
|
2886
|
+
__publicField(this, "ResumeRunner", (workerId, runnerId) => {
|
|
2887
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2888
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2889
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].Resume();
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
return __privateGet(this, _ExecuteRunnerActionResultFalse).call(this, workerId, runnerId);
|
|
2893
|
+
});
|
|
2894
|
+
__publicField(this, "TerminateAllRunners", (workerId) => {
|
|
2895
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2896
|
+
return __privateGet(this, _workersEx)[workerId].Terminate();
|
|
2897
|
+
}
|
|
2898
|
+
return [];
|
|
2899
|
+
});
|
|
2900
|
+
__publicField(this, "TerminateRunner", (workerId, runnerId) => {
|
|
2901
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2902
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2903
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].Terminate();
|
|
2904
|
+
}
|
|
2905
|
+
}
|
|
2906
|
+
return __privateGet(this, _ExecuteRunnerActionResultFalse).call(this, workerId, runnerId);
|
|
2907
|
+
});
|
|
2908
|
+
__publicField(this, "ResetAllRunners", (workerId) => {
|
|
2909
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2910
|
+
return __privateGet(this, _workersEx)[workerId].Reset();
|
|
2911
|
+
}
|
|
2912
|
+
return [];
|
|
2913
|
+
});
|
|
2914
|
+
__publicField(this, "ResetRunner", (workerId, runnerId) => {
|
|
2915
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2916
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2917
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].Reset();
|
|
2918
|
+
}
|
|
2919
|
+
}
|
|
2920
|
+
return __privateGet(this, _ExecuteRunnerActionResultFalse).call(this, workerId, runnerId);
|
|
2921
|
+
});
|
|
2922
|
+
__publicField(this, "ExecuteAllRunners", (workerId) => {
|
|
2923
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2924
|
+
return __privateGet(this, _workersEx)[workerId].Execute();
|
|
2925
|
+
}
|
|
2926
|
+
return [];
|
|
2927
|
+
});
|
|
2928
|
+
__publicField(this, "ExecuteRunner", (workerId, runnerId) => {
|
|
2929
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2930
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2931
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].Execute();
|
|
2932
|
+
}
|
|
2933
|
+
}
|
|
2934
|
+
return __privateGet(this, _ExecuteRunnerActionResultFalse).call(this, workerId, runnerId);
|
|
2935
|
+
});
|
|
2936
|
+
__publicField(this, "UpdateAllRunners", (workerId, executionProfile) => {
|
|
2937
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2938
|
+
return __privateGet(this, _workersEx)[workerId].UpdateOptions(executionProfile);
|
|
2939
|
+
}
|
|
2940
|
+
return [];
|
|
2941
|
+
});
|
|
2942
|
+
__privateAdd(this, _ExecuteRunnerActionResultFalse, (workerId, runnerId) => {
|
|
2943
|
+
return {
|
|
2944
|
+
workerManagerId: __privateGet(this, _id),
|
|
2945
|
+
workerId,
|
|
2946
|
+
runnerId,
|
|
2947
|
+
result: false
|
|
2948
|
+
};
|
|
2949
|
+
});
|
|
2950
|
+
__publicField(this, "UpdateRunner", (workerId, runnerId, executionProfile) => {
|
|
2951
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2952
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2953
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].UpdateOptions(executionProfile);
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
return __privateGet(this, _ExecuteRunnerActionResultFalse).call(this, workerId, runnerId);
|
|
2957
|
+
});
|
|
2838
2958
|
__privateAdd(this, _SyncRunnerData, (runnerEx, runner) => {
|
|
2839
2959
|
runnerEx.iteration = runner.iteration;
|
|
2840
2960
|
runnerEx.state = runner.state;
|
|
@@ -2976,6 +3096,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2976
3096
|
_TerminateWorker = new WeakMap();
|
|
2977
3097
|
_BroadcastCommandToAllRunners = new WeakMap();
|
|
2978
3098
|
_HandleAllWorkers = new WeakMap();
|
|
3099
|
+
_ExecuteRunnerActionResultFalse = new WeakMap();
|
|
2979
3100
|
_STSWorkerManager_instances = new WeakSet();
|
|
2980
3101
|
//GetWorkersEx = async (messageId: string, workerEx: IWorkerEx): Promise<IWorkers> => {
|
|
2981
3102
|
//const retVal2 = await this.#PostMessageToWorkerGetRunners(workerEx, eIWMessageCommands.GetRunners);
|