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!
- Go to the Eclipse marketplace and install the
Maven Integration for Eclipse
plugin. - Create a
Maven project
using a wizard in the Eclipse IDE:
- Select
Create a simple project (skip archetype selection)
and click onNext
:
- Go through the wizard and create a project. It will take some time to create a project in Eclipse. Provide
Artifact
,Version
,Packaging
,Name
...