Monthly archives: July, 2011

Selenium – Creating XML Reports

XML is the abbreviation for Extensible Markup Language.  XML is used in many aspects of software development, data storage, to communicate between different applications, data sharing, etc.  In Test Automation if the reports are generated in XML format that can be utilized to generate customized HTML reports and also can be imported into Spreadsheet like …

Selenium WebDriver – Handling Javascript Popups

In the latest release of Selenium 2.0 WebDriver Alert class is implemented.  Get the latest release of Selenium 2.0 from this Download link.  Download selenium-server-2.0rc3.zip and unzip into \Libraries folder.  Add “selenium-server-standalone-2.0rc3” to the classpath (Add the External Jar to buildpath of the project’s properties in Eclipse IDE). Here, I have taken an example HTML …

Java – Conditional Statements

Java being a programming language provides conditional statements to handle execution of a set of statements based on the conditions. if if-else switch See example code below: package com.selftechy.learnjava; public class TestCase { public static int tcCount; public int stepcount; public String status; public int getStepCount(){ return stepcount; } public String getStatus(){ return status; } …

Java – Static and Instance Variables

Object Oriented Programming has a concept of instance variables.  This type of variable is declared in a class and whenever an object is created of that class, a copy of the variable is created.  Instance variable is accessed as “object.variable” Static variable is also declared in a class but is created only once and used …

Java – Inheritance

Knowledge of inheritance really helps if you are using Java / JUnit / TestNG frameworks for Test Automation.  Inheritance is an Object Oriented Programming concept. If a class which already created contains some variables and methods, if we want to add some more features to the existing class by adding some more functionalities then we …