isRunningInWorkbench

boolean session.isRunningInWorkbench ( )

Description

Returns whether or not we are currently running in the workbench. This is a convenience method for doing something different in a script when running in the workbench as opposed to other modes

Parameters

This method does not receive any parameters.

Return Values

Returns true if and only if the scrape is currently running in the workbench.

Change Log

Version Description
6.0.37a Introduced for all editions.

Examples

Retrieve Connection Timeout

 if (session.isRunningInWorkbench()) {
    // do something only done in workbench
 }