SlideShare a Scribd company logo
1 of 19
Download to read offline
Building the Test Automation Framework
Building the
Test Automation Framework
Module 2 : A Practical Introduction to Jenkins for Testers
The Test
Automation
Framework
Building the
AWS Environment
1. Installing Jenkins
3. Configuring Jenkins
4. Deploying the AUT
Setting Up and Running
with Jenkins
2. Install Jenkins Plugins
Why Use Jenkins?
Jenkins is a brilliant process automation tool for testers
Prerequisites
1. Windows machine with RDP running
3. Private Key for SSH connection (Windows to Ubuntu)
4. Make sure your Linux ubuntu machine is NOT running
2. AWS Access Keys (so that Jenkins can connect to AWS)
Module PartsPart 1: Installing Jenkins
Part 2: The Main Jenkins Configuration Areas
Part 3: Jenkins' Plugins
Part 4: Installing Plugins
Part 5: Configuring Jenkins
Part 6: Configuring Jenkins - Amazon AWS Integration
Part 7: Configuring Jenkins - Starting the Linux Amazon Instance Slave
Part 8: Configuring Jenkins - Instance Initialisation Script
Part 9: A Few Points about our Jenkins Slave Machine
Part 10: Setting Jenkins up to install the AUT
Part 11: Jenkins Post Build Actions and Smoke Tests
Part 12: Starting Subsequent Jenkins Builds
PART 1:
Installing Jenkins
https://jenkins-ci.org/
“It’s so simple it’s almost disappointing!”
Download
Extract and install
Then go to: http://localhost:8080/
PART 2:
The Main Jenkins
Configuration Areas
Configure Jenkins and
connection to Amazon AWS
Configure Nodes we want to
create (e.g. Ubuntu instance)
Add plugins to enable different
types of tasks
Create a new job or project
Monitor status of our Jobs
and see the results
Start a job manually
See what Jenkins
is currently up to
PART 3:
Jenkins Plugins
There's a plug in module to help you automate just about any task
you need to automate. We’ll be using:
Amazon EC2 Plugin: Used to run up an Amazon EC2
instance automatically
SSH Slaves Plugin: Used with our SSH private key to connect
to the Amazon EC2 client machine.
GitHub Plugin: Used to connect to GitHub and download the
source for our application under test automatically
Post Build Tasks Plugin: Used to check the logs for
successful install messages and run a few checks to make
sure the AUT is running correctly.
PART 4:
Installing Plugins
To install Plugins you need to:
PART 5:
Configuring Jenkins1. Configure Integration to AWS
2. Configure to start our Linux Ubuntu machine on demand
3. Configure initialisation script for the Linux Ubuntu instances
4. Configure the 'job' that kicks off the build, installs our AUT and runs some tests
PART 6:
Configuring Jenkins -
Amazon AWS
Integration
1. Configure Integration to AWS
PART 7:
Configuring Jenkins -
Starting the Linux
Amazon Instance Slave
2. Configure to start our Linux
Ubuntu machine on demand
PART 8:
Configuring Jenkins -
Instance Initialisation
Script
3. Configure initialisation script for
the Linux Ubuntu instances
PART 9:
A Few Points about
our Jenkins Slave
Machine
Status of the node/slave
Terminate the Amazon EC2 instance for this slave.
View and modify some of the configuration parameters for this slave
Details about builds we've run on this slave.
Stats on how hard this machine is having to work.
Run Groovy script on the slave machine from our Jenkins master machine
Details about the running up and install activities that took place when we created this instance
Full list of system properties
Disconnect Jenkins from the slave but leave the instance running still (you can reconnect later)
PART 10:
Setting Jenkins up to
install the AUT
4. Configure the 'job' that kicks off the
build and install of our AUT
Note: In practice, when you're testing your own applications, you'll need to replace the
Rocket Chat build and install scripts with your own scripts.
PART 11:
Jenkins Post Build
Actions and Smoke
Tests
Configure Jenkins to run a few checks and tests just
to confirm that things completed without any issues.
PART 12:
Starting Subsequent
Jenkins Builds
When you kick off a new build:
a. If this Node has been shutdown:
We’ll start from the beginning and create a new EC2 instance*
b. If this Node hasn’t been shut down:
The slave is still running, so Jenkins just needs to start a new build and install using the same machine
*Note: if the node has been shutdown, and then a new node run up for a subsequent build, then the new
node with have a NEW IP and HOSTNAME.
Idle termination time: 30
There is a Node configuration setting called Idle
Termination time. If the EC2 Jenkins node (e.g.
your Linux Ubuntu) is inactive for this period of
time Jenkins will Terminate it automatically

More Related Content

What's hot

Continuous integration using jenkins
Continuous integration using jenkinsContinuous integration using jenkins
Continuous integration using jenkinsVinay H G
 
Continuous Integration (Jenkins/Hudson)
Continuous Integration (Jenkins/Hudson)Continuous Integration (Jenkins/Hudson)
Continuous Integration (Jenkins/Hudson)Dennys Hsieh
 
Jenkins tutorial for beginners
Jenkins tutorial for beginnersJenkins tutorial for beginners
Jenkins tutorial for beginnersBugRaptors
 
Introduction to jenkins
Introduction to jenkinsIntroduction to jenkins
Introduction to jenkinsAbe Diaz
 
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day ThailandCI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day ThailandTroublemaker Khunpech
 
Jenkins introduction
Jenkins introductionJenkins introduction
Jenkins introductionGourav Varma
 
Automate your build on Android with Jenkins
Automate your build on Android with JenkinsAutomate your build on Android with Jenkins
Automate your build on Android with JenkinsBeMyApp
 
Android + jenkins
Android + jenkinsAndroid + jenkins
Android + jenkinsFred Lin
 
Seminar continuous delivery 19092013
Seminar continuous delivery 19092013Seminar continuous delivery 19092013
Seminar continuous delivery 19092013Joris De Winne
 
Jenkins Introduction
Jenkins IntroductionJenkins Introduction
Jenkins IntroductionPavan Gupta
 
Introduction to Continuous Integration with Jenkins
Introduction to Continuous Integration with JenkinsIntroduction to Continuous Integration with Jenkins
Introduction to Continuous Integration with JenkinsBrice Argenson
 
Let’s start Continuous Integration with jenkins
Let’s start Continuous Integration with jenkinsLet’s start Continuous Integration with jenkins
Let’s start Continuous Integration with jenkinsTomohide Kakeya
 
Hacking Jenkins
Hacking JenkinsHacking Jenkins
Hacking JenkinsMiro Cupak
 
Automated android testing using jenkins ci
Automated android testing using jenkins ciAutomated android testing using jenkins ci
Automated android testing using jenkins cisveinungkb
 

What's hot (20)

Continuous integration using jenkins
Continuous integration using jenkinsContinuous integration using jenkins
Continuous integration using jenkins
 
Continuous Integration (Jenkins/Hudson)
Continuous Integration (Jenkins/Hudson)Continuous Integration (Jenkins/Hudson)
Continuous Integration (Jenkins/Hudson)
 
Jenkins tutorial for beginners
Jenkins tutorial for beginnersJenkins tutorial for beginners
Jenkins tutorial for beginners
 
Jenkins CI
Jenkins CIJenkins CI
Jenkins CI
 
Introduction to jenkins
Introduction to jenkinsIntroduction to jenkins
Introduction to jenkins
 
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day ThailandCI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
 
Jenkins
JenkinsJenkins
Jenkins
 
Jenkins introduction
Jenkins introductionJenkins introduction
Jenkins introduction
 
Automate your build on Android with Jenkins
Automate your build on Android with JenkinsAutomate your build on Android with Jenkins
Automate your build on Android with Jenkins
 
Android + jenkins
Android + jenkinsAndroid + jenkins
Android + jenkins
 
Seminar continuous delivery 19092013
Seminar continuous delivery 19092013Seminar continuous delivery 19092013
Seminar continuous delivery 19092013
 
Jenkins Introduction
Jenkins IntroductionJenkins Introduction
Jenkins Introduction
 
Jenkins-CI
Jenkins-CIJenkins-CI
Jenkins-CI
 
Introduction to Continuous Integration with Jenkins
Introduction to Continuous Integration with JenkinsIntroduction to Continuous Integration with Jenkins
Introduction to Continuous Integration with Jenkins
 
Let’s start Continuous Integration with jenkins
Let’s start Continuous Integration with jenkinsLet’s start Continuous Integration with jenkins
Let’s start Continuous Integration with jenkins
 
Jenkins CI
Jenkins CIJenkins CI
Jenkins CI
 
Jenkins tutorial
Jenkins tutorialJenkins tutorial
Jenkins tutorial
 
Hacking Jenkins
Hacking JenkinsHacking Jenkins
Hacking Jenkins
 
Automated android testing using jenkins ci
Automated android testing using jenkins ciAutomated android testing using jenkins ci
Automated android testing using jenkins ci
 
Jenkins CI presentation
Jenkins CI presentationJenkins CI presentation
Jenkins CI presentation
 

Viewers also liked

Jenkins as the Test Reporting Framework
Jenkins as the Test Reporting FrameworkJenkins as the Test Reporting Framework
Jenkins as the Test Reporting FrameworkNitin Sharma
 
Automation testing strategy, approach & planning
Automation testing  strategy, approach & planningAutomation testing  strategy, approach & planning
Automation testing strategy, approach & planningSivaprasanthRentala1975
 
QConSP 2014 - Continuous Delivery - Part 03 - Continuous Integration
QConSP 2014 - Continuous Delivery - Part 03 - Continuous IntegrationQConSP 2014 - Continuous Delivery - Part 03 - Continuous Integration
QConSP 2014 - Continuous Delivery - Part 03 - Continuous IntegrationRodrigo Russo
 
Functional testing the_good_the_bad_and_the_ugly
Functional testing the_good_the_bad_and_the_uglyFunctional testing the_good_the_bad_and_the_ugly
Functional testing the_good_the_bad_and_the_uglyJohn Ferguson Smart Limited
 
T-Mobile Customer Presentation
T-Mobile Customer PresentationT-Mobile Customer Presentation
T-Mobile Customer PresentationSplunk
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterAutomation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterVijayChowthri Nagaprakasham
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comIdexcel Technologies
 
Introduction to Test Automation - Technology and Tools
Introduction to Test Automation - Technology and ToolsIntroduction to Test Automation - Technology and Tools
Introduction to Test Automation - Technology and ToolsKMS Technology
 
Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009
Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009
Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009guest305d2060
 
Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009
Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009
Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009guest305d2060
 
Continuous Development and Deployment: Workflows and Patterns
Continuous Development and Deployment: Workflows and PatternsContinuous Development and Deployment: Workflows and Patterns
Continuous Development and Deployment: Workflows and PatternsAOE
 
Nursing: An Historical Perspective (Dr. Hall, rev 6-27-13)
Nursing:  An Historical Perspective (Dr. Hall, rev 6-27-13)Nursing:  An Historical Perspective (Dr. Hall, rev 6-27-13)
Nursing: An Historical Perspective (Dr. Hall, rev 6-27-13)University of Miami
 
Continuous Integration/Deployment with Docker and Jenkins
Continuous Integration/Deployment with Docker and JenkinsContinuous Integration/Deployment with Docker and Jenkins
Continuous Integration/Deployment with Docker and JenkinsFrancesco Bruni
 
Continuous Delivery with Jenkins Workflow
Continuous Delivery with Jenkins WorkflowContinuous Delivery with Jenkins Workflow
Continuous Delivery with Jenkins WorkflowUdaypal Aarkoti
 
Business Value of CI, CD, & DevOpsSec: Scaling to Billion User Systems Using ...
Business Value of CI, CD, & DevOpsSec: Scaling to Billion User Systems Using ...Business Value of CI, CD, & DevOpsSec: Scaling to Billion User Systems Using ...
Business Value of CI, CD, & DevOpsSec: Scaling to Billion User Systems Using ...David Rico
 
Continuous integration
Continuous integrationContinuous integration
Continuous integrationamscanne
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous Integrationdrluckyspin
 

Viewers also liked (20)

Jenkins as the Test Reporting Framework
Jenkins as the Test Reporting FrameworkJenkins as the Test Reporting Framework
Jenkins as the Test Reporting Framework
 
Automation testing strategy, approach & planning
Automation testing  strategy, approach & planningAutomation testing  strategy, approach & planning
Automation testing strategy, approach & planning
 
QConSP 2014 - Continuous Delivery - Part 03 - Continuous Integration
QConSP 2014 - Continuous Delivery - Part 03 - Continuous IntegrationQConSP 2014 - Continuous Delivery - Part 03 - Continuous Integration
QConSP 2014 - Continuous Delivery - Part 03 - Continuous Integration
 
XStudio
XStudioXStudio
XStudio
 
Functional testing the_good_the_bad_and_the_ugly
Functional testing the_good_the_bad_and_the_uglyFunctional testing the_good_the_bad_and_the_ugly
Functional testing the_good_the_bad_and_the_ugly
 
T-Mobile Customer Presentation
T-Mobile Customer PresentationT-Mobile Customer Presentation
T-Mobile Customer Presentation
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterAutomation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional Tester
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.com
 
Introduction to Test Automation - Technology and Tools
Introduction to Test Automation - Technology and ToolsIntroduction to Test Automation - Technology and Tools
Introduction to Test Automation - Technology and Tools
 
Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009
Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009
Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009
 
Mary Mahoney
Mary MahoneyMary Mahoney
Mary Mahoney
 
Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009
Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009
Una 602 Unti 2 Assignment Blog Mary Eliza Mahoney June 30, 2009
 
Jenkins Powerpoint
Jenkins  PowerpointJenkins  Powerpoint
Jenkins Powerpoint
 
Continuous Development and Deployment: Workflows and Patterns
Continuous Development and Deployment: Workflows and PatternsContinuous Development and Deployment: Workflows and Patterns
Continuous Development and Deployment: Workflows and Patterns
 
Nursing: An Historical Perspective (Dr. Hall, rev 6-27-13)
Nursing:  An Historical Perspective (Dr. Hall, rev 6-27-13)Nursing:  An Historical Perspective (Dr. Hall, rev 6-27-13)
Nursing: An Historical Perspective (Dr. Hall, rev 6-27-13)
 
Continuous Integration/Deployment with Docker and Jenkins
Continuous Integration/Deployment with Docker and JenkinsContinuous Integration/Deployment with Docker and Jenkins
Continuous Integration/Deployment with Docker and Jenkins
 
Continuous Delivery with Jenkins Workflow
Continuous Delivery with Jenkins WorkflowContinuous Delivery with Jenkins Workflow
Continuous Delivery with Jenkins Workflow
 
Business Value of CI, CD, & DevOpsSec: Scaling to Billion User Systems Using ...
Business Value of CI, CD, & DevOpsSec: Scaling to Billion User Systems Using ...Business Value of CI, CD, & DevOpsSec: Scaling to Billion User Systems Using ...
Business Value of CI, CD, & DevOpsSec: Scaling to Billion User Systems Using ...
 
Continuous integration
Continuous integrationContinuous integration
Continuous integration
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous Integration
 

Similar to Building the Test Automation Framework - Jenkins for Testers

How to Install and Configure Jenkins on Centos 7
How to Install and Configure Jenkins on Centos 7How to Install and Configure Jenkins on Centos 7
How to Install and Configure Jenkins on Centos 7AniketGoyal14
 
Aws project jenkins-build-server
Aws project jenkins-build-serverAws project jenkins-build-server
Aws project jenkins-build-serversaifam
 
Continuous Integration using Jenkins with Python
Continuous Integration using Jenkins with PythonContinuous Integration using Jenkins with Python
Continuous Integration using Jenkins with PythonInexture Solutions
 
Creating selenium remote control tests
Creating selenium remote control testsCreating selenium remote control tests
Creating selenium remote control testsDang Nguyen
 
sfdx continuous Integration with Jenkins on aws (Part I)
sfdx continuous Integration with Jenkins on aws (Part I)sfdx continuous Integration with Jenkins on aws (Part I)
sfdx continuous Integration with Jenkins on aws (Part I)Jérémy Vial
 
Releasing Software Quickly and Reliably with AWS CodePipline
Releasing Software Quickly and Reliably with AWS CodePiplineReleasing Software Quickly and Reliably with AWS CodePipline
Releasing Software Quickly and Reliably with AWS CodePiplineAmazon Web Services
 
Scaling Jenkins Devops presentation
Scaling Jenkins Devops presentationScaling Jenkins Devops presentation
Scaling Jenkins Devops presentationprajdesh26
 
(DEV202) Under the Desk to the AWS Cloud with Windows PowerShell
(DEV202) Under the Desk to the AWS Cloud with Windows PowerShell(DEV202) Under the Desk to the AWS Cloud with Windows PowerShell
(DEV202) Under the Desk to the AWS Cloud with Windows PowerShellAmazon Web Services
 
Leveraging Elastic Web-Scale Computing with AWS
Leveraging Elastic Web-Scale Computing with AWSLeveraging Elastic Web-Scale Computing with AWS
Leveraging Elastic Web-Scale Computing with AWSAmazon Web Services
 
Drupal Continuous Integration with Jenkins - The Basics
Drupal Continuous Integration with Jenkins - The BasicsDrupal Continuous Integration with Jenkins - The Basics
Drupal Continuous Integration with Jenkins - The BasicsJohn Smith
 
Installing WordPress on AWS
Installing WordPress on AWSInstalling WordPress on AWS
Installing WordPress on AWSManish Jain
 
Setting up the hyperledger composer in ubuntu
Setting up the hyperledger composer in ubuntuSetting up the hyperledger composer in ubuntu
Setting up the hyperledger composer in ubuntukesavan N B
 
Setting up a kubernetes cluster on ubuntu 18.04- loves cloud
Setting up a kubernetes cluster on ubuntu 18.04- loves cloudSetting up a kubernetes cluster on ubuntu 18.04- loves cloud
Setting up a kubernetes cluster on ubuntu 18.04- loves cloudLoves Cloud
 
Creating and managing amazon ec2 instances(linux)
Creating and managing amazon ec2 instances(linux)Creating and managing amazon ec2 instances(linux)
Creating and managing amazon ec2 instances(linux)Pradeep Sunny
 
Eclipse cq5 configuration
Eclipse cq5 configurationEclipse cq5 configuration
Eclipse cq5 configurationIndrasena Reddy
 

Similar to Building the Test Automation Framework - Jenkins for Testers (20)

How to Install and Configure Jenkins on Centos 7
How to Install and Configure Jenkins on Centos 7How to Install and Configure Jenkins on Centos 7
How to Install and Configure Jenkins on Centos 7
 
Aws project jenkins-build-server
Aws project jenkins-build-serverAws project jenkins-build-server
Aws project jenkins-build-server
 
Amazon cloudtutorial
Amazon cloudtutorialAmazon cloudtutorial
Amazon cloudtutorial
 
Continuous Integration using Jenkins with Python
Continuous Integration using Jenkins with PythonContinuous Integration using Jenkins with Python
Continuous Integration using Jenkins with Python
 
Creating selenium remote control tests
Creating selenium remote control testsCreating selenium remote control tests
Creating selenium remote control tests
 
JenkinsCI
JenkinsCIJenkinsCI
JenkinsCI
 
sfdx continuous Integration with Jenkins on aws (Part I)
sfdx continuous Integration with Jenkins on aws (Part I)sfdx continuous Integration with Jenkins on aws (Part I)
sfdx continuous Integration with Jenkins on aws (Part I)
 
Releasing Software Quickly and Reliably with AWS CodePipline
Releasing Software Quickly and Reliably with AWS CodePiplineReleasing Software Quickly and Reliably with AWS CodePipline
Releasing Software Quickly and Reliably with AWS CodePipline
 
Scaling Jenkins Devops presentation
Scaling Jenkins Devops presentationScaling Jenkins Devops presentation
Scaling Jenkins Devops presentation
 
(DEV202) Under the Desk to the AWS Cloud with Windows PowerShell
(DEV202) Under the Desk to the AWS Cloud with Windows PowerShell(DEV202) Under the Desk to the AWS Cloud with Windows PowerShell
(DEV202) Under the Desk to the AWS Cloud with Windows PowerShell
 
PDF_Article
PDF_ArticlePDF_Article
PDF_Article
 
Leveraging Elastic Web-Scale Computing with AWS
Leveraging Elastic Web-Scale Computing with AWSLeveraging Elastic Web-Scale Computing with AWS
Leveraging Elastic Web-Scale Computing with AWS
 
Drupal Continuous Integration with Jenkins - The Basics
Drupal Continuous Integration with Jenkins - The BasicsDrupal Continuous Integration with Jenkins - The Basics
Drupal Continuous Integration with Jenkins - The Basics
 
Installing WordPress on AWS
Installing WordPress on AWSInstalling WordPress on AWS
Installing WordPress on AWS
 
Setting up the hyperledger composer in ubuntu
Setting up the hyperledger composer in ubuntuSetting up the hyperledger composer in ubuntu
Setting up the hyperledger composer in ubuntu
 
Setting up a kubernetes cluster on ubuntu 18.04- loves cloud
Setting up a kubernetes cluster on ubuntu 18.04- loves cloudSetting up a kubernetes cluster on ubuntu 18.04- loves cloud
Setting up a kubernetes cluster on ubuntu 18.04- loves cloud
 
Creating and managing amazon ec2 instances(linux)
Creating and managing amazon ec2 instances(linux)Creating and managing amazon ec2 instances(linux)
Creating and managing amazon ec2 instances(linux)
 
Jenkins Tutorial.pdf
Jenkins Tutorial.pdfJenkins Tutorial.pdf
Jenkins Tutorial.pdf
 
Jenkins presentation
Jenkins presentationJenkins presentation
Jenkins presentation
 
Eclipse cq5 configuration
Eclipse cq5 configurationEclipse cq5 configuration
Eclipse cq5 configuration
 

Recently uploaded

Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptxVinzoCenzo
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Rob Geurden
 
What’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesWhat’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesVictoriaMetrics
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics
 
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonLeveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonApplitools
 
Zer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdfZer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdfmaor17
 
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdfPros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdfkalichargn70th171
 
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...OnePlan Solutions
 
eSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolseSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolsosttopstonverter
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...OnePlan Solutions
 
Ronisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited CatalogueRonisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited Catalogueitservices996
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfRTS corp
 
2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shardsChristopher Curtin
 
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jGraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jNeo4j
 
SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?Alexandre Beguel
 
Large Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLarge Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLionel Briand
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldRoberto Pérez Alcolea
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...Bert Jan Schrijver
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorTier1 app
 
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxUI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxAndreas Kunz
 

Recently uploaded (20)

Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptx
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...
 
What’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesWhat’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 Updates
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
 
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonLeveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
 
Zer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdfZer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdf
 
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdfPros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
 
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
 
eSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolseSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration tools
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
 
Ronisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited CatalogueRonisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited Catalogue
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
 
2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards
 
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jGraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
 
SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?
 
Large Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLarge Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and Repair
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository world
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryError
 
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxUI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
 

Building the Test Automation Framework - Jenkins for Testers

  • 1. Building the Test Automation Framework Building the Test Automation Framework Module 2 : A Practical Introduction to Jenkins for Testers
  • 4. 1. Installing Jenkins 3. Configuring Jenkins 4. Deploying the AUT Setting Up and Running with Jenkins 2. Install Jenkins Plugins
  • 5. Why Use Jenkins? Jenkins is a brilliant process automation tool for testers
  • 6. Prerequisites 1. Windows machine with RDP running 3. Private Key for SSH connection (Windows to Ubuntu) 4. Make sure your Linux ubuntu machine is NOT running 2. AWS Access Keys (so that Jenkins can connect to AWS)
  • 7. Module PartsPart 1: Installing Jenkins Part 2: The Main Jenkins Configuration Areas Part 3: Jenkins' Plugins Part 4: Installing Plugins Part 5: Configuring Jenkins Part 6: Configuring Jenkins - Amazon AWS Integration Part 7: Configuring Jenkins - Starting the Linux Amazon Instance Slave Part 8: Configuring Jenkins - Instance Initialisation Script Part 9: A Few Points about our Jenkins Slave Machine Part 10: Setting Jenkins up to install the AUT Part 11: Jenkins Post Build Actions and Smoke Tests Part 12: Starting Subsequent Jenkins Builds
  • 8. PART 1: Installing Jenkins https://jenkins-ci.org/ “It’s so simple it’s almost disappointing!” Download Extract and install Then go to: http://localhost:8080/
  • 9. PART 2: The Main Jenkins Configuration Areas Configure Jenkins and connection to Amazon AWS Configure Nodes we want to create (e.g. Ubuntu instance) Add plugins to enable different types of tasks Create a new job or project Monitor status of our Jobs and see the results Start a job manually See what Jenkins is currently up to
  • 10. PART 3: Jenkins Plugins There's a plug in module to help you automate just about any task you need to automate. We’ll be using: Amazon EC2 Plugin: Used to run up an Amazon EC2 instance automatically SSH Slaves Plugin: Used with our SSH private key to connect to the Amazon EC2 client machine. GitHub Plugin: Used to connect to GitHub and download the source for our application under test automatically Post Build Tasks Plugin: Used to check the logs for successful install messages and run a few checks to make sure the AUT is running correctly.
  • 11. PART 4: Installing Plugins To install Plugins you need to:
  • 12. PART 5: Configuring Jenkins1. Configure Integration to AWS 2. Configure to start our Linux Ubuntu machine on demand 3. Configure initialisation script for the Linux Ubuntu instances 4. Configure the 'job' that kicks off the build, installs our AUT and runs some tests
  • 13. PART 6: Configuring Jenkins - Amazon AWS Integration 1. Configure Integration to AWS
  • 14. PART 7: Configuring Jenkins - Starting the Linux Amazon Instance Slave 2. Configure to start our Linux Ubuntu machine on demand
  • 15. PART 8: Configuring Jenkins - Instance Initialisation Script 3. Configure initialisation script for the Linux Ubuntu instances
  • 16. PART 9: A Few Points about our Jenkins Slave Machine Status of the node/slave Terminate the Amazon EC2 instance for this slave. View and modify some of the configuration parameters for this slave Details about builds we've run on this slave. Stats on how hard this machine is having to work. Run Groovy script on the slave machine from our Jenkins master machine Details about the running up and install activities that took place when we created this instance Full list of system properties Disconnect Jenkins from the slave but leave the instance running still (you can reconnect later)
  • 17. PART 10: Setting Jenkins up to install the AUT 4. Configure the 'job' that kicks off the build and install of our AUT Note: In practice, when you're testing your own applications, you'll need to replace the Rocket Chat build and install scripts with your own scripts.
  • 18. PART 11: Jenkins Post Build Actions and Smoke Tests Configure Jenkins to run a few checks and tests just to confirm that things completed without any issues.
  • 19. PART 12: Starting Subsequent Jenkins Builds When you kick off a new build: a. If this Node has been shutdown: We’ll start from the beginning and create a new EC2 instance* b. If this Node hasn’t been shut down: The slave is still running, so Jenkins just needs to start a new build and install using the same machine *Note: if the node has been shutdown, and then a new node run up for a subsequent build, then the new node with have a NEW IP and HOSTNAME. Idle termination time: 30 There is a Node configuration setting called Idle Termination time. If the EC2 Jenkins node (e.g. your Linux Ubuntu) is inactive for this period of time Jenkins will Terminate it automatically