Custom Search

Sunday, March 7, 2010

New Features in QTP 10.o


  • Centrally Manage and Share Testing Assets, Dependencies, and Versions in Quality Center 10.00

  • System Monitoring While Running Your Tests

  • Improve Portability by Saving Copies of Tests Together with Their Resource Files

  • Call Actions Dynamically During the Test Run

  • Develop Your Own Bitmap Checkpoint Comparison Algorithm

  • Centrally Manage Your Work Items and ToDo Tasks in the To Do Pane

  • Improve Test Results Analysis with New Reporting Functionality
  • Test Standard and Custom Delphi Objects Using the Delphi Add-in and Delphi Add-in Extensibility
  1. Centrally Manage and Share Testing Assets, Dependencies, and Versions in Quality Center 10.00
QTP 10 has a powerful set of new Quality Center 10.00 integration capabilities for QuickTest assets.*



These integration capabilities include:
1.New resources and dependencies model for storing and managing shared assets.
2.Support for asset versioning and baselines.
3.Asset Comparison Tool for comparing versions of individual QuickTest assets and Asset Viewer for           viewing an earlier version of a QuickTest asset.
4.A special tool for Quality Center administrators that upgrades all QuickTest assets to use these new features.

* QTP assets include tests, components, application areas, and the resources associated with them, such as shared object repositories, function libraries, recovery scenarios, and external data tables.

2. System Monitoring While Running Your Tests.

  • The new local system monitoring feature in QTP (File > Settings > Local System Monitor) enables you to monitor the local (client-side) computer resources used by the application instance you are testing during a run session.
  • You can monitor a number of different system counters 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.
  • Additionally, you can export the data from the System Monitor tab to a variety of file types.
  • The results generated for the counters you monitor are displayed as a line chart in a special System Monitor tab in the Test Results window.
 
3. Improve Portability by Saving Copies of Tests Together with Their Resource Files
 

  • Tests and their resource files are often stored on a network drive or in Quality Center. However, you may need to open or run a test when you do not have access to the network drive or QC. For example, you may need to create a portable copy of a test for use when traveling to other sites.
  • You can save a standalone copy of your test and its resource files to a local drive or to another storage device using the File > Save Test with Resources command. When you save a test in this manner, QTP a copy of your test, all associated resource files, and any called actions.

4. Call Actions Dynamically During the Test Run

  • Generally, when you insert a call to an external action, the action call becomes part of the test, and the called action is loaded each time you open the test.
  • In some situations, you may want to take advantage of the new LoadAndRunAction statement to load an action only when the step runs, and then run that action.
  • This is useful, for example, if you use many conditional statements that call external actions, and you do not want to load all of these actions each time you open the test, since these actions may not be necessary during the run session.

5. Develop Your Own Bitmap Checkpoint Comparison Algorithm

  • You (or a third party) can now develop custom comparers for bitmap checkpoints. A custom comparer is a COM object that performs the bitmap comparison for the checkpoint according to your testing requirements. For example, you could define a custom comparer that allows a bitmap checkpoint to pass even if the image in the application shifts by an amount specified when the checkpoint is defined.
  • After you install and register a custom comparer on the QTP computer, your comparer is available for selection in the Bitmap Checkpoint Properties dialog box. The dialog box provides space for specifying additional configuration preferences expected by your comparer.
  • When QTP a bitmap checkpoint that uses a custom comparer, it supplies the expected and actual bitmaps to the custom comparer object. It then receives and reports the results that the custom compares returns.

6. Centrally Manage Your Work Items and ToDo Tasks in the To Do Pane

  • The new To Do pane that is now available in the QTP, enables you to create and manage self-defined tasks, and to view a compiled set of the TODO comments from your tests, components, and associated function libraries.
  • For example, you can use the Tasks tab to provide instructions to someone else during a handover, or to create reminders for yourself. The Tasks tab provides check boxes in which you can mark off each task as you complete it. In the Comments tab, you can view and sort all your TODO comments. You can also jump directly to a selected TODO comment in the testing document.
  • If you use the Maintenance Run Wizard to detect updates needed to your steps or object repository, then you can use the To Do pane to track and manage the TODO comments added during the maintenance run session.
  • You can also export your tasks and TODO comments from the To Do pane to an XLS (Excel), CSV (comma separated), or XML file.

7. Improve Test Results Analysis with New Reporting Functionality

QuickTest 10.00 includes a powerful set of new reporting options that help you analyze and manage your run results more thoroughly and efficiently. These include:
  • Jump to step. When you want to know more about a particular node in the Test Results window, right-click it and select Jump to Step in QuickTest. The QuickTest main window comes into focus, and the cursor jumps to the relevant step. For more information, see Jumping to a Step.
  • Export Test Results to Microsoft Word or PDF Formats. In addition to HTML format, you can now select to save your QuickTest run results in Microsoft Word or PDF formats. You can then share this information, together with any local system monitoring data, with your developers and performance testing teams. For more information, see Exporting Test Results.

New Image Reporting Options:

  • Add Images to the Test Results. When you use the Reporter.ReportEvent method to add information to the run results, you can now specify an image file as the fourth argument. When you view the results, the image is displayed in the Result Details tab of the Test Results window. For example, you can include an image returned by a CaptureBitmap step in the run results. For more information, see ReportEvent Method in the Utility section .
  • View Bitmaps Differences in Bitmap Checkpoints. In addition to the expected and actual bitmaps that are displayed in the Test Results window, you can also select to view the differences between the two. The difference bitmap is a black-and-white image that contains one black pixel for every pixel that is different between the two images. For more information, see Analyzing Bitmap Checkpoint Results.
  • Include Images in Exported and Printed Test Results. When you choose the Detailed option for printing or exporting, the document now includes all images. These include screen captures of steps, expected, actual, and difference bitmaps for bitmap checkpoints, and any images sent to the run results using the ReportEvent method. For more information, see Printing Test Results.
  • Additional Quality Center Details. The run results for tests and components that are run as part of a Quality Center test set now include the Quality Center server and project nam
8. Test Standard and Custom Delphi Objects Using the Delphi Add-in and Delphi Add-in Extensibility
  • Test Standard and Custom Delphi Objects Using the Delphi Add-in and Delphi Add-in Extensibility
  • The new Delphi Add-in enables you to test Delphi controls that were created in the Delphi IDE and are based on the Win32 VCL library.
  • QTP Delphi Add-in Extensibility is an SDK (Software Development Kit) package that enables you to develop support for applications that use third-party and custom Delphi controls that are not supported out-of-the-box by the QTP Professional Delphi Add-in.

Wednesday, March 3, 2010

Write a Multiplication table in notepad

SystemUtil.Run"notepad"
Window("text:=Untitled - Notepad").Active
for i= 1 to 10
x=5*i
Window("text:=Untitled - Notepad").type "5*' & i & "=" &x
Window(text:=Untitled - Notepad").type micReturn
Next

Close all the opened web pages in one time

SystemUtil.CloseProcessByName("iexplore.exe")

get the number of the pages are closed

CloseCount=SystemUtil.CloseProcessByName("iexplore.exe")
Msgbox CloseCount

Descriptive programming in QTP

Type I:

Dialog("text:=Login").Winedit("attached text:=Agent Name:").set "UserName"
Dialog("text:=Login").Winedit("attached text:=Password:").set "Password"
Dialof("text:=Login").WinButton("text:=OK").click

In Above Example : - you will get the object properties name and Values from application using Object Repository OR Object Spy, you can use more than one property value for one object.

text is name of the object and Login is valu of the object.

Type II :

Set ObjDesc1=Desscription.create
ObjDesc1("text").value="Login"
Set ObjDessc2=Description.create
Objdesc2("attached text").value="Agent Name"
Set ObjDesc3=Description.create
ObjDesc3("attached text").value="Password"
Set ObjDesc4=description.Create
ObjDesc4("text").value="OK"
Dialog(ObjDesc1).Winedit(ObjDesc2).set "User Name"
Dialog(ObjDesc1).Winedit(ObjDesc3).set "Password"
Dialog(ObjDesc1).WinButton(ObjDesc4).click

In above example:- you can use more than one property value for one object.