Running Python Script using STAF (Software Testing Automation Framework)

728 views Asked by At

I want to run python script (test.py) using STAF using below command but getting Retrun code 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

There are 1 answers

0
Madam Kiwi On

Check that the remote machine is on trust list, then try it without "PARAMS" or hardcode the value inside your python script.