Directing robot framework results using Eclipse

眉间皱痕 提交于 2019-12-11 16:17:49

问题


I'm currently using the Eclipse RED plugin for my robot framework automation efforts. How do I direct the test results to a particular folder within my project? When using the terminal, I can direct to the "Results" folder using the following:

robot -d Results Tests\MyApp\AppDriverScript.robot

However, I'm not sure how to direct the log & report files when using the Eclipse IDE using the Run command (Ctrl+F11).


回答1:


In the RED user guide there is a section about launching locally.

In the application you want to go to Run > Run Configurations > Robot where you add a new Run configuration. Pick the Project, and the proceed to add the Robot Test Suite File and (Optionally) select the keywords to run.

The argument you want to add is indeed -d Results in the Additional Robot Framework Arguments box. Only this needs to be added, the rest is taken care of by RED.



来源:https://stackoverflow.com/questions/47663886/directing-robot-framework-results-using-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!