|
QTP现成帮助文档.Share
QuickTest Professional Object Model Reference
Print Statement
Description
Displays information in the QuickTest Print Log window during the run session. The QuickTest Print Log window remains open while the run session continues, until you close it.
For more information, refer to the QuickTest Professional User's Guide.
Syntax
Print (Message)
Argument
Type
Description
Message String String expression displayed as the message in the QuickTest Print Log window.
Example
The following example iterates all the items in the Flight Table dialog (in the sample Flight application) and uses the Print utility statment to print the content of each item to the QuickTest Print Log window.
Set FlightsList = Window("Flight Reservation").Dialog("Flights Table").WinList("From")
For i = 1 to FlightsList.GetItemsCount
Print FlightsList.GetItem(i - 1)
Next |
|