QTP内置了很多公用对象,掌握这些对象可以大大提升代码编写效率
QuickTest Professional Object Model Reference |
Utility Objects
The following QuickTest reserved objects can be used for testing and result reporting preferences during a run session.
Note: In addition to the general reserved objects listed in this Utility section, QuickTest has several environment-specific reserved objects. These objects are described in the relevant sections of the QuickTest Object Model Reference. For example, the SystemUtil and Desktop objects are described in the Standard Windows section. The WebXML object is described in the Web section.
- Crypt Object
- DataTable Object
- Description Object
- DotNetFactory Object
- DTParameter Object
- DTSheet Object
- Environment Object
- Extern Object
- LocalParameter Object
- MercuryTimers Object (Collection)
- MercuryTimer Object
- Parameter Object
- PathFinder Object
- Properties Object (Collection)
- QCUtil Object
- RandomNumber Object
- Recovery Object
- Reporter Object
- RepositoriesCollection Object
- Repository Object
- Services Object
- Setting Object
- SystemMonitor Object
- TextUtil Object
- TSLTest Object
- XMLUtil Object
The following utility statements help you control your test.
- DescribeResult Statement
- ExecuteFile Statement
- ExitAction Statement
- ExitActionIteration Statement
- ExitComponent Statement
- ExitComponentIteration Statement
- ExitTest Statement
- ExitTestIteration Statement
- GetLastError Statement
- InvokeApplication Statement
- LoadAndRunAction Statement
- ManualStep Statement
- Print Statement
- RegisterUserFunc Statement
- RunAction Statement
- SetLastError Statement
- UnregisterUserFunc Statement
- Wait Statement