@nsshunt/ststestrunner 1.0.27 → 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.
@@ -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
- console.log(chalk.gray(`WaitForSocketConnected(): Socket obtained`));
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();
@@ -13220,15 +13214,12 @@ class TestCaseFhir02 extends TestCaseFhirBase {
13220
13214
  this.runner.instrumentData.message.push(chalk$1.green(`Iteration: [${iteration} #authUtilsNode(): Agent Reset`));
13221
13215
  }
13222
13216
  const personRecord = this.GetPersonRecord(`${options.personPrefix}`, iteration);
13223
- console.log(chalk$1.yellow(JSON.stringify(personRecord, null, 2)));
13224
13217
  try {
13225
13218
  const retVal = await this.fhirClient.CreateResource("Person", personRecord, (error) => {
13226
13219
  this.LogErrorMessage(`test(POST /stsresource and query using filter): ${error}`);
13227
13220
  this.runner.instrumentData.errorCount++;
13228
13221
  });
13229
- console.log(chalk$1.rgb(200, 100, 50)(JSON.stringify(retVal, null, 2)));
13230
13222
  } catch (error) {
13231
- console.log(chalk$1.rgb(200, 100, 50)(error));
13232
13223
  this.runner.instrumentData.errorCount++;
13233
13224
  }
13234
13225
  this.runner.instrumentData.coreCount = 1;
@@ -13419,6 +13410,9 @@ class TestCaseFhir06 extends TestCaseFhirQueryBase {
13419
13410
  constructor() {
13420
13411
  super(...arguments);
13421
13412
  __publicField(this, "ExecuteQuery", async (iteration, fhirClient) => {
13413
+ if (this.runner.iteration % 100 === 0) {
13414
+ this.Debug(`-->> Iteration: ${this.runner.iteration}`);
13415
+ }
13422
13416
  const searchLetter = String.fromCharCode(65 + iteration % 26);
13423
13417
  const retVal = await fhirClient.GetResources("Person", [], {
13424
13418
  given: searchLetter,
@@ -13435,6 +13429,9 @@ class TestCaseFhir07 extends TestCaseFhirQueryBase {
13435
13429
  constructor() {
13436
13430
  super(...arguments);
13437
13431
  __publicField(this, "ExecuteQuery", async (iteration, fhirClient) => {
13432
+ if (this.runner.iteration % 100 === 0) {
13433
+ this.Debug(`-->> Iteration: ${this.runner.iteration}`);
13434
+ }
13438
13435
  const searchLetter = String.fromCharCode(65 + iteration % 26);
13439
13436
  const retVal = await fhirClient.GetResources("Person", [], {
13440
13437
  given: searchLetter
@@ -13450,6 +13447,9 @@ class TestCaseFhir08 extends TestCaseFhirQueryBase {
13450
13447
  constructor() {
13451
13448
  super(...arguments);
13452
13449
  __publicField(this, "ExecuteQuery", async (iteration, fhirClient) => {
13450
+ if (this.runner.iteration % 100 === 0) {
13451
+ this.Debug(`-->> Iteration: ${this.runner.iteration}`);
13452
+ }
13453
13453
  const searchLetter = String.fromCharCode(65 + iteration % 26);
13454
13454
  const retVal = await fhirClient.GetResources("Person", [], {
13455
13455
  family: searchLetter