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

What is the basic concept of quicktest professional?

772


What are the types of object repository in qtp?

781


Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you

1775


What is the expert view?

764


who QTP recognizes the object stored in object repository?

1866


What contains Data Driven Framework document in qtp?

1662


Explain types of output values?

749


What is the use of ordinal identifier in qtp?

780


What are the steps involved in the recovery scenario wizard?

786


What is reusable action?

798


Hello Everyone, Please provide me the practical example of business component concept of QTP.Like how to create business component,how to connect the quality center etc.... Thanks in advance, Gaytri

1658


Connect to QC using AOM.

1468


in a web page hoe to check the dynamic links that rechabging with out using regular expressions

1992


Hoe can we do retesting using functions please give the code for it using login page

1754


How is a Step generator used in UFT?

897