是否有任何关键字可以与Robot Framework中的“等待关键字成功完成”相同,还是我必须完全创建一个新关键字?我刚接触该框架,希望实现以下目标:
Wait Until Keyword Succeeds 10x 20s
... ${response} = Some Keyword arg
... Should Match ${response} ${val}
还是有其他方法可以解决此问题?
您可以通过将这些关键字排除在复合关键字中来实现此目的:
My Keyword
[Arguments] ${argument} ${val}
${response} = Some Keyword ${argument}
Should Match ${response} ${val}
然后使用正确的属性在“等待关键字成功”下调用此关键字
Wait Until Keyword Succeeds My Keyword ${argument} ${val}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句