Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change reports or output saving location in robot framework from RIDE

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

like image 692
sanjay pujari Avatar asked Feb 07 '17 06:02

sanjay pujari


People also ask

How do I change the download directory in robot framework?

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 ).

How do I customize my robot framework report?

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.

How do I set environment variables in robot framework?

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.

What is Curdir in robot framework?

From the documentation: ${CURDIR} An absolute path to the directory where the test data file is located. This variable is case-sensitive.


Video Answer


2 Answers

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.

like image 65
Goralight Avatar answered Nov 07 '22 01:11

Goralight


use below code in command line

    C:\Tests\> robot -d C:\Test_results Test.robot
like image 25
Abhishek Kashyap Avatar answered Nov 07 '22 01:11

Abhishek Kashyap