qie.notInTestWindow¶
Signature: qie.notInTestWindow()
Returns: Boolean isNotTestWindow - true if the code is not being executed from the test window
Indicates if the code is being executed from the test window or not.
Parameters¶
None
Example¶
// Example: avoid calling external systems when running from the Test Window.
var response;
if (qie.notInTestWindow()) {
// Running in a real channel execution: call your external system here.
response = qie.doQuery("EMR Database", "select name from patient where patient_id = 1");
} else {
// Running from the Test Window: use a stubbed response.
response = 'Fake response from client';
}