@nsshunt/ststestrunner 1.1.74 → 1.1.76

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.
@@ -250,6 +250,7 @@ var TestCaseFhirBase = class {
250
250
  this.#runner.instrumentData.message = [];
251
251
  this.#runner.instrumentData.tx = 0;
252
252
  this.#runner.instrumentData.rx = 0;
253
+ this.#runner.instrumentData.durationData = [];
253
254
  await this.SleepImmediate();
254
255
  };
255
256
  ExtractOrigin = (uri) => {
@@ -576,6 +577,18 @@ var TestCaseFhirQueryBase = class extends TestCaseFhirBase {
576
577
  this.runner.instrumentData.activeRequestCount--;
577
578
  const diff = performance.now() - start;
578
579
  this.runner.instrumentData.duration = diff;
580
+ this.runner.instrumentData.durationData.push(diff);
581
+ if (diff <= 5) this.runner.instrumentData.duration5++;
582
+ else if (diff <= 10) this.runner.instrumentData.duration10++;
583
+ else if (diff <= 20) this.runner.instrumentData.duration20++;
584
+ else if (diff <= 30) this.runner.instrumentData.duration30++;
585
+ else if (diff <= 50) this.runner.instrumentData.duration50++;
586
+ else if (diff <= 100) this.runner.instrumentData.duration100++;
587
+ else if (diff <= 150) this.runner.instrumentData.duration150++;
588
+ else if (diff <= 250) this.runner.instrumentData.duration250++;
589
+ else if (diff <= 500) this.runner.instrumentData.duration500++;
590
+ else if (diff <= 1e3) this.runner.instrumentData.duration1000++;
591
+ else this.runner.instrumentData.duratione++;
579
592
  if (diff > this._longExecTimeoutVal) {
580
593
  this.Error(chalk.default.red(`TestCaseFhirQueryBase:ExecuteRunner(): *** ==> Long execution: [${diff}] Completed`));
581
594
  this.Error(chalk.default.red(`TestCaseFhirQueryBase:ExecuteRunner(): ==> ${this._GetDetail()}`));