简体   繁体   中英

trying to run bash command through robot framework

im trying to run a bash script that contains ${i} and ${tags} through robot framework using python
when im running the test the result is Variable ${i} not found because it is identify the ${i} as varaiable how can i fix it?

tried the next functions: Evaluate, Convert To String, Set Variable still not working

You should be able to just put a \ before the $

${result}=  run  echo '\${1}'

This is mentioned in the robot framework user guide under the heading Escaping

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM