QTP: Difference betwwen synchronization and Wait

  Basically synchronization and wait are confusing terms.

There are 2 types of Synchronization.

Local and Global.

For an object there is a Global synch time (20 seconds by default)(Available under File->Settings->Run in QTP 9.0)
and additionally we can set individually the synch time for a particular object.

Hence total synch time is =
Local + Global synch time.

In wait there is no Global concept and it is local to that object only.

Another key differnce is:

Suppose we have put a wait for 10 seconds then the application would wait for 10 seconds unconditionally.But say if we put a synch point of 10 secs say for an object to appear(local) and default Global synch time is 20 seconds,then total synch time for that object is 20 + 10 =30 seconds,
but in case the object would appear in 15 seconds itself,eventhough the total synch time was 30 seconds,the script would proceed to the next task.

Hope the concept is clear,it can help beginners especially.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值