TC.scenarioId

Returns the scenario ID as it appears in the MDRV command line. MDRV is the main process that runs all protocols. The scenario ID exists only if MDRV was started by Controller.

TC.scenarioId();

Arguments

None

Return value

A promise that is fulfilled with a number upon success. It returns a valid scenario ID only when the process is running from Controller. If the process was started by VuGen, it returns 0.

Example

Copy code
(async ()=>{
    let scenarioId = await TC.scenarioId();
})();