Skip to main content

[WS] Get HAR File Generation

Description

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

Keyword name: getHarFileGeneration

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: If HAR file generation is enabled
  • false: If 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.getHarFileGeneration(false)

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