0% found this document useful (0 votes)
2 views13 pages

Continuous Integration Basics With Jenkins

This document provides an overview of continuous integration using Jenkins, including installation tips, project configurations, and test automation basics with Selenium and Java. It outlines how to set up a Jenkins job, configure a test suite, and schedule builds. Additionally, it lists useful Jenkins plugins and offers a link to the source code for a complete project.

Uploaded by

sxoterry
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views13 pages

Continuous Integration Basics With Jenkins

This document provides an overview of continuous integration using Jenkins, including installation tips, project configurations, and test automation basics with Selenium and Java. It outlines how to set up a Jenkins job, configure a test suite, and schedule builds. Additionally, it lists useful Jenkins plugins and offers a link to the source code for a complete project.

Uploaded by

sxoterry
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Continuous integration basics

with Jenkins
Test automation basics with Selenium & Java
By:
Evgeny Novikov
Email:
xevgnov@[Link]
Project configurations
1) configure compiler versions (to run out of Intellij Idea)
<[Link]>1.8</[Link]>
<[Link]>1.8</[Link]>

2) add maven-surefire-plugin
<plugin>
<groupId>[Link]</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>[Link]</suiteXmlFile>
</suiteXmlFiles> By:
<reportsDirectory>C:\Program Files Evgeny Novikov
(x86)\Jenkins\workspace\TestAutomationRun\target</reportsDirectory> Email:
</configuration> xevgnov@[Link]
</plugin>
Test suite example
<!DOCTYPE suite SYSTEM "[Link] >
<suite name="All Tests">
<test name="Regression" preserve-order="true" >
<classes>
<class name="[Link]" />
</classes>
</test>
</suite>
Introduction to continuous integration
1) What is CI
2) Popular CI tools

By:
Evgeny Novikov
Email:
xevgnov@[Link]
Jenkins installation tips
1) Download & install Jenkins: [Link]

2) First run settings in Jenkins Check if Jenkins service


started

By:
Evgeny Novikov
Email:
xevgnov@[Link]
Access your Jenkins
1) via localhost - your PC only

[Link]

2) via IP address - other PCs

[Link]

By:
Evgeny Novikov
Email:
xevgnov@[Link]
Useful Jenkins Plugins
1) TestNG Results Plugin
2) Maven Integration

By:
Evgeny Novikov
Email:
xevgnov@[Link]
How to create simple Jenkins job

3 By:
Evgeny Novikov
Email:
clean test -DsuiteXmlFile=[Link] -[Link]=true -Durl=[Link] -Dbrowser=CHROME xevgnov@[Link]
Configure sample scheduler

30 22 * * *
- run every day at 22:30

H H(18-19) * * *
- run every day between 18 and 19

By:
Evgeny Novikov
Email:
Run build every day from monday till friday at 10:30 xevgnov@[Link]
Test results

By:
Evgeny Novikov
Email:
xevgnov@[Link]
TestNG Results plugin

By:
Evgeny Novikov
Email:
xevgnov@[Link]
1) Install Jenkins
2) Instal Maven and TestNg
plugins
Exercise 3) Create job for maven project
4) Configure the job (path to pom,
Configure tests on your local run tests command)
Jenkins 5) Configure scheduler
Enjoy!
The source code for complete project is available here:

[Link]
kwithseleniumjava/src/master/

By:
Evgeny Novikov
Email:
xevgnov@[Link]

You might also like