<

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

Published on
4,735 Points
1,535 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Join & Write a Comment

With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month