使用机器人框架将类的对象传递给另一个类

时间:2018-09-28 09:46:18

标签: python robotframework

我想将一个类的对象传递给另一个类。 下面是我尝试过的代码。

 *** Settings ***
Documentation 
Library       helper.confHelp.ConfHelper    ${confJson}
Library       demoHelp.demo.py
*** Variables ***
${confJson}   conf/help.json
*** Test Cases ***
[Documentation]
[Tag]
${configObj}    Get Library Instance     helper.confHelp.ConfHelper
demoHelp.demo.Demo    ${configObj}                    # this is the 
another class and pass the object of ConfHelper
Log To Console    Start
methodOfDemoClass

0 个答案:

没有答案