Powered By Blogger

Wednesday, February 25, 2009

What is Local System Monitoring in HP QTP 10.00?

This new feature enables you to monitor the local (client-side) computer resources used by the application instance while we are testing during a run session.

We can monitor a number of different system counters i.e. Memory Usage (in MB), GDI Objects, Handle Count etc., to view the effects your application has on the system. You can also define upper limits for the counters. If any of the specified counters exceed these limits, the test run will fail.

We could invoke this feature from File > Settings > Local System Monitor







Monday, February 23, 2009

Enhanced ReportEvent Method in HP QTP 10.00

ReporterEvent is extended so that we can specify an image file as the fourth argument. (which was not useful in earlier versions)

Syntax 
Reporter.ReportEvent EventStatus, ReportStepName, Details [, ImageFilePath]  

ImageFilePath
Path and filename of the image to be displayed in the Results Details tab of the Test Results window. Images in the following formats can be displayed: BMP, PNG, JPEG, and GIF.

Example:

Reporter.ReportEvent micDone, "Sample Logo", "This is a sample logo", "Logo.bmp"

Product Enhancements in HP QTP 10.00

Improved IntelliSense Functionality
QuickTest now provides full IntelliSense for the following types of objects:

* Objects created by a step or function (for example, by calling the CreateObject method)
* Variables to which an object is assigned
* Reserved objects
* COM objects
* Properties that return objects

For example, earlier it is not so easy to find out all methods in an object like "Scripting.Dictionary", now it is so simple with this IntelliSense.