@nsshunt/ststestrunner 1.1.73 → 1.1.75
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.cjs
CHANGED
|
@@ -576,13 +576,24 @@ var TestCaseFhirQueryBase = class extends TestCaseFhirBase {
|
|
|
576
576
|
this.runner.instrumentData.activeRequestCount--;
|
|
577
577
|
const diff = performance.now() - start;
|
|
578
578
|
this.runner.instrumentData.duration = diff;
|
|
579
|
+
if (diff <= 5) this.runner.instrumentData.duration5++;
|
|
580
|
+
else if (diff <= 10) this.runner.instrumentData.duration10++;
|
|
581
|
+
else if (diff <= 20) this.runner.instrumentData.duration20++;
|
|
582
|
+
else if (diff <= 30) this.runner.instrumentData.duration30++;
|
|
583
|
+
else if (diff <= 50) this.runner.instrumentData.duration50++;
|
|
584
|
+
else if (diff <= 100) this.runner.instrumentData.duration100++;
|
|
585
|
+
else if (diff <= 150) this.runner.instrumentData.duration150++;
|
|
586
|
+
else if (diff <= 250) this.runner.instrumentData.duration250++;
|
|
587
|
+
else if (diff <= 500) this.runner.instrumentData.duration500++;
|
|
588
|
+
else if (diff <= 1e3) this.runner.instrumentData.duration1000++;
|
|
589
|
+
else this.runner.instrumentData.duratione++;
|
|
579
590
|
if (diff > this._longExecTimeoutVal) {
|
|
580
591
|
this.Error(chalk.default.red(`TestCaseFhirQueryBase:ExecuteRunner(): *** ==> Long execution: [${diff}] Completed`));
|
|
581
592
|
this.Error(chalk.default.red(`TestCaseFhirQueryBase:ExecuteRunner(): ==> ${this._GetDetail()}`));
|
|
582
593
|
this.Error(chalk.default.red(`TestCaseFhirQueryBase:ExecuteRunner(): ==> Note: While not specifically an error, this is logged as an error.`));
|
|
583
|
-
} else if (diff >
|
|
584
|
-
this.Debug(chalk.default.rgb(
|
|
585
|
-
this.Debug(chalk.default.rgb(
|
|
594
|
+
} else if (diff > 200) {
|
|
595
|
+
this.Debug(chalk.default.rgb(155, 120, 200)(`TestCaseFhirQueryBase:ExecuteRunner(): *** ==> Long execution: [${diff}] Completed`));
|
|
596
|
+
this.Debug(chalk.default.rgb(155, 120, 200)(`TestCaseFhirQueryBase:ExecuteRunner(): ==> ${this._GetDetail()}`));
|
|
586
597
|
}
|
|
587
598
|
const longExecTimeoutpublishTelemetry = setTimeout(() => {
|
|
588
599
|
this.Error(chalk.default.red(`TestCaseFhirQueryBase:ExecuteRunner(): *** ==> Long execution: [${this._longExecTimeoutVal}] for PublishTelemetry()`));
|