HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me
sample script for this where there is some condition. like
if "text" THEN msgbox() else endif

Answer Posted / gavaskar reddy

a=inputbox("text")
msgbox a
if (a=true) then
msgbox "pass"
else
msgbox "fail"

Is This Answer Correct ?    4 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if numbers are always changing write a script for that

3402


What is use of object spy?

613


What are the challenges you faced during you entire life automation ?

1006


Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..

1353


how interviews will be on QTP?

1523






How can you close the second opened browser?

804


Analyzing the checpoint results?

597


How you will rate urself in QTP in the range of 0 to 5

1748


What is the extension of the recovery scenario file in qtp?

546


Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?

1493


What is the default add-ins in qtp?

556


in qtp 3 sheets is there in data table like global, action1, action2. I want to check the rows and columns in action2. how can check using script?

6327


How many tabs are available in debug viewer pane?

649


Is any limitation to xml checkpoints?

563


Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?

3271