18 QTP Automation Object Model
Concept: QTP provides a COM interface which allowsautomation QTP itself. E.g. launch QTP, configure QTP, run a script etc
18.1 Object Model (ref “QuickTest Project” in QTP Manual Help)
Application: --Test --Options --TDConnection --Folders --Addins --BusinessComponent(Test) --UI |
18.2How can we use AOM to run a QTP test case?
e.g. Sample code isas following:
|
18.3How to use AOM to change the starting and ending iteration?
|
18.4How to use AOM to launch QTP on a remote machine
Const remoteMachineIP = "127.2.3.4" Set qtApp = CreateObject("QuickTest.Application", remoteMachineIP) |
Note: the remote machine has set QTP to “Allow other mercuryproducts…” model.