且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在基于Python的Robot框架中包含Java测试库

更新时间:2023-01-15 17:26:59

要直接使用用Java编写的关键字,您需要使用jython.

To directly use keywords written in java, you'll need to use jython.

另一种选择是使用远程库接口.您设置了一个小的XML-RPC服务器(使用Java),然后通过为机械手提供服务器的地址来导入该库.

Another option is to use the remote library interface. You set up a little XML-RPC server (in java), then import the library by giving robot the address of the server.

好消息是有人已经编写了基于Java的服务器.参见 https://github.com/ombre42/jrobotremoteserver

The good news is that someone has already written a java based server. See https://github.com/ombre42/jrobotremoteserver