Category «Automation Testing»

Selenium – Parameterization using CSV file

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 …

Selenium 2 with JUnit4 – Create Tests & Generate Reports

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 – http://tinyurl.com/6al62p8 for detailed discussion on these annotations).   JUnit4 can be utilized with Selenium 2.0 WebDriver or Selenium …

Selenium – Creating Object Repository

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

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

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 …