Multiple remote libraries with robot framework

一笑奈何 提交于 2019-12-19 04:18:14

问题


According to the example in the manual of 'Robot Framework', in order to provide keywords from a remote computer one has to instantiate RobotRemoteServer with an instance of the class implementing the Keywords

RobotRemoteServer(ExampleRemoteLibrary(), *sys.argv[1:])

What if I have multiple libraries/classes which I want to be available remotely? Do I have to start a new server for each class?

Is robot framework suitable for automated distributed testing, where multiple computers have to run synchronously in order to test a particular case?

found a related discussion here:

https://groups.google.com/forum/?fromgroups#!searchin/robotframework-users/remote/robotframework-users/StO7L7NbqFI/rrZa6KeAiMIJ


回答1:


You aren't forced to use RobotRemoteServer, that's just a simple example provided as a convenience. You can create a single server that can use as many classes as you want. The only real requirement is that your XMLRPC server exposes the methods get_keyword_names and run_keyword.

This is all documented in the Robot User Guide, in the section titled Remote Library Interface.

As for distributed testing, it's possible to have multiple remote servers on different machines, all coordinated by a single robot test. I'm not sure if that's what you're asking about.



来源:https://stackoverflow.com/questions/10089187/multiple-remote-libraries-with-robot-framework

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