OWASP ZAP must open during run test case
- Download & Install JDK
- Download & Install IntelliJ IDEA Community Version
- Download & Install OWASP ZAP
- Set environment variable(path) - Set JAVA_HOME
- Create TestNG XML plugin install from Marketplace - File >> Settings >> plugin >> Marketplace >> search 'Create TestNG XML' & install
- Open OWASP ZAP
- Address & Port : Go to Main Menu >> Tools >> Options >> Local Proxies
- API Key : Go to Main Menu >> Tools >> Options >> API
- Add Address, Port & API Key in BaseTest class [./src/test/java/com/zap/test/BaseTest.java]
- ./build/dvwa.html
- It is very important to note that you should only use ZAP on your own Applications or the ones you have permission to test
- Run Test Case - Go to desired Java Class where has Test Case, Right click of mouse on Test Case >> click on Run
- Run XML File - After create TestNG file, Right click of mouse on TestNG xml >> click on Run