Browse All Articles
> EE QA: Install and Configure Selenium, Java, Eclipse, and TestNG
This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by Experts Exchange QA Team. We develop our automated test cases in a Windows environment so that’s the focus here.
Java and Eclipse Installation and Configuration
First we install Java and Eclipse. We use Installing Eclipse
video as our guide. You should be able to install and configure them after watching this video. More java help can be found here
TestNG Installation and Configuration
Installation and configuration of TestNG is fairly simple. Follow the steps for Eclipse plug-in here
. Here’s a snapshot of part of the installation process. The installation wizard does a good job of walking you through the process.
Installation of the Eclipse plug-in makes it possible to run TestNG suites while in Eclipse, but the TestNG classes are actually included in the selenium WebDriver jar file. You’ll see in EE QA: Developing and Running Automated Tests For Our Website
how we use TestNG features in our automation.
Selenium WebDriver Installation and Configuration
We use the standalone server in our environment so all we do is get it from the download
After it is downloaded we add it to our Eclipse build path by right clicking on the project, then going to Build Path -> Configure Build Path
In the Java Build Path form we add the Selenium jar to the libraries. That’s it for installation and configuration of Selenium Web Driver jar into our environment.
Installation of the Selenium IDE plugin into Firefox is super easy. We start off by installing Firefox
. Once that is done, we go to the Selenium IDE
plugin web site, download
and install it, along with all the language options we want. When we see the ‘Se’ icon in the banner we know the install was successful.
Once we have it installed we set the Clipboard Format option to be java by clicking on the ‘Se’ icon, then in IDE we go into the Options menu and select Clipboard Format -> Java /JUnit4/ WebDriver. This setting means when we copy something in the IDE it will be pasted as Java code.
In the center section of the IDE we always have the ‘Table’ tab selected. With that, Selenium IDE is now installed and configured. Items copied from the IDE to the clipboard will be pasted as Java code. More details on this will be provided in the EE QA: Developing and Running Automated Tests For Our Website
Installation and configuration of these tools is fairly straightforward. You should be able to do all of it in a couple hours, or less. If you do encounter any problems or have questions regarding any of these tools Experts-Exchange
is here to help. Submit your question to the experts, be sure to include Quality Assurance as one of the topics.
First Article: EE QA: How Selenium, Java, Eclipse, and TestNG help us achieve our test automation goals
Third Article : EE QA: Developing and Running Automated Tests For Our Website