@nsshunt/ststestrunner 1.0.5 → 1.0.7
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
CHANGED
|
@@ -8945,6 +8945,7 @@ class TestCaseFhirBase {
|
|
|
8945
8945
|
}
|
|
8946
8946
|
});
|
|
8947
8947
|
__publicField(this, "StartTestDataLoad", async () => {
|
|
8948
|
+
console.log(chalk$1.magenta(`StartTestDataLoad(): Start ...`));
|
|
8948
8949
|
let VU = 0;
|
|
8949
8950
|
if (__privateGet(this, _runner2).options.runnerPlan) {
|
|
8950
8951
|
VU = __privateGet(this, _runner2).options.runnerPlan.planVU;
|
|
@@ -8955,6 +8956,7 @@ class TestCaseFhirBase {
|
|
|
8955
8956
|
const recordId = `stsres_${blockNum + i}`;
|
|
8956
8957
|
const retVal = await __privateGet(this, _fhirClient).GetResource("Person", recordId, null, (error) => {
|
|
8957
8958
|
this.LogErrorMessage(`test(POST /stsresource and query using filter): ${error}`);
|
|
8959
|
+
console.error(chalk$1.red(`StartTestDataLoad(): Error: [${error}]`));
|
|
8958
8960
|
});
|
|
8959
8961
|
if (retVal) {
|
|
8960
8962
|
const recordsetData = retVal.address;
|
|
@@ -8964,10 +8966,13 @@ class TestCaseFhirBase {
|
|
|
8964
8966
|
__privateGet(this, _randomDataRecordset).push(qqq[j2]);
|
|
8965
8967
|
}
|
|
8966
8968
|
console.log(chalk$1.magenta(__privateGet(this, _randomDataRecordset).length));
|
|
8969
|
+
} else {
|
|
8970
|
+
console.log(chalk$1.magenta(`StartTestDataLoad(): Could not person records.`));
|
|
8967
8971
|
}
|
|
8968
8972
|
await Sleep(10);
|
|
8969
8973
|
}
|
|
8970
8974
|
console.log(`Finished load for VU: [${VU}]`);
|
|
8975
|
+
console.log(chalk$1.magenta(`StartTestDataLoad(): End`));
|
|
8971
8976
|
});
|
|
8972
8977
|
__privateAdd(this, _ForcePublishTelemetryData2, async () => {
|
|
8973
8978
|
await __privateGet(this, _PublishTelemetryData2).call(this);
|
|
@@ -9467,9 +9472,12 @@ class StartUpDelFhirResources extends TestCaseFhirBase {
|
|
|
9467
9472
|
let complete = false;
|
|
9468
9473
|
let totalRecordsDelete = 0;
|
|
9469
9474
|
while (!complete) {
|
|
9475
|
+
console.log(chalk$1.magenta(`ExecuteRunner() - pre GetResources()`));
|
|
9470
9476
|
const retVal = await this.fhirClient.GetResources("Person", [`limit=${options.batchDeleteSize}`, `${options.personPrefix}`], null, (error) => {
|
|
9471
9477
|
this.LogErrorMessage(chalk$1.red(`test(POST /stsresource and query using filter): ${error}`));
|
|
9472
9478
|
});
|
|
9479
|
+
console.log(chalk$1.magenta(`ExecuteRunner() - post GetResources()`));
|
|
9480
|
+
console.log(retVal);
|
|
9473
9481
|
if (retVal) {
|
|
9474
9482
|
console.log(`Records already exist - going to delete ...`);
|
|
9475
9483
|
console.log(retVal.length);
|