Powered By Blogger

Wednesday, March 13, 2013

All about QT


In HP UFT 11.5, interesting to see a new Add-in call Qt. I am going to cover some insight into this Add-in.

As per http://qt-project.org/, Qt is a cross-platform application and UI framework for developers using C++ or QML, a CSS & JavaScript like language. Qt Creator is the supporting Qt IDE.

Over 450,000 developers in more than 70 industries have chosen Qt to build advanced applications and devices.



Qt Creator Overview is a cross-platform IDE (integrated development environment) tailored to the needs of Qt developers. It focuses on providing features that help new Qt users get up and running faster, and also boost the productivity of experienced Qt developers. It is part of the Nokia Qt SDK.

Qt Creator looks like:


It is easy to develop an application using various GUI controls in Qt. A sample application looks like the below:



UFT recording will recognize these objects as below:







Monday, March 4, 2013

HP UFT 11.5 - New IDE Highlights

HP UFT 11.5 brings a brand new IDE similar to Visual Studio. Now we have multiple categories of tests i.e. some thing like templates in VS.


If we select GUI Test then, new IDE looks like below:



Looking like Microsoft Visio, don't worry this is all together new style known as CANVAS. In this Canvas, we can manage actions and change their order, run or debug from a selected actions.

Interestingly in the IDE menu options are enabled and disabled according to selected test type i.e. GUI Test and API Test.

For example, if it is GUI Test, in the IDE Tools menu looks

  
If it is API Test, then



A happy surfing IDE for more features...

Friday, March 1, 2013

QTP word is no more...

HP introduced the next version of QTP aka UFT (Unified Functional Testing) 11.5. 

This is going to be flagship product with capabilities to test GUI, API and BPT (Business Process Testing). HP UFT 11.5 includes all of its previous tools like Quick Test Professional as well as Service Test .

The About screen:

 

Monday, February 13, 2012

Undocumented WebUtil

QTP carrying this undocumented feature for a while. WebUtil is very powerful option to fulfill the following:

Tuesday, October 26, 2010

QTP 11 - Close look at Regular Expression Evaluator

QTP 11 brings another cool tool called "Regular Expression Evaluator" (REE). This article discusses more about REE.

If we want to use any regular expressions during descriptive programming we need to understand forming the regular expressions. For example, we want to allow data set with first character as a capital case and followed by any number of alphabets, followed by numbers.

Let's start with REE.
To access REE Select the Tools > Regular Expression Evaluator menu command.

If you click on this button to show all the Regular Expression options:

It will be shown as below:



Let's play with this tool and familiarize yourself with regular expressions. For above mentioned example, regular expression will look like the below:


Saturday, October 16, 2010

QTP 11 - About LoadFunctionLibrary

In HP QTP 11 we have a new feature called "LoadFunctionLibrary". This is different from ExecuteFile method. Let's see how it works:

Sample Code:

'--------------------------------------------------------
LoadFunctionLibrary "C:\Automation\Test.vbs"
ShowDate

Test.vbs looks as follows:
'--------------------------------------------------------
Sub ShowDate()

   Msgbox "This is testing " & Now & "."

End Sub
'--------------------------------------------------------



When LoadFunctionLibrary step executes it will load specified library file.


We can load multiple library files at a time using "," seperator.


For example:


LoadFunctionLibrary "C:\Automation\Test.vbs", "C:\Automation\KeyWord.vbs"


In the results window it shows as follows:






 

QTP 11 - Automatically Parameterize Steps

In QTP 11, we have an option to parameterize the steps automatically during recording. Let's discuss how it will work.


From Tools -> Options under General tab, we have a new option (shown as below)


Let's navigate to http://www.google.com/ and record the test with text "Quick Test Professional 11", it will automatically record as shown in below.