<!--[if !supportLists]-->b) <!--[endif]-->Goal模式
Web用戶分虛擬用戶數目標,Hits/Second目標, Pages目標,Transactions數(TransAction需要指定)
<!--[if !supportLists]-->9. <!--[endif]-->LoadRunner參數設置
<!--[if !supportLists]-->10. <!--[endif]-->被測試軟件監控和日志分析設計
性能測試功能實現
<!--[if !supportLists]-->1. <!--[endif]-->測試環境配置
<!--[if !supportLists]-->2. <!--[endif]-->LoadRunner測試設計實現
LoadRunner性能測試的文檔在公網上非常多,幫助手冊也很全面,就不再重點描述
<!--[if !supportLists]-->1. <!--[endif]-->錄制代碼需要刪除和本次測試無關的任務語句
<!--[if !supportLists]-->2. <!--[endif]-->調試代碼可以編寫,但正式執行前必須注銷,特別是Output Message類型的命令
<!--[if !supportLists]-->3. <!--[endif]-->明確Web測試模式Html和Http的區別,按照設計來制定
<!--[if !supportLists]-->4. <!--[endif]-->對動態捕獲的數據進行判斷
比如web_reg_add_cookie, web_reg_save_param等函數
需要判斷”查詢”是否注冊成功,判斷是否取回了數據,判斷取回的數據類型是否滿足預期,減少實際運行時出現異常.
性能測試執行和分析
<!--[if !supportLists]-->1. <!--[endif]-->按照性能測試Case執行
<!--[if !supportLists]-->2. <!--[endif]-->保存LoadRunner測試結果
<!--[if !supportLists]-->3. <!--[endif]-->使用Windows性能監控或者Loadrunner來記錄Web站點的各個性能計數器
<!--[if !supportLists]-->4. <!--[endif]-->記錄Windows資源的性能計數器,包括CPU,內存,硬盤,網絡
<!--[if !supportLists]-->5. <!--[endif]-->記錄CLR的性能計數器
<!--[if !supportLists]-->6. <!--[endif]-->記錄數據庫(MSSQL)的性能計數器等
性能測試報告
<!--[if !supportLists]-->1. <!--[endif]-->編寫各個測試用例的測試結論
<!--[if !supportLists]-->2. <!--[endif]-->分析和確認目前產品中的性能瓶頸
<!--[if !supportLists]-->3. <!--[endif]-->記錄顯示測試過程和測試原始數據
<!--[if !supportLists]-->4. <!--[endif]-->性能測試優化建議
性能測試迭代測試
性能測試應該是一個迭代的過程, 測試發現和定位性能瓶頸, 根據問題原因修改系統配置或者代碼, 修改后應用原來的測試環境和手段, 再次測試,驗證問題是否解決, 配置是否生效, 對性能值各個方面比較,檢測是否真正優化.
性能測試持續迭代測試到滿足性能需求為止.
文章來源于領測軟件測試網 http://www.kjueaiud.com/