SlideShare a Scribd company logo
1 of 10
Download to read offline
DEVOPS – CONTINUOUS
INTEGRATION
Selenium & Cucumber
CONTINUOUS INTEGRATION
Source
control
Continuous
Integration
Build
Automation
Build RepositoryAutomated
Testing
Automated
Release
Management
Development
Configuring Selenium in
Jenkins - Freestyle Project
Create a Java project in Eclipse using
option -> New -> Java Project -> Update
Project Name -> Click Libraries -> Add
External Jars -> Select Selenium-Server-
Standalone Jar file -> Add Library –>
Select TestNG – >Click Next – >Click
Finish –> Click Finish ->
Create a script file (mac)/bat file
(window) in the project directory using
syntax – “java –cp bin;lib/*
org.testng.TestNG testng.xml” and save
the file in same directory locally.
Configuring Selenium in
Jenkins - Freestyle Project
Create a freestyle project in Jenkins
using option –> New Item -> Update
project name -> Select Freestyle project
-> Press ok -> Click advance under
General -> Select custom workspace -
>update project home directory in the
directory field ->
Next step , under build ->Press Add build
step -> Select “Execute shell” -> Update
script file name in the command field ->
Press apply ->Press save ->
Now, a freestyle selenium project is
ready to build in Jenkins.
Configuring Selenium in
Jenkins - Maven Project
Verify & insure your Eclipse have
Maven and TestNG plugins installed ->
Create a Maven project in Eclipse
using option New -> Project -> Select
Maven Project -> Click next -> Check
“Create a simple project” -> Click Next
-> Update group ID field –> update
artifact ID field -> update name ->
update description -> click finish ->
Update the pom.xml file with
necessary Selenium & testing
dependencies and testng.xml file
location update->
Configuring Selenium in
Jenkins - Maven Project
Create a test program & generate
testing.xml using right click test java class
-> Select TestNG -> Convert to TestNG ->
save testng.xml file as per pom.xml
location specification ->
Next, in Jenkins -> Create New item –>
Enter an item name -> Select Maven
project -> Press ok -> Update pom.xml
location file in build section -> Press apply
–> Press save.
Now maven selenium project ready to
build in Jenkins.
Configuring Cucumber in
Jenkins - Maven Project
Create a project in Eclipse using
option -> New -> project -> select
Maven project -> press next -> check
create a simple project -> Press next -
> Update group ID -> Update artefact
ID -> Update name -> Update
description -> Press finish ->
Open pom.xml file -> Update latest
stable selenium, junit, cucumber-java,
cucumber-junit dependencies in the
pom.xml -> Press control^S ->
Configuring Cucumber in
Jenkins - Maven Project
Install cucumber software update for
eclipse from
http://cucumber.github.com/cucumber-
eclipse/update-site using option help ->
install new software -> Create a feature
file ->
Create a package and java class in
src/test/java folder using option new
package -> Name the package -> New
class -> Name the class -> Add
reference of the feature file in the class -
>
Configuring Cucumber in
Jenkins - Maven Project
Create a test step package and java class in
src/test/java folder using option new
package -> Name package -> New class ->
Name class -> Create test steps as per the
feature file and reference as glue in the
earlier defined class - >
In Jenkins, create new project using option -
> New Item -> Enter an item name -> Select
Maven -> Click ok -> Update location of the
the pom-xml file in next page under build
section-> Press apply -> Press save ->
Now, Maven cucumber project is ready to
build in Jenkins.
THANK YOU
http://solutionframework.blogspot.in

More Related Content

More from Abhay Kumar

Critical Chain Project Management & Theory of Constraints
Critical Chain Project Management & Theory of ConstraintsCritical Chain Project Management & Theory of Constraints
Critical Chain Project Management & Theory of ConstraintsAbhay Kumar
 
Continuous Integration Step by Step
Continuous Integration Step by StepContinuous Integration Step by Step
Continuous Integration Step by StepAbhay Kumar
 
Continuous integration
Continuous integrationContinuous integration
Continuous integrationAbhay Kumar
 
Release planning
Release planningRelease planning
Release planningAbhay Kumar
 
Learn scrum in half an hour
Learn scrum in half an hourLearn scrum in half an hour
Learn scrum in half an hourAbhay Kumar
 

More from Abhay Kumar (6)

Critical Chain Project Management & Theory of Constraints
Critical Chain Project Management & Theory of ConstraintsCritical Chain Project Management & Theory of Constraints
Critical Chain Project Management & Theory of Constraints
 
DevOps
DevOpsDevOps
DevOps
 
Continuous Integration Step by Step
Continuous Integration Step by StepContinuous Integration Step by Step
Continuous Integration Step by Step
 
Continuous integration
Continuous integrationContinuous integration
Continuous integration
 
Release planning
Release planningRelease planning
Release planning
 
Learn scrum in half an hour
Learn scrum in half an hourLearn scrum in half an hour
Learn scrum in half an hour
 

Recently uploaded

Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalLionel Briand
 
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
 
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
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsChristian Birchler
 
Understanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM ArchitectureUnderstanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM Architecturerahul_net
 
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
 
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
 
Ronisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited CatalogueRonisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited Catalogueitservices996
 
Patterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencePatterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencessuser9e7c64
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdfAndrey Devyatkin
 
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZSalesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZABSYZ Inc
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfDrew Moseley
 
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
 
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
 
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
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxRTS corp
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptxVinzoCenzo
 
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesAmazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesKrzysztofKkol1
 
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptxReal-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptxRTS corp
 

Recently uploaded (20)

Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive Goal
 
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...
 
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...
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
 
Understanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM ArchitectureUnderstanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM Architecture
 
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
 
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
 
Ronisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited CatalogueRonisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited Catalogue
 
Patterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencePatterns for automating API delivery. API conference
Patterns for automating API delivery. API conference
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
 
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZSalesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZ
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdf
 
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
 
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
 
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
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptx
 
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesAmazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
 
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptxReal-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
 

DevOps Continuous Integration -> Selenium -> Cucumber

  • 3. Configuring Selenium in Jenkins - Freestyle Project Create a Java project in Eclipse using option -> New -> Java Project -> Update Project Name -> Click Libraries -> Add External Jars -> Select Selenium-Server- Standalone Jar file -> Add Library –> Select TestNG – >Click Next – >Click Finish –> Click Finish -> Create a script file (mac)/bat file (window) in the project directory using syntax – “java –cp bin;lib/* org.testng.TestNG testng.xml” and save the file in same directory locally.
  • 4. Configuring Selenium in Jenkins - Freestyle Project Create a freestyle project in Jenkins using option –> New Item -> Update project name -> Select Freestyle project -> Press ok -> Click advance under General -> Select custom workspace - >update project home directory in the directory field -> Next step , under build ->Press Add build step -> Select “Execute shell” -> Update script file name in the command field -> Press apply ->Press save -> Now, a freestyle selenium project is ready to build in Jenkins.
  • 5. Configuring Selenium in Jenkins - Maven Project Verify & insure your Eclipse have Maven and TestNG plugins installed -> Create a Maven project in Eclipse using option New -> Project -> Select Maven Project -> Click next -> Check “Create a simple project” -> Click Next -> Update group ID field –> update artifact ID field -> update name -> update description -> click finish -> Update the pom.xml file with necessary Selenium & testing dependencies and testng.xml file location update->
  • 6. Configuring Selenium in Jenkins - Maven Project Create a test program & generate testing.xml using right click test java class -> Select TestNG -> Convert to TestNG -> save testng.xml file as per pom.xml location specification -> Next, in Jenkins -> Create New item –> Enter an item name -> Select Maven project -> Press ok -> Update pom.xml location file in build section -> Press apply –> Press save. Now maven selenium project ready to build in Jenkins.
  • 7. Configuring Cucumber in Jenkins - Maven Project Create a project in Eclipse using option -> New -> project -> select Maven project -> press next -> check create a simple project -> Press next - > Update group ID -> Update artefact ID -> Update name -> Update description -> Press finish -> Open pom.xml file -> Update latest stable selenium, junit, cucumber-java, cucumber-junit dependencies in the pom.xml -> Press control^S ->
  • 8. Configuring Cucumber in Jenkins - Maven Project Install cucumber software update for eclipse from http://cucumber.github.com/cucumber- eclipse/update-site using option help -> install new software -> Create a feature file -> Create a package and java class in src/test/java folder using option new package -> Name the package -> New class -> Name the class -> Add reference of the feature file in the class - >
  • 9. Configuring Cucumber in Jenkins - Maven Project Create a test step package and java class in src/test/java folder using option new package -> Name package -> New class -> Name class -> Create test steps as per the feature file and reference as glue in the earlier defined class - > In Jenkins, create new project using option - > New Item -> Enter an item name -> Select Maven -> Click ok -> Update location of the the pom-xml file in next page under build section-> Press apply -> Press save -> Now, Maven cucumber project is ready to build in Jenkins.