如何将一个测试用例的结果传递给Robot Framework中的另一个测试用例

How to pass the result of one test case to another test case in Robot Framework

我是 运行 机器人框架中的多个测试用例。

我希望将一个测试用例的结果传递给另一个测试用例。有什么方法可以做到这一点吗?

例子

TC01-搜索并导航至所需船只

Given Home Page is Loaded
When Search Ship and Choose Required Vessel
${name}   ${no}  Navigate to the Vessel View 

TC02-在案例中验证船只详细信息

Given Cases is Available in Apps And I Navigate to Cases Then Verify Vessel Details are present or not ${name} ${no}

这里我必须将 ${name} 和 ${no} 从 TC-01 传递给 TC-02。 有办法吗?

您可以使用以下关键字

设置套件变量名称,*值
使变量在当前套件范围内随处可用。

上面的关键字可以用来在不同的测试用例中复用测试数据