Powered By Blogger

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.

QTP 11 new features

HP came up with the following new features in QTP 11.0

In the following posts there is a detail explanation about all these new features:

  • Manage Your Test Data
  • Test Your GUI and UI-Less Application Functionality in One Test
  • New Run Results Viewer
  • Help QuickTest Identify Your Objects as a Manual Tester Would – VISUALLY
  • Collaborate with Developers to Pinpoint Defects Using Log Tracking
  • Out-of-the-Box Support for Web 2.0 Toolkit Applications
  • New Web Testing Capabilities
  • Automatically Parameterize Steps
  • New Silverlight Add-in
  • Extend WPF and Silverlight Support
  • Use Extensibility Accelerator for Web Add-in Extensibility Development
  • It's Easier Than Ever to Insert Regular Expressions
  • Load Function Libraries at Run Time
  • Avoid Downtime Due to License Server Failures
  • Improved Documentation Structure Helps You Find the Information You Need