首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Robotframework线程

Robotframework线程
EN

Stack Overflow用户
提问于 2014-08-21 21:23:40
回答 1查看 4.9K关注 0票数 2

有没有办法在Robotframework中启动两个动作。我正在尝试运行一个连续运行的进程,然后在不停止第一个进程的情况下执行其他操作。问题是RF正在等待第一个进程完成,然后继续其他操作。好吧,问题是第一个进程不会停止。有什么建议吗?

谢谢,Stell

EN

回答 1

Stack Overflow用户

发布于 2014-08-22 00:39:23

是的,您可以使用Process库来实现这一点。它可以让你在后台运行程序。

在我的开源项目rfhub中,验收测试套件有一个在后台启动集线器的套件设置。

以下是启动集线器的关键字:

代码语言:javascript
复制
*** Keywords ***
| Start rfhub
| | [Arguments] | ${PORT}
| | [Documentation]
| | ... | Starts rfhub on the port given in the variable ${PORT}
| | ... | As a side effect this creates a suite variable named ${rfhub process},
| | ... | which is used by the 'Stop rfhub' keyword.
| | 
| | ${rfhub process}= | Start process | python | -m | rfhub | --port | ${PORT}
| | Set suite variable | ${rfhub process}
| | Wait until keyword succeeds | 20 seconds | 1 second
| | ... | Verify URL is reachable | /ping
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25427506

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档