Hi,

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

Answers were Sorted based on User's Feedback



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

Answer / kondalu

for example: calculator(table as form1) boxes in editbox as
the value1 and value2 and result,buttons as the
add,sub,mul,divide ,clear this in application vbscript
given bellow

vbwindow("form1").Vbedit("value1").set "10"
vbwindow("form1").vbedit("value2").set "20"
vbwindow("form1").vbbutton("add").click
vbwindow("form1").vbbutton("sub").click
vbwindow("form1").vbbutton("mul").click
vbwindow("form1").vbbutton("divide").click

Is This Answer Correct ?    10 Yes 2 No

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

Answer / 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

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

Answer / geena

Do record and play. U will understand how the script
appear. Then try.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

how do you run scripts in QTP?please anyone can answer my questions

4 Answers   Ordain Solutions,


w is recovery senario manager

3 Answers   Infosys,


What is reusable action?

0 Answers  


Hi, Can anyone help me with: How to select a value from combobox and check the checkbox and set the filter. I have to set a filter by selecting a value from dropdown. Also, im using UFT 11.5 so can anyone help me with code for UFT. Thanks Sreevidya

1 Answers  


i want to learn testing tools what i have to know before.iam fresher i dnt know any this..which langagues i have to before testing.

2 Answers   Wipro,






What are the Automation Limitations??

1 Answers  


What is the difference between the design-time and run-time data tables?

0 Answers  


In QTP, Give the difference of Global sheet and Local sheet in datatable?

3 Answers  


I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

0 Answers  


when to start the automation?

0 Answers   Accenture,


Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

0 Answers  


Explain actions in qtp ?

0 Answers  


Categories