Robotframework 运行关键字和返回状态在关键字结束前被卡住

Robotframework 运行关键字和返回状态在关键字结束前被卡住,robotframework,Robotframework,是否有人观察到 运行关键字和返回状态被卡住,并且不从关键字返回? 它只是没有关闭关键字。。。。 我等了三天。。。(好吧,那是周末) 使用给定参数运行给定关键字,并将状态作为布尔值返回。 taut_ssh.SftpClient.File应该存在 ${filepath}${filePattern} ${ret} 如果给定的“路径”未指向现有文件,则失败。 ${filepath}${filePattern} 文件“/saps/tmn/GDI.PMAAV167.00.001.tgz”不存在 ${ret

是否有人观察到 运行关键字和返回状态被卡住,并且不从关键字返回? 它只是没有关闭关键字。。。。 我等了三天。。。(好吧,那是周末)


使用给定参数运行给定关键字,并将状态作为布尔值返回。
taut_ssh.SftpClient.File应该存在
${filepath}${filePattern}
${ret}
如果给定的“路径”未指向现有文件,则失败。
${filepath}${filePattern}
文件“/saps/tmn/GDI.PMAAV167.00.001.tgz”不存在
${ret}=False

我没有这个问题。你能复制它吗?您是否可以共享一段再现问题的代码和配置?您是否尝试过使用
Run关键字和returnstatus
,并使用一个简单的内置关键字,如
Log
或类似的关键字?也许你正在调用的关键字有一个bug或者超时太大……我从来没有注意到这一点。如果它被卡住了,几乎可以肯定是因为你正在调用的关键字被卡住了。正如你所看到的,被调用的关键字被很好地返回,并且状态被设置为failed Replicatable(失败可复制)。。。如果我们有几个并行的python任务运行,那么共享代码和配置就相当复杂,这似乎是个问题。这只能在我们的构建服务器上进行复制,在构建服务器上,有时会运行多个python任务,而这只是其中之一。同一代码大约有20次并行执行,而问题只发生在1-3次并行任务中
<kw name="Run Keyword And Return Status" library="BuiltIn">
<doc>Runs the given keyword with given arguments and returns the status as a Boolean value.</doc>
<arguments>
<arg>taut_ssh.SftpClient.File Should Exist</arg>
<arg>${filepath}${filePattern}</arg>
</arguments>
<assign>
<var>${ret}</var>
</assign>
<kw name="File Should Exist" library="taut_ssh.SftpClient">
<doc>Fails if the given `path` does NOT point to an existing file.</doc>
<arguments>
<arg>${filepath}${filePattern}</arg>
</arguments>
<msg timestamp="20200229 00:45:28.987" level="FAIL">file "/saps/tmn/GDI.PMAAV167.00.001.tgz" does not exist</msg>
<status status="FAIL" endtime="20200229 00:45:28.988" starttime="20200229 00:45:28.984"></status>
</kw>
<msg timestamp="20200229 00:45:28.988" level="INFO">${ret} = False</msg>
<status status="PASS" endtime="20200229 00:45:28.988" starttime="20200229