How to write AOM scripts?
10 Jul 2008 - 05:47:02 pm
You need to understand that the very root of QT AOM is Application Object. Every automation script begins with the creation of the QuickTest "Application" object. Creating this object does not start QuickTest. It simply provides an object from which you can access all other objects, methods and properties of the QuickTest automation object model.You can create only one instance of the Application object. You do not need to recreate the QuickTest Application object even if you start and exit QuickTest several times during your script. Once you have defined this object you can then successfully work and perform operations on other objects given in Quick Test Pro > Documentation > QuickTest Automation Reference.For ex: Let us connect to TD QC using AOM and open a script "qtp_demo"Dim qt_obj 'Define a Quick Test object
qt_obj = CreateObject("Quick Test.Application") ' Instantiate a QT Object. It does not start QTP.
qt_obj.launch ' Launch QT
qt_obj.visible ' Make QT visible
qt_obj.TDConnection.Connect "http://tdserver/tdbin", _ 'Referencing TDConnection Object
"TEST_DOMAIN", "TEST_Project", "Suri", "Testing", False ' Connect to Quality Center
If qt_obj.TDConnection.IsConnected Then ' If connection is successful
    qt_obj.Open "[QualityCenter] Subjecttestsqtp_demo", False ' Open the test
Else
    MsgBox "Cannot connect to Quality Center" ' If connection is not successful, display an error message.
End If
To quickly generate an AOM script with the current QTP settings. Use the Properties tab of the Test Settings dialog box (File > Settings) OR the General tab of the Options dialog box (Tools > Options) OR the Object Identification dialog box (Tools > Object Identification). Each contain a "Generate Script" button. Clicking this button generates a automation script file (.vbs) containing the current settings from the corresponding dialog box. You can run the generated script as is to open QuickTest with the exact configuration of the QuickTest application that generated the script, or you can copy and paste selected lines from the generated files into your own automation script.
Admin · 438 views · 9 comments

Permanent link to full entry

http://automation-qtp.discussionsblog.com/QTP-b1/How-to-write-AOM-scripts-b1-p7.htm

Comments

Comment from: True Religion Jeans [ Visitor ] Website
A HOT new pair of True Religion Jeans is the quickest way to update your look without overhauling your entire wardrobe.Shopping online with great discount for the Seven jeans now.Seven for mankind this season is designed for you.Get it now.
   2010-02-26 @ 02:47:49 pm
Comment from: GHD [ Visitor ] Website
ghd hair straighteners and Farouk CHI are in stock, ghd is 64% off.
   2010-02-26 @ 12:21:13 pm
Comment from: Seven jeans [ Visitor ] Website
Sexy, adventurous, trendsetting apparel and accessories of Seven Jeans and True Religion Jeans.Try these slim fitting and darker Seven for mankind jeans, show yourself like a globale star.
   2010-02-10 @ 06:31:59 am
Comment from: Jean [ Visitor ] Website
A HOT new pair of True Religion Jeans is the quickest way to update your look without overhauling your entire wardrobe.Shopping online with great discount for the Seven jeans now.Seven for mankind this season is designed for you.Get it now.
   2010-02-02 @ 07:44:34 am
Comment from: Mbt shoes [ Visitor ] Website
Mbt shoesenjoy good quality,Mbt sport white, and Mbt m walk pink and Mbt lami black save you up to 81%
   2010-01-15 @ 07:28:44 am
Comment from: Admin [ Member ]
Hi ,

Better not to use the checkpoints when you are using DP.

When you are using DP, generally you will not use OR . But , to put the check point you need to use OR.

If you want to use a mix of descriptive programming and OR ( Object Repository ) , you put the check point as you put them generally.

While using DP, you better program what you want to do with the check point .


   2008-07-16 @ 12:50:21 pm
Comment from: Rajkumar Agrawal [ Visitor ]
Hi all,
i am a new member, i have a doubt in scripting of qtp, i am not able to write a check point in expert by using descripting programming, so please send me solution,what is the process to write check point in descripting programming.
   2008-07-15 @ 04:24:01 pm

Leave a comment

New feedback status: Published





Your URL will be displayed.

 
Please enter the code written in the picture.


Comment text

Options
   (Set cookies for name, email and url)


  

Last Comment

Ed Hardy clothing often use some ...

2010-03-11 @ 01:10:42 pm
by ed-hardy


I ordered essay papersI conceive they ...

2010-03-10 @ 04:49:21 pm
by Macias18Alfreda


aqian100310 Designer Watches Vacations, Cruises & ...

2010-03-10 @ 08:54:00 am
by Replicawatches


mbt shoes sale , ...

2010-03-10 @ 07:28:17 am
by MBT OUTLET


mbt sale ,MBT Safiri ...

2010-03-10 @ 07:27:06 am
by MBT OUTLET


mbt shoes sale , discount ...

2010-03-10 @ 07:26:17 am
by MBT OUTLET


mbt sale ,

2010-03-10 @ 07:25:12 am
by MBT OUTLET


mbt sale promotion,

2010-03-10 @ 07:24:18 am
by MBT OUTLET


mbt shoes uk direct,

2010-03-10 @ 07:23:12 am
by MBT OUTLET


mbt sale ,

2010-03-10 @ 07:14:23 am
by MBT OUTLET


mbt shoes sale ...

2010-03-10 @ 07:13:11 am
by MBT OUTLET


You are so master and your ...

2010-03-10 @ 05:50:52 am
by Tricia26Yates


We have now very good Internet ...

2010-03-09 @ 11:33:29 pm
by StephensonJoann


Did you have some knowledge that ...

2010-03-09 @ 09:27:34 pm
by SIMONDollie


Oakley and Ray Ban ...

2010-03-09 @ 08:34:35 am
by oakley


Who's Online?

Member: 0
Visitors: 3

Announce

Tags

No tags in this Blog

rss Syndication

Archives