Can you tell me the differences between writing the VB
script manually for a application and recording the same
application in QTP , with a example?






Can you tell me the differences between writing the VB script manually for a application and record..

Answer / ajreddy

Hi
Example:
to open gmail portal
Record and play back

Window("Program
Manager").WinListView("SysListView32").Activate "Mozilla
Firefox"

Browser("Yahoo!").Page("Yahoo!").WinObject("MozillaWindowClass").Type
"www.gmail.com"
Browser("Yahoo!").WinObject("MozillaWindowClass").Click 263,41
Browser("Yahoo!").WinObject("MozillaWindowClass").Type
".gmail.com"
Window("Window").Activate


2. Descriptive programing(manually) vb script
systemutil.run "www.gmail.com"
Browser("name:=Gmail").Page("title:=Gmaillogin").activate

from
ajreddy

Is This Answer Correct ?    2 Yes 1 No

Post New Answer




More QTP Interview Questions

Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

0 Answers  


how many script you will wright in a year ? i told it's depends on the proj..and 'n.no of ... but he forced me to tell some num. or avg .....how many i suppose to tell..??and do a favor per day how many script don't thing it's repeated question or common ...help me post a ans...thanks for advance

1 Answers   HCL,


How to identify whether a web page exists or not without using Browser(" ").Page(" ").Exist?

1 Answers  


Tell me Three major differences between QTP & Winrunner?

5 Answers  


How to record & run on Japanese language application using english version of QTP ???

4 Answers   ABC,






how to do regression testing in qtp? plz give ans with examples

6 Answers   TCS,


Use of environment variables?

4 Answers  


What is the difference between QTP 8.2 and QTP 9.2

0 Answers   Nokia,


How can we use regular expressions for a table in web page, each cell in table having unique identification, Now I want to count number of rows in table and enter data in all cells of the table?

1 Answers   CTS,


what are the mandatory properties for a tex boxc (scenario?)

0 Answers  


After i ran the Test in Batch mode i didn't get any results. Can any one let me know how it can be done?

3 Answers  


how do you do database testing in qtp

5 Answers   NIIT,






Categories