var exec = exec || {};
exec.scenario = {};
exec.vu = {};
exec.instance = {};
function __tropel_liveProp(obj, key, bridgeName, fallback) {
Object.defineProperty(obj, key, {
get: function () {
if (typeof globalThis !== 'undefined' && typeof globalThis[bridgeName] === 'function') {
return globalThis[bridgeName]();
}
return fallback;
},
enumerable: true,
configurable: true,
});
}
__tropel_liveProp(exec.scenario, 'name', '__tropel_exec_scenario_name', '');
__tropel_liveProp(exec.scenario, 'executor', '__tropel_exec_scenario_executor', '');
__tropel_liveProp(exec.vu, 'idInTest', '__tropel_exec_vu_id', 0);
__tropel_liveProp(exec.vu, 'idInInstance', '__tropel_exec_vu_id', 0);
__tropel_liveProp(exec.vu, 'iterationInScenario', '__tropel_exec_iteration', 0);
__tropel_liveProp(exec.vu, 'iterationInInstance', '__tropel_exec_iteration', 0);
__tropel_liveProp(exec.instance, 'iterationsCompleted', '__tropel_exec_iterations_completed', 0);
__tropel_liveProp(exec.instance, 'vusActive', '__tropel_exec_vus_active', 0);
exec.vu.tags = {};
exec.vu.metrics = {};
exec.vu.metrics.tags = {};
exec.vu.metrics.metadata = {};
var test = test || {};
exec.test = {
abort: function (message) {
if (typeof __tropel_test_abort === 'function') {
if (message === undefined || message === null) {
message = 'Test aborted by script';
}
__tropel_test_abort(String(message));
}
},
fail: function (message) {
if (message === undefined || message === null) {
message = 'Test failed';
}
throw new Error(String(message));
}
};
test.abort = exec.test.abort;