filmov
tv
Setup and Run Selenium Tests in Headless Chrome with Jenkins on an AWS EC2 Linux Server
![preview_player](https://i.ytimg.com/vi/d22Jcw5z-3I/sddefault.jpg)
Показать описание
This video will explain the following:
- Setup Java, Maven, Git, Chrome Binary and Chrome Driver in AWS EC2 Linux Server
- Configure Java, Maven and Git Tools in Jenkins
- Create Selenium Project from GitHub
- Use Maven Goal as a build step in Jenkins
- Run Selenium Tests in Headless Chrome Browser with Jenkins on a EC2 Linux Server
Prerequisites:
Setup Jenkins on AWS EC2 Server.
AWS EC2 Linux Commands:
Choose correct version of Java:
update-alternatives --config java
Find Java Path:
readlink -f /usr/bin/java
Edit .bashrc file:
vim .bashrc
Enter the following in .bashrc and save the file
PATH=$JAVA_HOME/bin:$PATH
Apply the changes:
source .bashrc
Check if environment variables are set:
$ echo $JAVA_HOME
$ echo $PATH
Install Git:
sudo yum install git -y
Find Git Path:
git --exec-path
Add a repository with a Maven package:
Enter the following to set the version number for the packages:
Install Maven:
sudo yum install -y apache-maven
Find Maven Path:
mvn -version
Install Chrome Driver:
sudo mv chromedriver /usr/bin/chromedriver
chromedriver –version
Install Chrome Binary:
sudo mv /usr/bin/google-chrome-stable /usr/bin/google-chrome
google-chrome –version
---------------------------------------------------------------------
- Setup Java, Maven, Git, Chrome Binary and Chrome Driver in AWS EC2 Linux Server
- Configure Java, Maven and Git Tools in Jenkins
- Create Selenium Project from GitHub
- Use Maven Goal as a build step in Jenkins
- Run Selenium Tests in Headless Chrome Browser with Jenkins on a EC2 Linux Server
Prerequisites:
Setup Jenkins on AWS EC2 Server.
AWS EC2 Linux Commands:
Choose correct version of Java:
update-alternatives --config java
Find Java Path:
readlink -f /usr/bin/java
Edit .bashrc file:
vim .bashrc
Enter the following in .bashrc and save the file
PATH=$JAVA_HOME/bin:$PATH
Apply the changes:
source .bashrc
Check if environment variables are set:
$ echo $JAVA_HOME
$ echo $PATH
Install Git:
sudo yum install git -y
Find Git Path:
git --exec-path
Add a repository with a Maven package:
Enter the following to set the version number for the packages:
Install Maven:
sudo yum install -y apache-maven
Find Maven Path:
mvn -version
Install Chrome Driver:
sudo mv chromedriver /usr/bin/chromedriver
chromedriver –version
Install Chrome Binary:
sudo mv /usr/bin/google-chrome-stable /usr/bin/google-chrome
google-chrome –version
---------------------------------------------------------------------
Комментарии