Yes Exactly so my flow is as follows:
1. Run the test suites ,e.g karate test suite which has a set of apis which we are testing for request and responses.
2.Proxy these requests through ZAP
3. Then Passively scan the request and responses .
4 . Then finally generate the report based upon that passive scan .
I am successfully doing it for zap desktop , But I want to do It in some CI ,maybe jenkins or gitlab.
so I am thinking of doing it this way,
1. Running both docker container and make them talk to each other using the docker-compose
2. Once both container are up and running .
3. Originate request from the test suite container and make it to pass through zap container (proxy)
and then generate the report .
One more thing I need to confirm ZAP listens on port 8080 right?
Thanks