@nsshunt/ststestrunner 1.0.42 → 1.0.44
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/ststestrunner.mjs
CHANGED
|
@@ -11974,11 +11974,18 @@ class FhirSocketClient {
|
|
|
11974
11974
|
if (socket && socket.connected === true) {
|
|
11975
11975
|
return;
|
|
11976
11976
|
}
|
|
11977
|
+
console.log(chalk.yellow(`FhirSocketClient:#WaitForSocketConnected(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Waiting for connection ...`));
|
|
11977
11978
|
let connected = false;
|
|
11979
|
+
let attempts = 0;
|
|
11978
11980
|
while (!connected) {
|
|
11981
|
+
attempts++;
|
|
11982
|
+
if (attempts % 10 === 0) {
|
|
11983
|
+
console.log(chalk.yellow(`FhirSocketClient:#WaitForSocketConnected(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] waiting for connection attempts: [${attempts}].`));
|
|
11984
|
+
}
|
|
11979
11985
|
const socketRetVal = __privateGet$1(this, _socketUtils).GetSocket(__privateGet$1(this, _options2).socketClientName);
|
|
11980
11986
|
if (socketRetVal && socketRetVal.connected === true) {
|
|
11981
11987
|
connected = true;
|
|
11988
|
+
console.log(chalk.yellow(`FhirSocketClient:#WaitForSocketConnected(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Connection completed after: [${attempts}] attempts.`));
|
|
11982
11989
|
break;
|
|
11983
11990
|
}
|
|
11984
11991
|
await Sleep(100);
|
|
@@ -12851,18 +12858,21 @@ class TestCaseFhirBase {
|
|
|
12851
12858
|
__publicField(this, "StopRunner", async () => {
|
|
12852
12859
|
await __privateGet(this, _OutputLogMessage2).call(this, `StopRunner [${__privateGet(this, _runner2).id}]`);
|
|
12853
12860
|
await __privateGet(this, _ForcePublishTelemetryData2).call(this);
|
|
12861
|
+
console.log(`TestCaseFhirBase:StopRunner(): Calling: [#fhirClient.Terminate()]`);
|
|
12854
12862
|
__privateGet(this, _fhirClient).Terminate();
|
|
12855
12863
|
return true;
|
|
12856
12864
|
});
|
|
12857
12865
|
__publicField(this, "TerminateRunner", async () => {
|
|
12858
12866
|
await __privateGet(this, _OutputLogMessage2).call(this, `TerminateRunner [${__privateGet(this, _runner2).id}]`);
|
|
12859
12867
|
await __privateGet(this, _ForcePublishTelemetryData2).call(this);
|
|
12868
|
+
console.log(`TestCaseFhirBase:TerminateRunner(): Calling: [#fhirClient.Terminate()]`);
|
|
12860
12869
|
__privateGet(this, _fhirClient).Terminate();
|
|
12861
12870
|
return true;
|
|
12862
12871
|
});
|
|
12863
12872
|
__publicField(this, "Completed", async () => {
|
|
12864
12873
|
await __privateGet(this, _OutputLogMessage2).call(this, `Completed [${__privateGet(this, _runner2).id}] [${JSON.stringify(__privateGet(this, _runner2).instrumentData)}]`);
|
|
12865
12874
|
await __privateGet(this, _ForcePublishTelemetryData2).call(this);
|
|
12875
|
+
console.log(`TestCaseFhirBase:Completed(): Calling: [#fhirClient.Terminate()]`);
|
|
12866
12876
|
__privateGet(this, _fhirClient).Terminate();
|
|
12867
12877
|
return true;
|
|
12868
12878
|
});
|
|
@@ -12914,6 +12924,7 @@ class TestCaseFhirBase {
|
|
|
12914
12924
|
// `https://stscore.stsmda.org:3005/nsstsfhir/`,
|
|
12915
12925
|
socketIoCustomPath: "/stsfhirsocket/socket.io/",
|
|
12916
12926
|
socketClientName: "ststestrunner",
|
|
12927
|
+
//@@@ must be unique ????
|
|
12917
12928
|
timeout: 1e4,
|
|
12918
12929
|
//@@ config option as with all options above
|
|
12919
12930
|
socketIoClientHelperOptions: {
|