Share this page

# 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();
    })();

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: