Tell about automation object model(Aom) in qtp?
Answers were Sorted based on User's Feedback
Answer / koteswara rao m
we can close Qtp from Qtp by using the Automation object
model.
Automation object model is nothing but collection of
objects,methods and properties which are used to perform
quicktest operations.Throught this object model we can
perform any operation described in QTP interface.
For every option in QTP menus(Interface) have
Objects,methods and properties are there in this model.
Eg: dim qtApp
set qtApp=createobject("QuickTest.Application")
qtApp.Launch /*It launches the QTP
qtApp.visible= "true" /* Qtp is visible to us
qtApp.close /* It closes the Qtp
Is This Answer Correct ? | 11 Yes | 1 No |
Answer / kapil
Write the above script in notedpad and save it with .vbs
extension.Open the file and run it.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / praveen
i agree with u, but i have one doubt in that scenario
how to execute the AOM program, can u explain
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sugumar
Essentially all configuration and run functionality
provided via the QuickTest interface is in some way
represented in the QuickTest automation object model via
objects, methods, and properties. Although a one-on-one
comparison cannot always be made, most dialog boxes in
QuickTest have a corresponding automation object, most
options in dialog boxes can be set and/or retrieved using
the corresponding object property, and most menu commands
and other operations have corresponding automation
methods.
You can use the objects, methods, and properties exposed by
the QuickTest automation object model, along with standard
programming elements such as loops and conditional
statements to design your program
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / srinivasulu thatavarthi (94903
Aom is the automate the qtp,Functions,Libraries,and Object Repositories.ini..etc now i am writting aom script Launch QTP,Minimized qtp,maximized qtp, and close the qtp
dim qtapp
set qtapp=createobject("QuickTest.Application")
qtapp.launch
qtapp.visible=True
qtapp.windowstate="minimized"
qtapp.windowstate="maximized"
qtapp.windowstate="minimized"
qtapp.windowstate="maximized"
qtapp.quit
write that script on notepad and save .vbs file u can click that script automate qtp and close the qtp
Is This Answer Correct ? | 0 Yes | 1 No |
why use Description programming? what is advantages and disadvantage of this methods?
How to create Userdefined Function.Please write the steps ans also provide example where exatcly we use it.
Interviwer asked, How many years exper.. on QTP? I said, total 2 yrs exp in manual and QTP. QTP only current project arround 3 months. then interviewer ask , HOW BOLD YOU QTP? What you say?
Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter
Which advantages helping QTP to hold the position of "Market Leader" for such a long period?
What are the things(properties, and other details) will be recorded while recording an object using normal recording?
what are the parameters you are considering for object identification?
In my script there is a link(e.g. 'My Page') when I execute the script sometimes(not every time) QTP throws an error that "My Page(as link)" not found. Pleaase tell me where I need to update
who is the best faculty in Hyderabad for QTP?
your coming from electrical backgroung..but y ur coming to software side?
How to export data present in Datatable to an ".xls" file?
How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?