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

On what basis we select test cases to automate?

0 Answers  


What is the XML file architecture ?

0 Answers  


what is qtp automation framework, what is the purpose of the framework and which folders included in this framework pls tell me with brief description

2 Answers   PSI Data Systems,


Whenever we r keeping mouse pointer under the image we r getting image name. In qtp how can we do this thing.weather that name is coming or not?

5 Answers  


i have data in excel sheet.i imported the data in data table.while doing parameterization,how the code knows it is a valid or invalid data?

2 Answers   Fiserv,






How do you start automating/ writing your QTP scripts ?

3 Answers   Keane India Ltd,


what is keyword driven framework in qtp.

13 Answers   Cognizant, TCS,


What is object state in trigger events,in recovery scenario.write a script to handle this.

0 Answers  


What is the difference between systemUtil and invoke method..?

5 Answers  


write code to read and write data from file?

1 Answers   IBM,


What are the automation metrice in your project?

0 Answers   Accenture,


I want to open a Google page without recording a test and i do not want to use system.Util.run command as well how do i do this?

11 Answers   IBM,






Categories