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

Hi Samrat, Thank u very much, what u said it is right.

1338


What is keyword driven framework?

608


RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?

2169


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

713


What are the check points can be inserted without recording?

592






Hi, Can we open a test in qtp10 which is saved in qtp 9.2?

1427


In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

555


what testplan contents and what test strategy contents,what is the diff b/w them

1639


What is action split and the purpose of using this in qtp?

529


Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.

1605


How to execute a winrunner script in quicktest professional?

550


In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.

1435


What is the difference between rational rose and QTP?

1775


What is the difference between run time object and test object in QTP?

560


How to associate function library at a run time?

696