Python 2.7 使用STAF(软件测试自动化框架)运行Python脚本
我想使用下面的命令使用STAF运行python脚本(test.py),但得到Retrun代码1Python 2.7 使用STAF(软件测试自动化框架)运行Python脚本,python-2.7,staf,Python 2.7,Staf,我想使用下面的命令使用STAF运行python脚本(test.py),但得到Retrun代码1 H:\>STAF 192.168.252.81 process START SHELL COMMAND "python /opt/test/test.p " PARAMS "3344" wait returnstdout Response -------- { Return Code: 1 Key : <None> Files : [ {
H:\>STAF 192.168.252.81 process START SHELL COMMAND "python /opt/test/test.p
" PARAMS "3344" wait returnstdout
Response
--------
{
Return Code: 1
Key : <None>
Files : [
{
Return Code: 0
Data :
}
]
}
H:\>STAF 192.168.252.81进程启动SHELL命令“python/opt/test/test.p
“参数”3344“等待返回数据”
回应
--------
{
返回代码:1
关键:
档案:[
{
返回代码:0
数据:
}
]
}
检查远程计算机是否在信任列表中,然后在不使用“PARAMS”的情况下进行尝试,或者在python脚本中对值进行硬编码