Good afternoon, thank you once again for your response.
Now I am trying to run different instances of ZAP simultaneously, but I am having difficulties running the automation plan. I am testing running just one ZAP instance and executing the automation plan, and I am getting the error shown in the attached image. I have already executed the automation plan on the same port and in the same directory that I am trying to use with the Python code, one of them in the GUI and the other through the command line with the following code:
" ./zap.sh -port 8091 -dir /home/vboxuser/zaproxy/instance1 -cmd -autorun /home/vboxuser/siaas-agent/NewPlan1.yaml"
Both ran well and I obtained similar results.
However, when I try to run the same automation plan via the Python API, it doesn't work. Some variables are static because I am trying to solve this issue.
Here are variables that do not appear in the picture:
ini_file = os.path.join('conf', 'siaas_zap_agent.ini')
template_yaml_file = '/home/vboxuser/siaas-agent/NewPlan1.yaml'
zap_path = '/home/vboxuser/zaproxy/zap.sh'
I really need help.
Thank you very much.