What is an other way of "Wait" statement in QTP
I dont want to use wait("Some number").
Can any one tell this please..........
Answers were Sorted based on User's Feedback
Answer / hemakumar..m
Use Exist Method.
Ex:
Browser("title:=.*").Page("title:=.*").Link
("name:=OK").Exist(2)
It will wait upto specified time(2sec) when object does not
exist.
Is This Answer Correct ? | 9 Yes | 3 No |
Answer / deepak
You can also use Do Until
E.g- There is a particular button in the next page which is
about to come then you can write like this:
Do Until Browser("...").Page("...").WebButton("...").Exist
Wait(1)
Loop
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / jitendra
It depends upon why you have used wait() in ur code.
Probably you can use the Sync() method.
This method will wait, till the client gets a response from
server or the Object Synchronization time is not crossed.
Browser().Page().Button().Click
Browser().Page().Sync
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / king
Increase the defult time... the default time is 20 seconds
u can increase how much u want..
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / prashanth
I use a windows application where except wait function and
wait property i have no other options.
Then how to proceed, as wait function is not a right way of
coding as I know and wait property cannot be used in case
as no object is going to change exceot the window gets
refreshed when RETURN key is clicked.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kajal
object.WaitProperty "Property Name","Property
Value",10000
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / kumar
obj hierarchy.wait proprerty"property name",property value,extra time in milli seconds
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / suvrat sharma
Service.ThinkTime(5)
It's same as Wait(5) and will pause your execution of
script for 5 sec.
Thanks!
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / litan
Excluding Wait 2 other methods are there.
1.Browser("micclass:=Browser").page("micclass:=Page").Sync
2.Wait Property
Ex:Browser("micclass:=Browser").Page("micclass:=Page").Image
("name:=Pic).WaitProperty "Property Name","Property
Value",30000
It will wait till in next page That Property Match
Is This Answer Correct ? | 1 Yes | 2 No |
Answer / 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 |
There is one login screen,after accepting valid username and apassword, it will show the next screen. In the 2nd screen u r having 2 combo boxes, U have to select any item from these, and click OK button. After closing that, it will show the 3rd screen. If u click CANCEL button from 2nd screen it will show the first screen. Write QTP script for it???
Hi All I'm new in QTP. I'm trying to make test cases for login on Flight.exe . I have parametrise the agentname and password field. So wen wromg agent name or password is entered it show a dialog box with proper message(Like: "Wrong Password" or :Please enter Password" etc) and OK button. I have created If else block. Now my problem is i want to make checkpoint on error message Dialog box. But each time i create a checkpoint it shows same text message. So how i can check that message is there or not.
banking domain description for software tester for interview
i need to add 1000 users in a domain i written the script for that and it is running successfuly but the problem is that my system is not the user of that domain in which i have to add users so for adding users in that domain i have to install qtp on that another system, can anybody suggest me the way to add those users from my system ultimately i want to know how to access remote computer through script
What is Object Spy?
7 Answers JKH, Ordain Solutions,
What is the difference between browser sync and page sync in QTP?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
I am using descriptive programming for my project.when QTP deosn't identity or recognize a object by record and playback method,is it possible to make QTP identify that object using descriptive programming? Note: The object doesn't have unique properties and same properties used in Record and playback are only available, no extra properties are defined.
What is 'sleep' in sync point?
what is On Error Resume Next ?
in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?