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

Diff b/w Health care domain and Banking Domain?

4433


How to use Environment parameterization? Explain with an example.

1741


write script for bitmap image?

1786


You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?

1580


What are the different kinds of test steps?

814


i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.

1782


What are the 3 main stages involved in testing with qtp?

834


Key word driven framework

1933


hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]

1694


What is the limitation to XML Checkpoints?

1849


Explain Descriptive Programming Types with Examples?

1171


what is test scheduleling?

2273


which type of testing process are you following in ur company? how to recognize a qtp page?

1605


How do client side image and server side image work?

1613


i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework

1847