Setting up Selenium with Eclipse

by seetaram on May 31, 2011

In my earlier post I have explained how to setup Selenium with Eclipse but there I have utilized example of SugarCRM.  So, in order to avoid downloading SugarCRM I thought of writing one more post on the same topic which uses Google as example. Eclipse is an open source Integrated Development Environment which supports multiple […]


Selenium – Logging with Log4j

by seetaram on May 23, 2011

If we are executing Test Suite with hundreds of automated test cases then logging all the events might be useful. There are two APIs available for logging events. JUL – Java Logging API Log4j – Apache Software Foundation I am going to discuss Log4j as this is an open source logging library as well as […]


In JUnit4 @Before is used to execute set of preconditions before executing a test.  For example, if there is a need to open some application and create a user before executing a test, then this annotation can be used for that method.  Method that is marked with @Before will be executed before executing every test […]


JUnit 4 – Introduction to “Annotations”

by seetaram on May 15, 2011

JUnit 4 introduced a new feature called “annotations”.  This helps greatly in automating test cases.  I agree that knowledge of Java programming language can help in implementing a robust test automation framework.  But the testers who don’t have knowledge of Java will be really benefited by “annotations” We will try to understand this feature in […]


For Test Automation with Selenium, we can either utilize JUnit or TestNG framework.  Both the frameworks are pretty simple and easy to use. In JUnit 3, a test which needs to be executed before all the other test methods is named as “SetUp” and the other method which will be executed just before stopping the […]


JUnit 4 – Executing multiple Test Suites

by seetaram on April 16, 2011

So far we have learnt JUnit 4 from the aspect of running a single test case.  In this post, we will explore how to run multiple test cases with JUnit 4. I am less bothered about how the JUnit is used for unit testing, but my concern is how we can utilize JUnit (referring to […]


Running Selenium Tests with JUnit 4

by seetaram on March 23, 2011

Step 1: Create a new project Java SugarCRMJunitTests in Eclipse as shown in the below figure. Step 2: Right Click newly created Java Project (SugarCRMJunitTests) –> New –> Package –> Give name “SugarTests” Step 3: Right Click SugarTests package –> New –> JUnit Test Case (Select checkboxes SetupBeforeClass, tearDownAfterClass)    –> Give the name as “SugarTestScripts” […]


Execute Selenium Test Using Eclipse

by seetaram on March 22, 2011

We already have configured Selenium Client Driver with Eclipse.  Now, copy the Selenium server into the SeleniumTests folder inside Eclipse-Workspace folder and then create “Selenium-server.bat” file with the following code in it.  Below code should not be copied and pasted into the notepad as “-” (hyphen) is getting saved as a special character and does […]


Selenium – Setting up Selenium & Eclipse

by seetaram on March 18, 2011

Now its time to learn how to configure Selenium RC client driver with Eclipse IDE and how to run Selenium RC server instance.  We will try to understand this step by step. Note: Download JDK ( from the Oracle / Sun website and install prior to installing Eclipse) Download Eclipse Go to URL – […]


Selenium – Understanding Object Identification

by seetaram on February 23, 2011

In previous two posts I have explained how to setup a sample web application, recording and playing back tests with Selenium IDE.  Now, we will understand how Selenium identifies the objects on the Application Under Test. To identify the objects such as Links, Buttons, Edit boxes, Drop downs, etc on the application Selenium uses a […]


  • Page 3 of 4
  • 1
  • 2
  • 3
  • 4

Do you want to get updates on the recent articles written? Please subscribe to RSS feed or Email