如何在 RIDE 中访问套件变量

How to access Suite Variables in RIDE

在使用 BuiltIn 库中的 Set Suite Variable 设置套件变量后,您能否帮助我了解如何访问 RIDE 中的套件变量。

例如,用户关键字中使用的 Create Session 创建的会话 ID 需要在测试中的所有测试用例中访问 suite.This 是我的用例。

当您使用 Set Suite Variable 创建套件变量时,您可以像访问普通变量一样访问测试用例中的变量。您无需执行任何其他操作。

*** Test Cases ***
| Example 1
| | Set suite variable | ${message} | Hello, world

| Example 2
| | log | ${message}