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

Explain different types of checkpoints?

658


how will load the object during runtime?

1672


desribe a situation where u faced a stressful situation and how did u cope with it

1501


Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji

1024


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?

650






if numbers are always changing write a script for that

3579


What is the differences between image check point and bit map check point?

661


what is the difference between modular framework & datadriven framework

1674


How would you directly trigger javascript in a test?

1548


Is text area check point supports for web applications?

614


hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?

2991


Discuss the QTP Environment?

714


HOw to add the recovery file at runtime to the test file .

1636


Does Low-level recording capture mouse movements?

672


How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?

663