简体   繁体   English

用于机器人关键字的机器人框架远程服务器

[英]Robot Framework Remote Server for Robot Keywords

I want to implement a Robot Framework Remote Library in order to both provide Python classes and Robot Framework Keywords available for multiple clients;我想实现一个机器人框架远程库,以便为多个客户端提供 Python 类和机器人框架关键字; this is my idea to aviod copy/paste codes on multiple servers.这是我在多个服务器上避免复制/粘贴代码的想法。

I followed instructions described here which is trying to implement a server providing Python classes.我按照此处描述的说明进行操作该说明试图实现提供 Python 类的服务器。 I also found this which is implying how I can implement my own server.我还发现意味着我可以如何实现我自己的服务器。

But I found nothing while googling around about how to make a server to provide Robot Framework Keywords.但是我在谷歌搜索如何制作服务器以提供机器人框架关键字时一无所获。 Any idea how can I implement such server?知道如何实现这样的服务器吗?

Running same tests on several servers doesn't mean you need copy paste code or use remote server.在多台服务器上运行相同的测试并不意味着您需要复制粘贴代码或使用远程服务器。

I would Implement tests(robot & python libraries), put them in git repository, control test runs with Jenkins master & slaves.我会实施测试(机器人和 python 库),将它们放在 git 存储库中,使用 Jenkins 主从控制测试运行。 Slaves would be running on the servers and checking out the tests from repository and publishing results on Jenkins. Slaves 将在服务器上运行并检查存储库中的测试并在 Jenkins 上发布结果。

I believe you are asking how to serve up robot keywords written in robot itself, rather than in a programming language.我相信您是在问如何提供用机器人本身而不是编程语言编写的机器人关键字。

I don't think it's possible to do what you want.我认为不可能做你想做的事。 The remote library interface is for keyword libraries , and by definition those keyword libraries are written in other programming languages.远程库接口用于关键字,根据定义,这些关键字库是用其他编程语言编写的。

现在无法做到这一点 - 为此打开了一个开放增强功能: https : //github.com/robotframework/PythonRemoteServer/issues/42

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM