【问题标题】:How to pass the variables by using eggplant tool如何使用茄子工具传递变量
【发布时间】:2014-01-29 13:28:27
【问题描述】:

我正在阅读一张 Excel 表格中的文本。此文本被放入一个临时变量中。

现在我想将此临时变量用于另一个脚本。

茄子里面有命令吗?

【问题讨论】:

标签: variables eggplant


【解决方案1】:

在您的其他脚本(本例中名为 OtherScript)中,创建一个处理程序:

to HandlerName Variable1 //Starts the handler.
      //Insert your script commands here 
end HandlerName//Ends the handler.

在您当前的脚本中,运行以下行以将您的临时变量传递给其他脚本:

run OtherScript.HandlerName temp

其中 temp 是您希望从读取 excel 工作表的当前脚本传递给其他脚本的变量。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-05-02
    • 2020-12-20
    • 2011-12-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-30
    相关资源
    最近更新 更多