Unable to execute Yaml file using automation framework through command

115 views
Skip to first unread message

arpitha chaman

unread,
Dec 21, 2022, 12:18:45 AM12/21/22
to OWASP ZAP User Group
im trying to execute my yaml file by using zaproxy stable docker image. The problem is i am able to execute same yaml file in zaproxy desktop but not through the command .

Command:
docker run  -v C:\Users\Maheshwari\Zapper\:/zap/wrk/:rw -t owasp/zap2docker-stable zap.sh -cmd -autorun /zap/wrk/zaptwo.yaml

My yaml file location is : C:\Users\Maheshwari\Zappe\zaptwo.yaml.

im unable to figure out whether the problem is with yaml file or in the command.




zaptwo.yaml

Simon Bennetts

unread,
Dec 21, 2022, 4:02:54 AM12/21/22
to OWASP ZAP User Group
What error message(s) are you seeing?

In your yaml file you specify:
  • reportDir: "C:\\Users\\Maheshwari"
That directory will not exist in docker, you will need to specify a path under /zap/wrk/

Cheers,

Simon

arpitha chaman

unread,
Dec 21, 2022, 4:55:40 AM12/21/22
to OWASP ZAP User Group
Okay . i have changed the directory path under zap/wrk/. i am getting error as below on execution

Automation plan failures:
        Job spider failed to access URL https://www.demoblaze.com/ check that it is valid : www.demoblaze.com: Temporary failure in name resolution

i have tried to execute same yaml file for different url but the output is the same. im attaching both yaml file and command output. where am i wrong here?
zaptwo.yaml
ZAPAF.png

Simon Bennetts

unread,
Dec 21, 2022, 4:59:07 AM12/21/22
to OWASP ZAP User Group

arpitha chaman

unread,
Dec 22, 2022, 2:11:53 AM12/22/22
to OWASP ZAP User Group
Figured out that the problem was with DNS Lookup Process in my local machine. Following this "https://www.systosys.com/2020/07/ping-request-could-not-find-host-please.html" Solved my problem and im able to execute my yaml file.

Simon Bennetts

unread,
Dec 22, 2022, 4:35:24 AM12/22/22
to OWASP ZAP User Group
Great - thanks for letting us know!
Reply all
Reply to author
Forward
0 new messages