@nsshunt/stsrunnerframework 1.0.92 → 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 +117 -5
- package/dist/stsrunnerframework.mjs.map +1 -1
- package/dist/stsrunnerframework.umd.js +117 -5
- 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
|
@@ -1528,9 +1528,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1528
1528
|
__privateAdd(this, _workerId, null);
|
|
1529
1529
|
__privateAdd(this, _logMessage, (fn, message) => {
|
|
1530
1530
|
if (__privateGet(this, _options)) {
|
|
1531
|
-
fn(`pid: [${process.pid}] Worker ID: [${__privateGet(this, _workerId)}]
|
|
1531
|
+
fn(`pid: [${process.pid}] WorkerInstance: Worker ID: [${__privateGet(this, _workerId)}] Log: [${message}]`);
|
|
1532
1532
|
} else {
|
|
1533
|
-
fn(`pid: [${process.pid}] WorkerInstance: [${message}]`);
|
|
1533
|
+
fn(`pid: [${process.pid}] WorkerInstance: Log: [${message}]`);
|
|
1534
1534
|
}
|
|
1535
1535
|
});
|
|
1536
1536
|
__privateAdd(this, _debug, (message) => __privateGet(this, _logMessage).call(this, stsutils.defaultLogger.debug, message));
|
|
@@ -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);
|
|
@@ -2230,7 +2230,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2230
2230
|
__privateAdd(this, _id);
|
|
2231
2231
|
__privateAdd(this, _messages, {});
|
|
2232
2232
|
__privateAdd(this, _logMessage2, (fn, message) => {
|
|
2233
|
-
fn(`pid: [${process.pid}] STSWorkerManager ID: [${__privateGet(this, _id)}]
|
|
2233
|
+
fn(`pid: [${process.pid}] STSWorkerManager: ID: [${__privateGet(this, _id)}] Log: [${message}]`);
|
|
2234
2234
|
});
|
|
2235
2235
|
__privateAdd(this, _debug2, (message) => __privateGet(this, _logMessage2).call(this, stsutils.defaultLogger.debug, message));
|
|
2236
2236
|
__privateAdd(this, _error2, (error) => __privateGet(this, _logMessage2).call(this, stsutils.defaultLogger.error, error));
|
|
@@ -2835,6 +2835,118 @@ 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 void 0;
|
|
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 void 0;
|
|
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 void 0;
|
|
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 void 0;
|
|
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 void 0;
|
|
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 void 0;
|
|
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 void 0;
|
|
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
|
+
__publicField(this, "UpdateRunner", (workerId, runnerId, executionProfile) => {
|
|
2943
|
+
if (__privateGet(this, _workersEx)[workerId]) {
|
|
2944
|
+
if (__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]) {
|
|
2945
|
+
return __privateGet(this, _workersEx)[workerId].runnersEx[runnerId].UpdateOptions(executionProfile);
|
|
2946
|
+
}
|
|
2947
|
+
}
|
|
2948
|
+
return void 0;
|
|
2949
|
+
});
|
|
2838
2950
|
__privateAdd(this, _SyncRunnerData, (runnerEx, runner) => {
|
|
2839
2951
|
runnerEx.iteration = runner.iteration;
|
|
2840
2952
|
runnerEx.state = runner.state;
|