What is an other way of "Wait" statement in QTP
I dont want to use wait("Some number").
Can any one tell this please..........

Answer Posted / tvs ramakrishna chowdary

timeout=0
expval=true
actval=window("Flightreservation").winbutton
("updsteorder").getroproperty("enabled")
while((expval<>actval) & (timout<30))
wait(2)
timeout=timeout+1
actval=window("FR").winbutton("UO").getroproperty("enabled")
wend
if(timeout=30)then
msgbox "update order btn is not enabled in given time frame
hence exiting action")
exitaction

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

please post the interview questions for QA position in FACTSET

4139


UFT 12.02 which ALM version will support

1167


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

1442


Difference between test object and run time object?

726


How is recording done when a application is over lapping the QTP application it gives a message object not recorded

1728






Through array we can execute the testcase how ? give me example

1582


Which environments are supported by hp qtp?

739


Can any body please tell me the steps of keyword driven framework of QTP.

1727


what is vmodel?advantages and disadvantages of vmodel?

1778


What are table and db checkpoints?

755


How many types of status are there?

764


what is command for executing files?

1681


what testplan contents and what test strategy contents,what is the diff b/w them

1829


How the smart identification is used in real time?Please explain with an example

1742


What is the difference between per-action and shared?

761