@nsshunt/ststestrunner 1.0.26 → 1.0.28
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 +12 -14
- package/dist/ststestrunner.mjs.map +1 -1
- package/dist/ststestrunner.umd.js +12 -14
- package/dist/ststestrunner.umd.js.map +1 -1
- package/package.json +2 -2
- package/types/testCaseFhir02.d.ts.map +1 -1
- package/types/testCaseFhir06.d.ts.map +1 -1
- package/types/testCaseFhir07.d.ts.map +1 -1
- package/types/testCaseFhir08.d.ts.map +1 -1
package/dist/ststestrunner.mjs
CHANGED
|
@@ -11962,17 +11962,12 @@ class FhirSocketClient {
|
|
|
11962
11962
|
}
|
|
11963
11963
|
});
|
|
11964
11964
|
__publicField2(this, "WaitForSocketConnected", async () => {
|
|
11965
|
-
console.log(chalk.gray(`WaitForSocketConnected(): Waiting for socket connection [Start]`));
|
|
11966
|
-
console.log(chalk.gray(`WaitForSocketConnected(): Attempting to get socket`));
|
|
11967
11965
|
const socket = __privateGet$1(this, _socketUtils).GetSocket(__privateGet$1(this, _options2).socketClientName);
|
|
11968
|
-
if (socket) {
|
|
11969
|
-
|
|
11970
|
-
} else {
|
|
11971
|
-
console.log(chalk.gray(`WaitForSocketConnected(): No socket obtained yet ...`));
|
|
11966
|
+
if (socket && socket.connected === true) {
|
|
11967
|
+
return;
|
|
11972
11968
|
}
|
|
11973
11969
|
let connected = false;
|
|
11974
11970
|
while (!connected) {
|
|
11975
|
-
console.log(chalk.gray(`WaitForSocketConnected(): Waiting for socket connection ...`));
|
|
11976
11971
|
const socketRetVal = __privateGet$1(this, _socketUtils).GetSocket(__privateGet$1(this, _options2).socketClientName);
|
|
11977
11972
|
if (socketRetVal && socketRetVal.connected === true) {
|
|
11978
11973
|
connected = true;
|
|
@@ -11980,7 +11975,6 @@ class FhirSocketClient {
|
|
|
11980
11975
|
}
|
|
11981
11976
|
await Sleep(100);
|
|
11982
11977
|
}
|
|
11983
|
-
console.log(chalk.gray(`WaitForSocketConnected(): Waiting for socket connection [End]`));
|
|
11984
11978
|
});
|
|
11985
11979
|
__publicField2(this, "CreateResource", async (resource, domainResource) => {
|
|
11986
11980
|
await this.WaitForSocketConnected();
|
|
@@ -12223,9 +12217,7 @@ class FhirSocketClient {
|
|
|
12223
12217
|
__privateSet$1(this, _options2, options);
|
|
12224
12218
|
__privateSet$1(this, _socketUtils, new SocketIoClientHelper$1(__privateGet$1(this, _options2).socketIoClientHelperOptions));
|
|
12225
12219
|
const clientName = v4$1();
|
|
12226
|
-
|
|
12227
|
-
__privateGet$1(this, _SetupWSSClient).call(this, clientName, []);
|
|
12228
|
-
}, 500);
|
|
12220
|
+
__privateGet$1(this, _SetupWSSClient).call(this, clientName, []);
|
|
12229
12221
|
}
|
|
12230
12222
|
get socket() {
|
|
12231
12223
|
return __privateGet$1(this, _socketUtils).GetSocket(__privateGet$1(this, _options2).socketClientName);
|
|
@@ -13222,15 +13214,12 @@ class TestCaseFhir02 extends TestCaseFhirBase {
|
|
|
13222
13214
|
this.runner.instrumentData.message.push(chalk$1.green(`Iteration: [${iteration} #authUtilsNode(): Agent Reset`));
|
|
13223
13215
|
}
|
|
13224
13216
|
const personRecord = this.GetPersonRecord(`${options.personPrefix}`, iteration);
|
|
13225
|
-
console.log(chalk$1.yellow(JSON.stringify(personRecord, null, 2)));
|
|
13226
13217
|
try {
|
|
13227
13218
|
const retVal = await this.fhirClient.CreateResource("Person", personRecord, (error) => {
|
|
13228
13219
|
this.LogErrorMessage(`test(POST /stsresource and query using filter): ${error}`);
|
|
13229
13220
|
this.runner.instrumentData.errorCount++;
|
|
13230
13221
|
});
|
|
13231
|
-
console.log(chalk$1.rgb(200, 100, 50)(JSON.stringify(retVal, null, 2)));
|
|
13232
13222
|
} catch (error) {
|
|
13233
|
-
console.log(chalk$1.rgb(200, 100, 50)(error));
|
|
13234
13223
|
this.runner.instrumentData.errorCount++;
|
|
13235
13224
|
}
|
|
13236
13225
|
this.runner.instrumentData.coreCount = 1;
|
|
@@ -13421,6 +13410,9 @@ class TestCaseFhir06 extends TestCaseFhirQueryBase {
|
|
|
13421
13410
|
constructor() {
|
|
13422
13411
|
super(...arguments);
|
|
13423
13412
|
__publicField(this, "ExecuteQuery", async (iteration, fhirClient) => {
|
|
13413
|
+
if (this.runner.iteration % 100 === 0) {
|
|
13414
|
+
this.Debug(`-->> Iteration: ${this.runner.iteration}`);
|
|
13415
|
+
}
|
|
13424
13416
|
const searchLetter = String.fromCharCode(65 + iteration % 26);
|
|
13425
13417
|
const retVal = await fhirClient.GetResources("Person", [], {
|
|
13426
13418
|
given: searchLetter,
|
|
@@ -13437,6 +13429,9 @@ class TestCaseFhir07 extends TestCaseFhirQueryBase {
|
|
|
13437
13429
|
constructor() {
|
|
13438
13430
|
super(...arguments);
|
|
13439
13431
|
__publicField(this, "ExecuteQuery", async (iteration, fhirClient) => {
|
|
13432
|
+
if (this.runner.iteration % 100 === 0) {
|
|
13433
|
+
this.Debug(`-->> Iteration: ${this.runner.iteration}`);
|
|
13434
|
+
}
|
|
13440
13435
|
const searchLetter = String.fromCharCode(65 + iteration % 26);
|
|
13441
13436
|
const retVal = await fhirClient.GetResources("Person", [], {
|
|
13442
13437
|
given: searchLetter
|
|
@@ -13452,6 +13447,9 @@ class TestCaseFhir08 extends TestCaseFhirQueryBase {
|
|
|
13452
13447
|
constructor() {
|
|
13453
13448
|
super(...arguments);
|
|
13454
13449
|
__publicField(this, "ExecuteQuery", async (iteration, fhirClient) => {
|
|
13450
|
+
if (this.runner.iteration % 100 === 0) {
|
|
13451
|
+
this.Debug(`-->> Iteration: ${this.runner.iteration}`);
|
|
13452
|
+
}
|
|
13455
13453
|
const searchLetter = String.fromCharCode(65 + iteration % 26);
|
|
13456
13454
|
const retVal = await fhirClient.GetResources("Person", [], {
|
|
13457
13455
|
family: searchLetter
|