在QTP使用中計(jì)時(shí)方法有如下三種:
方法一:MercuryTimers
MercuryTimers ("數(shù)據(jù)入倉").Start wait 2 MercuryTimers("數(shù)據(jù)入倉").Stop print MercuryTimers("數(shù)據(jù)入倉").ElapsedTime |
方法二:Timer
time1=timer wait 2 time2=timer time3=time2-time1 print time3 |
方法三:
Services.StartTransaction "入倉時(shí)間_" wait 2 Services.EndTransaction "入倉時(shí)間_" |