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

val=window("customer").edit("").GetTOProperty("text")

msgbox val

if (val=true) then
msgbox "pass"
else
msgbox "fail"

Is This Answer Correct ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.

1558


How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?

572


What are the different types of recording modes in qtp? Which will be used when?

561


Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.

1497


Mention the different actions types of qtp.

571






If created one virtual object? Next time I changed the window position will it work?

575


Which functionalities of QTP used in banking project? pls any say answer?

1437


Explain the checkpoint in qtp?

588


What are the things(properties, and other details) will be recorded while recording an object using normal recording?

1489


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

580


What is data driver in qtp? Where we use it?

561


Explain the views in the QTP GUI?

615


Explain different checkpoints in qtp.

721


Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1519


In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field will reflects and so on.if total psngrs=100 then will we capture all the fields for the psngrs to Automate the app how we can handle this scenerio thru Descriptive programming?

1451