Hi,

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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to export quicktest professional (qtp) results to an .xls file?

601


Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

3221


hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale

1511


How to save your test using quicktest professional (qtp)?

599


How will you check a web application for broken links using qtp?

553






How do I get the QTP scripts result in xml format by using vb script function?

1785


How will you compare keyword and expert view?

539


Explain data driven framework?

579


Output values? i want a practical example

1309


How will you handle java tree in qtp?

629


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?

533


What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

707


breef description of batch testing ?

1709


i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

1606


How to associate shared object repository to test in qtp?

505