Automation Testing

In the previous post (view post)I have explained about reading a csv file and displaying its data on console.  Now, let us explore how to store some parameters in the csv file in the Key – Value format and then read the data into a HashMap.  Once the parameters and values are read into a […]


Selenium – Parameterization using CSV file

by seetaram on June 19, 2011

Parameterization of a Selenium test can be accomplished using various data sources such as XML, Database, Spreadsheet, flat file, CSV file, etc.  Among all of these techniques usage of XML, CSV, and spreadsheet are most widely used.  I have already discussed parameterizing Selenium tests using Microsoft Excel.  Let us discuss fetching test data from a […]


Do we need to go for Test Automation? If yes, then which is the tool? If we straight away start automating test cases what are all the technical challenges we might face? Do we need a framework for Automation? How we go about designing a framework? These are all the questions popup when we want […]


JUnit is a unit testing framework which mostly used for unit testing of Java projects.  JUnit4 is the enhanced version of JUnit 3 and comes with annotations such as @Before, @After, @Test, @AfterClass, @BeforeClass, etc.  (Please refer – for detailed discussion on these annotations).   JUnit4 can be utilized with Selenium 2.0 WebDriver or Selenium […]


I wanted to evaluate Selenium 2.0 hence went through the Selenium 2.0 and WebDriver documentation and tried writing some simple tests with JUnit.4  Its really easy to understand.  Lot of changes, its like entirely a new tool. APIs are pretty straight forward and easy to use.  Let us have a look at the following code. […]


Parameterizing a test from external sources such as Microsoft Excel is always recommended in order to handle large amount of test data.  To read data from Excel, we need APIs which support opening file, reading data, and writing data into Excel.  We should know various classes and methods which support above mentioned operations.  In this […]


Selenium – Creating Object Repository

by seetaram on June 1, 2011

Parameterization of a particular test is needed in order to avoid hard coding of values.  If a test is recorded with Selenium IDE, then all the values (e.g. locators) are hardcoded making it very difficult to execute with subsequent changes in the application.  In this post let us discuss a simple form of parameterization with […]


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 […]


  • Page 2 of 3
  • 1
  • 2
  • 3

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