Q. The object synchronization timeout (Test > Settings > Run tab) setting is set to 20,000 milliseconds (20 seconds).Consider the following statement: JavaWindow("Trade Manager").JavaDialog("Trade Entry").JavaButton("Enter").Exist 10What is the maximum amount of time the statement will wait for the specified object to appear?A 20 seconds B 10 seconds C 30 seconds D 10 milliseconds E 20,010 milliseconds

Showing Answers 1 - 5 of 5 Answers

shyam

  • Oct 8th, 2006
 

What is the maximum amount of time the statement will wait for the
specified object to appear?

A 20 seconds

B 10 seconds

C 30 seconds

D 10 milliseconds

E 20,010 milliseconds

Answer is A

  Was this answer useful?  Yes

Senthil Kumar P

  • Oct 11th, 2006
 

Hi

If it's syntax is correct it will wait for 30 seconds.

Synchornazation point waiting time is

time in run settings(here 20 seconds) +time mentioned in script(here 10 seconds)= so 30 seconds is answer 

  Was this answer useful?  Yes

Hi

1). If u specify timeout value 10 sec after exit command it waits for 10 seconds only.

Eg: JavaWindow("Trade Manager").JavaDialog("Trade Entry").JavaButton("Enter").Exist 10

2). If the time out value is 0 it doesn't wait for the button.

Eg:JavaWindow("Trade Manager").JavaDialog("Trade
Entry").JavaButton("Enter").Exist 0

3).If the timeout value u specify Blank it waits upto completion of default

 time out(20,000ms) 20 sec. 

Eg:JavaWindow("Trade Manager").JavaDialog("Trade
Entry").JavaButton("Enter").Exist

any errors plz mail me.

  Was this answer useful?  Yes

Nadeem Sharifuddin

  • Jan 2nd, 2007
 

QTP will wait for maximum 30 seconds

before show error , if button does not exist.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions