isRunningInServer

boolean session.isRunningInServer ( )

Description

Returns whether or not we are currently running in the server. This is a convenience method for doing something different in a script when running in the server 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 server.

Change Log

Version Description
6.0.37a Introduced for all editions.

Examples

Retrieve Connection Timeout

 if (session.isRunningInServer()) {
    // do something only done in the server
 }