Wednesday, July 10, 2013

Qtp : Setting Timers , Object Sync Timeout and Iterations in Run Time

 

Timer Methods
  1. Continue Method - Continue counting
  2. Reset Method - Reset timer
  3. Start Method - Starts Timer
  4. Stop Method - Stops Timer

Object Sync Timeout
 
msgbox "current timeout "& Setting("ObjectSyncTimeOut")
Setting("DefaultTimeout")=5000


msgbox "new timeout "& Setting("ObjectSyncTimeOut")




Example :
  Setting("DefaultTimeout")=5000
   MercuryTimers("T1").Start
   If oObj.exist then Reporter.ReportEvent micPass,"title","Info"
   MercuryTimers("T1").Stop

   print MercuryTimers("T1").ElapsedTime




 

No comments:

Post a Comment