Book Image

Jenkins Essentials - Second Edition

By : Mitesh Soni
Book Image

Jenkins Essentials - Second Edition

By: Mitesh Soni

Overview of this book

<p>In agile development practices, developers need to integrate their work frequently to fix bugs or to create a new feature or functionality. Jenkins is used specifically for Continuous Integration, helping to enforce the principles of agile development. This book focuses on the latest and stable release of Jenkins (2.5 and later), featuring the latest features, such as Pipeline as Code, the new setup experience, and the improved UI. With the all-new Pipeline as Code feature, you will be able to build simple or advanced pipelines easily and rapidly, hence improving your teams' productivity.</p> <p>This book begins by tackling the installation of the necessary software dependencies and libraries you'll need to perform Continuous Integration for a Java application. From there, you'll integrate code repositories, applications, and build tools for the implementation of Continuous Integration.</p> <p>Finally, you will also learn how to automate your deployment on cloud platforms such as AWS and Microsoft Azure, along with a few advanced testing techniques.</p>
Table of Contents (17 chapters)
Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Dedication
Preface

Functional testing with Selenium


In this chapter, we will use Selenium and Eclipse for a functional test case execution. We have already deployed the application in the Tomcat, so we can perform functional tests and load tests on that deployment.

Let's go step by step through creating a sample functional test case and then executing it using Jenkins.

The PetClinic project is a Maven-based Spring application, and we will create a test case using Eclipse and Maven. We will utilize the m2eclipse plugin in Eclipse.

We have installed Eclipse Java EE IDE for Web Developers, Version: Mars.2 Release (4.5.2), Build ID: 20160218-0600, so lets start!

  1. Go to the Eclipse marketplace and install the Maven Integration for Eclipse plugin.
  2. Create a Maven project using a wizard in the Eclipse IDE:
  1. Select Create a simple project (skip archetype selection) and click on Next:
  1. Go through the wizard and create a project. It will take some time to create a project in Eclipse. Provide Artifact, Version, Packaging, Name...