Skip to main content

[WS] Get HAR File Generation

Requirements

  • Katalon Studio version 8.2.0 onwards.

Description

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

Keyword name: WS.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: 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.getHarFileGeneration(false)

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