How to get and set the default output directory in Robot Framework(Ride) in Run time

后端 未结 3 602
日久生厌
日久生厌 2021-01-07 02:47

I would like to move all my output files to a custom location, to a Run directory created based on Date time during Run time. The output folder by datetime is created in the

3条回答
  •  不知归路
    2021-01-07 03:11

    You can use the following syntax in RIDE (Arguments:) to create the output in newfolders dynamically

    --outputdir C:/AutomationLogs/%date:~-4,4%%date:~-10,2%%date:~-7,2% --timestampoutputs
    

    The above syntax gives you the output in below folder:

    Output:  C:\AutomationLogs\20151125\output-20151125-155017.xml
    Log:     C:\AutomationLogs\20151125\log-20151125-155017.html
    Report:  C:\AutomationLogs\20151125\report-20151125-155017.html
    

    Hope this helps :)

提交回复
热议问题