[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
Parameter | Parameter Type | Mandatory | Description |
---|---|---|---|
flowControl | FailureHandling | Optional | Specify 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 |
|
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
To learn how to access HAR files, see Extensive logs for Web Service testing.
To enable or disable HAR file generation, see [WS] Set HAR File Generation.