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 a command for setvalue function in a webedit

3 Answers   Wipro,


can we take 'dim my pen is good' as a paramerter

2 Answers  


Difference between object identification and smart identification

2 Answers   Wipro,


How to handle the exceptions using the recovery scenario manager in qtp?

0 Answers  


Which line will be executed 1-B(DP).P(OR.link(DP) 2-B(OR).P(Or).Link(DP)

2 Answers   Broadridge,






WHAT IS ENVIRONMENT VARIABLES?

6 Answers   Ordain Solutions,


Hi all. Could anyone tell me the difference between an Action and a Function in QTP. Thanks in advance and Merry Christmas.

3 Answers   IBM,


IF we use batch testing.the result shown for last action only.in that how can i get result for every action.

2 Answers  


how to do spell check in QTP? reply please

8 Answers  


what is the present location of nageshwara rao's institute in hydrabad along with institute phone no. and name of institute.He has shifted from S.R Nagar.

3 Answers  


Write a QTP script to enter a keyword in to Google search engine?

0 Answers   Wells Fargo,


if there r 10 windows open in QTP write a command to close all 10 windows at a time ?

10 Answers   Wipro,


Categories