Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Continuous Integration with Jenkins

You're reading from   Learning Continuous Integration with Jenkins

Arrow left icon
Product type Paperback
Published in May 2016
Publisher Packt
ISBN-13 9781785284830
Length 542 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Nikhil Pathania Nikhil Pathania
Author Profile Icon Nikhil Pathania
Nikhil Pathania
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Concepts of Continuous Integration FREE CHAPTER 2. Setting up Jenkins 3. Configuring Jenkins 4. Continuous Integration Using Jenkins – Part I 5. Continuous Integration Using Jenkins – Part II 6. Continuous Delivery Using Jenkins 7. Continuous Deployment Using Jenkins 8. Jenkins Best Practices Index

Creating a simple user acceptance test using Selenium and TestNG


In order to perform a user acceptance test, we won't be installing any tool or software on the testing server nor anything on the Jenkins server or the developer's machine.

Tools such as Selenium and TestNG will be defined as part of the pom.xml file and everything will be done using Eclipse. The user acceptance test will be a part of the code, just like the unit test and the integration test.

Installing TestNG for Eclipse

To install TestNG, follow these steps:

  1. From the Eclipse IDE menu, go to Help | Eclipse Marketplace.

  2. In the window that opens, select the Search tab and look for Testng.

  3. Once you see TestNG for Eclipse, install it:

Modifying the index.jsp file

Our user acceptance test is going to be a simple example in which we will try to check the payslip page title. It should be PAY SLIP.

Following are the steps to modify the index.jsp file:

  1. Open index.jsp from the following path: /payslip/src/main/webapp/.

  2. Add the title PAY SLIP...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image