Hi,

I am new to QTP and vb.script.How to start to write
vb.script in QTP? Please give me suggestions?

Answer Posted / satyanarayana

Hi dear it is very easy to write vb scripting.
First of all we have to understand what the actions to be
performed by us on the application.
Actions means entering a value or clicking a button or
selecting a value from a list dropdown list or selecting or
deselecting a check box.
example for a edit box
Browser("browsername").Page("pagename").Webedit("username").set"satyanarayana"
like the above for buttons .click
for list boxes .select"satyanarayana"
for radio buttons .set
for check boxes .set"on/off"

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

3596


What are the common defects found in your project? (in qtp interview)

1619


Can we record using all the modes in a single script? Explanation with example is appreciated

1390


How would you export a script from one pc to another in qtp?

663


How to check bitmap output value?

629






supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

1360


How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

3443


How many types of object repository in qtp?

608


What does it mean when a check point is in red color? What do you do?

568


What is action?

577


How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is

6307


How to find the difference between 2 dates in qtp?

583


Hi, While recording a Jave based web application, its recording all my actions and the objects.And I have 5 WebEdit objects on the page and all are recorded. But while execution, at the 2 WebEdit object, its entering the value into the object (Its making a call to the AJAX, matching the value), when the control get out of this object the value is erased or cleared. Could anyone please help. I have recoreded 5 more scenarios where WebEdit is in the picture on different webpages and all are working fine. Here is my Script: Browser("Sign In").Page("Matching Workbench_3").WebEdit ("locationLookup").Set "0320 - SEATTLE-KM" Browser("Sign In").Page("Matching Workbench_3").WebEdit ("supplierNameLookup").Set "TRAMMO PETROLEUM INC" *** SupplierNameLookup is the object, which is haing an issue. And also I was using the SendString function, but it didnt work.

1771


How we can import data from database?

651


Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1525