使用STAF运行Python脚本(软件测试自动化框架)

时间:2013-09-11 06:11:21

标签: 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      : [
    {
      Return Code: 0
      Data       :
    }
   ]
}

1 个答案:

答案 0 :(得分:0)

检查远程计算机是否在trust list上,然后在没有“PARAMS”的情况下进行尝试,或者对python脚本中的值进行硬编码。