ZA Proxy installation and configuration
Quick Start for ZAP:
Install JDK.
#yum install java-1.8.0-openjdk*
Download ZAP installation script.
#wget https://github.com/zaproxy/zaproxy/releases/download/2.6.0/ZAP_2_6_0_unix.sh
Change permission of the installation script and execute it.
#chmod 777 ZAP_2_6_0_unix.sh
#./ZAP_2_6_0_unix.sh
1.Installing required libraries.
#gem install selenium-web driver
2.Install IO
#gem install io
3.Install Rest-Client
#yum install gcc-c++
#gem install rest-client
4.Install RSpec
#gem install rspec
5.Install and configure the headless Firefox
#yum -y install firefox Xvfb libXfont Xorg
#yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"
#Xvfb :99 -ac -screen 0 1280x1024x24 &
#export DISPLAY=:99
6.Download and setup geckodriver.
#wget https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz
#tar -xvzf geckodriver-v0.18.0-linux64.tar.gz
#mv geckodriver /usr/lib64
7.Add following lines to ~/.bash_profile.
$PATH=$PATH:/usr/lib64
And run source ~/.bash_profile.
8.Alternatively, we can use Chromedriver:
Create a file called /etc/yum.repos.d/google-chrome.repo and add the following lines of code to it
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
Check whether the latest version available from the Google own repository using
#yum info google-chrome-stable
Update yum using
#yum update
Install Chrome using
#yum install google-chrome-stable unzip
Download Chromedriver using
#wget https://chromedriver.storage.googleapis.com/2.32/chromedriver_linux64.zip
Unzip Chromedriver using
#unzip chromedriver_linux64.zip
Move Chromedriver to a place in $PATH using
#mv chromedriver bin/
Relevant Blogs:
Recent Comments
No comments
Leave a Comment
We will be happy to hear what you think about this post