Creating a Selenium test case using Eclipse
Let's go step by step to a sample functional test and then execute it using Jenkins.
The PetClinic
project is a Maven-based Spring application and we will create a test case using Eclipse and Maven. Hence, we will utilize the m2eclipse
plugin in Eclipse.
Getting ready
You will need Eclipse Java EE IDE for Web Developers, Version: Mars.2 Release (4.5.2), Build ID: 20160218-0600.
Go to the Eclipse Marketplace and install the Maven integration for the Eclipse plugin:
- Create a
Maven Project
using a wizard in 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 the
Artifact
,Version
,Packaging
,Name
, andDescription
. Click onFinish
. - Wait until the Maven project is created and configured. Make sure that Maven is installed and configured properly. In the case of the Maven behind the proxy, configure the proxy details...