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

How to handle dynamic objects in quicktest professional?

0 Answers  


How to verify the Cursor focus of a certain field?

1 Answers  


How exactly you start scripting in QTP? In the interview he was not satisfied with my answer.Please post what is correct answer.

5 Answers  


w is datatable

5 Answers   CTS, IBM,


give me an example where u used good judgement and logic in solving a problem

0 Answers  


To which environments does quicktest professional (qtp) supports?

0 Answers  


I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.

0 Answers   Adea Solutions,


There is one parent browser and 'n' number of child browsers on desktop. Write a code to close all the child browsers but parent browser should not be closed.

1 Answers  


Can we record an application running on a remote machine using qtp?

0 Answers  


HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.

0 Answers  


How to execute a winrunner script in quicktest professional?

0 Answers  


Anybody can tell me what are the common roles and responsibilites of a Automation Test engineer

2 Answers   IBM,


Categories