Get path to reports


#1

Hello !

I’d like to get in my code the path to the reports but I don’t find it.

I tried
RunConfiguration.getReportFolder()

But it returns
[...]\AppData\Local\Temp\Katalon\Test Cases\{TestCaseName}\{TestCaseName}\{Date}

And I want
[...]\katalon\{ProjectName}\Reports\{TestCaseName}\{Date}

Is it possible ?


#2

If you run your tests in the Katalon command line mode, you can specify the report folder. See the -reportFolder option here:

You can also set a global variable from the command line. This global variable can inform your tests where the reports are. See Override Execution Profile Variable.