Pages

Tuesday, August 17, 2010

AOM(Automation Object Model)

    AOM
The set of executable statements in a programming language  or scripting language which is saved ina execuatable file with file extention “.vbs” (visual basic script)
Using AOM we can launch,load,execute the tests in QT
In order to launch QT using AOM file the following configuration has to be done in QT
Navigation :-
Toolsàoptionsàrunàallowsàallow other HP product to run test and components
Creating an AOM File :- Open a note pad and save it with file extention “.vbs”
Ti edit AOM file :- right click and select “edit”
To executeAOM file :- double click file or right click and select “open”

1.Script to create an object for QT to make QT visible ,launch,load and run a test .save the notepad as “qtlaunch.vbs”
Set qt = CreateObject("QuickTest.Application")
qt.visible = true
qt.launch
qt.open "D:\qtest"
qt.test.run
qt.quit

2.script for creating an object for IE browser
set ie = createobject("InternetExplorer.application")
ie.visible=true
ie.navigate "www.yahoo.com"