Robot Suite设置/拆卸

时间:2019-11-21 18:35:49

标签: robotframework

我们如何在整个测试套件中保持对库变量的访问权限

*** Settings ***
Library ClientConnection

# This works
Test Setup       Connect Client 
Test Teardown    Disconnect Client

# while this doesnt
Suite Setup   Connect Client
Suite Teardown   Disconnect Client

***Keyword***
Connect Client 
    Connect ${PARAM1} ${PARAM1}  #function are specified in Lib ClientConnection

Disconnect Client 
    Disconnect #function are specified in Lib ClientConnection

*** Tests Cases ***
Test1:
   SendMsg #function are specified in Lib ClientConnection depends on object initialized in connect

0 个答案:

没有答案