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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by checkpoints in qtp?

563


When using descriptive programming?

637


Where to use function or action?

669


Get the count of files of similar types from a folder.

975


Hi friends did any budy attend accenture system test for qtp? if any budy pls drop questions.not only accenture any other mnc company which you attended system test(QTP)?it may helpful to others also

1869






How to build scripts that access data from external sources?

1614


How to break the object spy ?

664


What are the different recording modes?

564


hi i have completed my b.tech in cse stream. now i am working in an organisation in testing department. i want do sap course but i dnt know which module will boost my career can anyone suggest me which is good for my career

1931


Problem with XML checkpoint in QTP ?

3507


When to use shared and local object repository?

636


How do we analyze the checkpoint results?

588


Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..

1353


Explain the concept of object repository?

530


why text area checkpoints cannot used for web applications

1885