Annotation: Annotation defines a type and it can be applied to several Java elements such as Java methods, classes, etc.  Annotation adds meta-data facility to Java elements.  Some examples of Java built-in annotations are: @Override @Deprecated @SuppressWarnings Each annotation will instruct the compiler to do something. For example, @Override tells the compiler to check whether […]

{ 11 comments }

Setting up TestNG with Eclipse

by seetaram on January 9, 2012

This post will explain about installation of TestNG plug-in with Eclipse (Indigo) There is no need to download any Jar file or exe file for installation.  We need to just utilize the “Install New Software” option available in the Eclipse. Steps for installation: 1. Click Help –> Install New Software 2. Type “http://beust.com/eclipse” in the […]

{ 57 comments }

TestNG – Next Generation Testing Framework

by seetaram on January 8, 2012

TestNG is a testing framework that is used for unit testing and also with Selenium for Test Automation. What is the need for a testing framework? How it facilitates unit / automated UI testing? What are the functionalities that a framework like JUnit / TestNG provides? If I am new to Selenium, TestNG / JUnit, […]

{ 2 comments }

QTP – Extract Runtime Object Property

by seetaram on December 21, 2011

A “Test Engineer” need to validate many values on the application during runtime against a set of test data. To facilitate this, the test automation tools provide functionalities such as checkpoints. Apart from the eight different checkpoints, the QTP also provides a function called “GetROProperty”. You might wonder why GetROProperty needs to be used while […]

{ 5 comments }

QTP – Create a Simple Script without Recording

by seetaram on December 17, 2011

If the QTP’s recording engine is used to record a test scenario, then the script will have following issues: Script will have hardcoded values No proper naming convention No modularity No reusability Maintenance is difficult Difficult to accommodate frequent changes Difficult to debug How to overcome these problems? Simple!! Create your own script… do not […]

{ 0 comments }

Selenium – Access Database using JDBC

by seetaram on November 26, 2011

There might be some test scenarios in which the Application Under Test (AUT) will be sending SMS to a mobile.  Then, how do you validate whether the SMS sent or not? In some other test scenario such as “Forgot Password”, the password that is newly generated might have sent to user’s email address. In both […]

{ 3 comments }

QTP – Object Identification

by seetaram on October 27, 2011

Every test automation tool is GUI (graphical user interface)sensitive. Test automation tool has to identify the objects on the application, then only it can do the intended operations. QuickTest Professional has its own mechanism to identify the objects on the Application Under Test. QTP has various  add-ins available for different applications.  Let us have a […]

{ 9 comments }

QTP – Environment Variables

by seetaram on October 17, 2011

A test automation suite might be containing lot of tests / actions. Hence, while executing the test cases in batch mode we might need to refer to the Iteration, name of the test, Results directory, etc. But how to get them? QTP provides global variables called Built-in Environment Variables through which we can access these […]

{ 0 comments }

QTP – Parameterization with Data Table

by seetaram on October 15, 2011

When a test is recorded using QTPs recording engine all the values are hardcoded. If we want to run the same test many times, the application might throw error because of duplication of data. Hence, the data needs to be parameterized from an external means. QTP provides an excellent feature called Data Table for this […]

{ 7 comments }

QTP – Recovery Scenario

by seetaram on October 14, 2011

Execution of automated test cases might result in some unexpected error conditions. In such situations, QTPs error handling feature Recovery Scenario comes in handy. To create a Recovery Scenario, we need to configure the below steps: Trigger Event Recovery Operation Post-Recovery Test Run Options Name and Description of the Recovery Scenario Finish Click Resources –> […]

{ 0 comments }

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