Automation Object Model in HPE UFT!
Follow 'Software Testing Studio' to learn more about Automation Testing concepts.
An object model is a logical interface, software or system that is modeled through the use of object-oriented techniques. It enables the creation of an architectural software or system model prior to development or programming. Automation object Model (AOM) can be understood as a structural representation of objects that comprise the implementation of the software or application.
HP UFT provides a COM interface that allows automation of UFT itself. This AOM enables user to write code to perform the core UFT tasks such as:
- Launching UFT
- Configuring UFT
- Running a UFT Test script
- Loading the add-ins
- Changing the iterations for a test script
- Passing arguments to a test script
- Launching UFT on a remote machine
How to launch UFT, open and execute a test script using AOM?
‘Create an instance of the UFT application
Set uftApp = CreateObject(“QuickTest.Application”)
uftApp.Launch
uftApp.Visible = True
‘Open a test script
uftApp.Open “C:\Test UFT”\Sample Test”,True
‘Run the test
uftApp.Test.Run
‘Closing UFT
uftApp.Close
Set uftApp = Nothing