<

Go Premium for a chance to win a PS4. Enter to Win

x

EE QA: Install and Configure Selenium, Java, Eclipse, and TestNG

Published on
4,398 Points
1,198 Views
2 Endorsements
Last Modified:
Marlon
I was born in a town so small when the buzzards circled overhead they got dizzy.
Introduction
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.

EEQA_2_NG.png
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 page.
EEQA_2_WD.pngAfter 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
EEQA_2_BP.pngIn 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.
EEQA_2_2.png
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.
EEQA_2_1.png
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
Conclusion
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
2
Comment
Author:Marlon
0 Comments

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Join & Write a Comment

This video teaches viewers about errors in exception handling.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month