When I run test cases from RIDE the reports are saved in the below path.
C:\Windows\Temp\RIDExf4xla.d
I want save reports in specific path. Can I do this from RIDE? Is there any setting to change the reports location?
Can anyone please suggest the way to do it.
Thanks
You have to overwrite the default download directory for your browser. This can be done via configuring the web driver. The Open Browser keyword of SeleniumLibrary provides separate parameters for this purpose to both Firefox ( ff_profile_dir ) and to Chrome ( options ).
One solution is to create your own report from scratch. The XML output is very easy to parse. You can turn off the generation of reports with command line options (eg: --log NONE and --report NONE ). Then, create a script that generates any type of report that you want.
Robot Framework uses the ${} syntax to refer to variables, and %{} to refer to environment variables. We are using the value of the variable when calling the Capture Page Screenshot keyword.
From the documentation: ${CURDIR} An absolute path to the directory where the test data file is located. This variable is case-sensitive.
Look at the --outputdir
command within the Robot Framework Documentation:
Here is what I use:
--outputdir C:/Robot/AutomationLogs/etc/etc --timestampoutputs
You use this one liner on the "Arguments" Field, right on the top of RIDE within the run tab.
From Wamans comment you can add formats to the end of the argument, to also change the dir name dynamically. See the 2nd answer within that SO question. This should be enough for you to get what you're asking for.
There is no way to set this within a UI.
Just set it by pasting that argument option within the "Arguments" Field at the top.
use below code in command line
C:\Tests\> robot -d C:\Test_results Test.robot
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With