Automation Testing Framework Installation Confluence Page.
Download and install Java 8.
Download and install Apache Maven.
Please run this command on your console inside or outside the IDE considering the location of the JAR file which is in the libs folder:
mvn install:install-file -Dfile={Path}\ATUTestRecorder_2.1.jar -DgroupId=org.aut.tm -DartifactId=cxf-bundle -Dversion=2.1 -Dpackaging=jar
In case you have a problem with the dependency, to resolve the issue please check the dependencies in this link and follow the same tags:
the dependency after adding the missing tags:
===========================
<dependency>
<groupId>atu.testng.reports.ATUTestRecorder</groupId>
<artifactId>ATUTestRecorder</artifactId>
<version>2.1</version>
</dependency>
============================
Please run this command on your console inside or outside the IDE considering the location of the JAR file which is in the libs folder:
mvn install:install-file -Dfile={Path}\monte-screen-recorder-0.7.7.0.jar -DgroupId=com.github.stephenc.monte -DartifactId=monte-screen-recorder -Dversion=0.7.7.0 -Dpackaging=jar -DgeneratePom=true
============================
Please run these commands on your console inside or outside the IDE considering the location of the JAR file which is in the libs folder:
mvn install:install-file -Dfile={Path}\libs\zap-api-2.4-v6.jar -DgroupId=net.continuumsecurity -DartifactId=zap-java-api -Dversion=2.4.2 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile={Path}\libs\proxy-2.4.2-SNAPSHOT.jar -DgroupId=org.owasp -DartifactId=zaproxy-client-api -Dversion=2.4-6 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile={Path}\libs\harlib-1.1.1.jar -DgroupId=edu.umass.cs.benchlab -DartifactId=harlib -Dversion=1.1.1 -Dpackaging=jar -DgeneratePom=true
ensure that you are having Docker installed on your machine, if you haven't try to install it from here Docker Hub.
docker pull owasp/zap2docker-stable
docker run -u zap -p 8080:8080 -i owasp/zap2docker-stable zap.sh -daemon -host 0.0.0.0 -port 8080 -config api.addrs.addr.name=.* -config api.addrs.addr.regex=true -config api.disablekey=true
docker-compose up -d
docker-compose up
3.Run your Selenium tests independently but within selenium tests configure the proxy to hit port 8080 (or whichever you are using).
docker exec $container_Id zap-cli report -o vulnerability.html -f HTML
============================
Open your windows PowerShell:
One of the easiest ways to start PowerShell in Windows is using the Run window. Press Win + R keys on your keyboard, then type PowerShell and press Enter or click OK.
Run these Commands:
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
In the above case, it was already installed, so you a message as 'Scoop is already installed'. You can run 'scoop update' to get the latest version any time, To install Allure, using Scoop, run the below command:
scoop install allure
brew install allure