[WS] Get HAR File Generation
Description​
With this keyword, you can check whether HAR file generation is enabled or disabled.
Keyword name: 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()) 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.