Skip to main content

[WS] Get HAR File Generation

Important:
  • Katalon Studio version 8.2.0 onwards.

Description

With this keyword, you can check whether HAR file generation is enabled or disabled.

Parameters

ParameterParameter Type Mandatory Description
flowControlFailureHandlingOptionalSpecify failure handling schema to determine whether the execution should be allowed to continue or stop.
Note:
  • If Katalon Studio could not get the setting, throw: StepFailedException.

Returns

Parameter Type Description
boolean
  • true: HAR file generation is enabled.
  • false: HAR file generation is disabled.

Example

You have previously disabled the HAR file generation. Later, you want to check whether the HAR file generation is disabled or not.

import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS

WS.setHarFileGeneration(false)

'Get the status of generating a har file when sending a request is true or false' print(WS.getHarFileGeneration())

To enable or disable HAR file generation, see [WS] Set HAR File Generation.