loadrunner 添加事務 與參數化 、集合點

 

1.事務、計算單個請求的相應時間spa

  添加事務 (事務是能夠嵌套的、但必須成對的)3d

lr_start_transaction('openshouye') 事務開始   lr_end_transaction('openshouye')    事務結束

lr_get_transaction_duration('openshouye') 獲取事務時間(包含浪費時間)
必須放置事務結束以前(Removes wasted time from all open transactions)
lr_get_transaction_vasted_time('openshouye')  獲取浪費時間
必須放置事務結束以前(Removes wasted time from all open transactions)

2. 手動設置事務的狀態code

lr_set_transaction_status

3. 計算代碼片斷的時間blog

 

time =lr_start_time()

waster=lr_end_time(time)
lr_wasted_time(waster*1000)

  4.浪費時間事務

lr_wasted_time()獲取浪費時間 是單位毫秒 milliseconds  與 秒之間1000

 

 
 

   5. 添加集合點get

 

lr_rendezvous("集合點")  //添加集合點
相關文章
相關標籤/搜索