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

what is memory leakage?

15 Answers   ITC Infotech, Panamax, TIT,


When should I use smart identification?

0 Answers  


i want to handle all the unwanted pop up through QTP i done that with recovery scenario but it need some title of pop up but i want that it should handle all the pop up even i don't give the title of that pop up in recovery scenario is there any general way to handle all the pop up please help

3 Answers  


Write code for ,We have a web table with rows and columns like EmpID EName Action 1 ABC Edit Delete 2 XYZ Edit Delete 3 PQR Edit Delete In the above Table the last column has two links we have to click first link based up on EmpID =2

2 Answers  


How to find RAM size by using QTP?

2 Answers   IBM,






Add parameters during time in each row in one column

0 Answers  


In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer

0 Answers   Tavant Technologies,


explain structured testing? plz guys with exp. do answer

0 Answers  


Syntax for how to call one script from another and Syntax to call one "Action" in another?

1 Answers   Crea,


how to add a runtime parameter to a data sheet?

6 Answers  


How to get data line by line from web element

2 Answers  


in qtp 3 sheets is there in data table like global, action1, action2. I want to check the rows and columns in action2. how can check using script?

2 Answers   Polaris,


Categories