OperatingSystem是内置库,可以直接导入使用,不需要单独安装。
*** Settings *** Library OperatingSystem *** Test Cases *** exec_bat ${ret} OperatingSystem.Run echo "HelloWorld!" Log ${ret}
Run后面可以跟命令,也可以跟文件:D:/robot/dos.bat
执行结果:
标签:内置,Run,Robot,ret,Framework,dos,OperatingSystem From: https://www.cnblogs.com/v5captain/p/16989534.html