@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.
@@ -227,6 +227,7 @@ var TestCaseFhirBase = class {
227
227
  this.#runner.instrumentData.message = [];
228
228
  this.#runner.instrumentData.tx = 0;
229
229
  this.#runner.instrumentData.rx = 0;
230
+ this.#runner.instrumentData.durationData = [];
230
231
  await this.SleepImmediate();
231
232
  };
232
233
  ExtractOrigin = (uri) => {
@@ -553,6 +554,18 @@ var TestCaseFhirQueryBase = class extends TestCaseFhirBase {
553
554
  this.runner.instrumentData.activeRequestCount--;
554
555
  const diff = performance.now() - start;
555
556
  this.runner.instrumentData.duration = diff;
557
+ this.runner.instrumentData.durationData.push(diff);
558
+ if (diff <= 5) this.runner.instrumentData.duration5++;
559
+ else if (diff <= 10) this.runner.instrumentData.duration10++;
560
+ else if (diff <= 20) this.runner.instrumentData.duration20++;
561
+ else if (diff <= 30) this.runner.instrumentData.duration30++;
562
+ else if (diff <= 50) this.runner.instrumentData.duration50++;
563
+ else if (diff <= 100) this.runner.instrumentData.duration100++;
564
+ else if (diff <= 150) this.runner.instrumentData.duration150++;
565
+ else if (diff <= 250) this.runner.instrumentData.duration250++;
566
+ else if (diff <= 500) this.runner.instrumentData.duration500++;
567
+ else if (diff <= 1e3) this.runner.instrumentData.duration1000++;
568
+ else this.runner.instrumentData.duratione++;
556
569
  if (diff > this._longExecTimeoutVal) {
557
570
  this.Error(chalk.red(`TestCaseFhirQueryBase:ExecuteRunner(): *** ==> Long execution: [${diff}] Completed`));
558
571
  this.Error(chalk.red(`TestCaseFhirQueryBase:ExecuteRunner(): ==> ${this._GetDetail()}`));