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”
To edit AOM file :- right click and select “edit”
To executeAOM file :- double click file or right click and select “open”
or double click
1.Script to create an object for QT to make QT visible ,launch,load and run a test .save the notepad as “qtlaunch.vbs”
'declare the application object variable
Dim qt ‘as Quick Test Application
'create the appliation object
Set qt = CreateObject("QuickTest.Application")
'make QT visible
qt.visible = true
'start QT
qt.launch
qt.open "D:\qtest"
qt.test.run
qt.quit
'realese the application object
Set qt = nothing
2.script for creating an object for IE browser
set ie = createobject("InternetExplorer.application")
ie.visible=true
ie.navigate www.yahoo.com
3.
Dim WordApp
Set WordApp = CreateObject("word.application")
WordApp.Application.Visible = True
x=WordApp.Application.Version
msgbox x
No comments:
Post a Comment