如何計劃一個壓力會話load session
what application are you going to test?
What functionality do you want to test – what actions will the users perform?
How many Virtual Clients you want to simulate?
How long your test will run?
What are acceptable results? Acceptable results are defined by your test objective. For example, you can verify:
Acceptable user response times
Reliability by running stress tests
Performance degradation after updates
What resources are required for performing the test?
創(chuàng)建測試議程agenda
用WebLoad Visual AAT創(chuàng)建測試議程agenda:
打開Visual Agenda Authoring Tool
選擇[Create a new project],并[確定]
創(chuàng)建測試議程agenda
設(shè)置清除瀏覽器的cache和cookie:
選擇[tools]->[default project options]->[IE playback settings]
選擇[clear cache]和[clear cookie]
點(diǎn)擊[ok]
目的:防止記錄腳本時將IE的相關(guān)信息保存到cache或cookie里引起不必要的麻煩.
創(chuàng)建測試議程agenda
點(diǎn)擊[start record]按鈕,彈出提示,點(diǎn)擊ok
自動打開一個IE,手工輸入要測試的地址,進(jìn)入系統(tǒng)
在測試系統(tǒng)里完成一系列操作
點(diǎn)擊[stop record]停止錄制,一個agenda腳本創(chuàng)建完畢;保存腳本
注意:
創(chuàng)建壓力模板load templates
用WebLOAD Console創(chuàng)建load templates-將一系列壓力事件定義到一個壓力會話load session里:
I.用webload wizard創(chuàng)建一個簡單的壓力模板
II.用Cruise Control Wizard創(chuàng)建一個預(yù)期性能參數(shù)的壓力測試模板
III.用webload console手工創(chuàng)建壓力模板
說明:打開webload console時提示選擇用哪個方式