![](/img/trans.png)
[英]how to pass variable from zend framework to javascript/jquery?
[英]How to pass Robot Framework variable to JavaScript
我需要将我的Robot变量传递给JavaScript:
${path}= Set Variable /apis
${method}= Set Variable get
${result}= Execute Javascript path_to_file/file.js
Log ${result}
我想将${path}
和${method}
传递给我的file.js。 可能吗?
您将需要使用execute javascript
创建javascript变量。
例如:
*** Test Cases ***
Example
${path}= Set Variable /apis
${method}= Set Variable get
Execute javascript path='foobar';
Execute javascript method='${method}'
${result}= Execute Javascript path_to_file/file.js
Log ${result}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.