




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、測試用例模板測試用例 (Test case)用例名稱 用例編號 重要程度 用例設(shè)計(jì)人 代碼負(fù)責(zé)人 測試人 測試時(shí)間 English versionTitle Case ID Level Designer Developer Tester Time 測試場景描述 (Case scenario)場景描述子場景(可選)子場景1 例如,返回10條記錄子場景2 例如,返回100條記錄測試流程 (Testing process)描述被測試應(yīng)用場景的商業(yè)流程,流程必須在實(shí)際測試中發(fā)揮良好的導(dǎo)航作用,使不熟悉該系統(tǒng)的使用者能夠?qū)ι虡I(yè)流程有清晰的了解。(被測的商業(yè)流程應(yīng)該事先通過檢測,以確保功能的順利運(yùn)行。應(yīng)用
2、程序代碼在測試階段應(yīng)該被凍結(jié))123測試條件和要求 (Requirements)環(huán)境要求硬件要求:WEB服務(wù)器 - 配置1.2 (詳細(xì)配置信息見測試計(jì)劃文檔,或附錄)軟件要求:補(bǔ)丁要求:網(wǎng)絡(luò)要求:性能基線和衡量指標(biāo) (Testing baseline & metrics)前提 (測試結(jié)果有效的先決條件)1. 例如:無內(nèi)存泄漏;HTTP錯(cuò)誤個(gè)數(shù)為02. 數(shù)據(jù)庫數(shù)據(jù)要求例如:流水表已有20萬條記錄3. 并發(fā)連接數(shù)要求4. 測試周期或測試次數(shù)性能基線1. 例如:每秒鐘完成XXX筆交易2.3.監(jiān)視參數(shù) (詳情見附錄)1. 例如:Performance Monitor: Private Byte
3、2.3.性能計(jì)算方式1. 例如:數(shù)據(jù)庫交易表增加紀(jì)錄數(shù) / 總時(shí)間(秒)2.3.測試數(shù)據(jù)和腳本 (Testing data, Scripts)測試數(shù)據(jù)準(zhǔn)備包括登陸賬號組,輸入數(shù)據(jù);可以事先保存在某個(gè)文本文件中測試數(shù)據(jù)庫數(shù)據(jù)庫、表、存儲過程、視圖、用戶帳號、相關(guān)數(shù)據(jù)測試腳本根據(jù)測試工具編寫相應(yīng)腳本或編寫手工測試腳本for Example1LBrowser1. Navigate to the home page of the Online Shopping site.2. Click “Help.”3. Click “FAQ.”4. Click “Shopping” on FAQ.5. Click
4、 “Shopping/Our Products” on the main menu.6. Click “Product Search.”7. Click “Special Offers.”8. Click “Store Finder.”9. Click Central Scotland to view shop addresses.10. Click “Edinburgh” to see details.11. Click “After Sales.”12. Click “Basket.”13. Navigate to the home page of the Online Shopping
5、site.14. Click on Advert at bottom of page.測試手段 (Testing instrument)例如: 編寫自動(dòng)測試工具或使用專用測試工具。備注 (Remarks)附錄A 應(yīng)用軟件性能數(shù)據(jù)分類4.1 應(yīng)用軟件性能數(shù)據(jù)概述在企業(yè)級應(yīng)用的負(fù)載測試過程中,測試工具通過部署一整套性能監(jiān)視器,來收集和顯示各個(gè)架構(gòu)層次、服務(wù)器和組件上的性能數(shù)據(jù),包括網(wǎng)絡(luò)、操作系統(tǒng)、應(yīng)用服務(wù)器、中間件、應(yīng)用程序、.NET服務(wù)器、Web服務(wù)器和數(shù)據(jù)庫服務(wù)器。在進(jìn)行負(fù)載測試時(shí),這些數(shù)據(jù)用來精確測量系統(tǒng)各個(gè)方面的性能,從而用戶可以快速、簡便地定位問題和瓶頸的來源。最終,這些數(shù)據(jù)用來生成各種
6、文檔和圖表,并判斷出應(yīng)用程序的性能是否滿足業(yè)務(wù)的需要。4.2 應(yīng)用軟件常用性能數(shù)據(jù)描述1. Number of Concurrent Users (NCU)并發(fā)用戶數(shù) 在指定時(shí)刻,系統(tǒng)觀察到的并發(fā)用戶連接數(shù)。2. Request Per Second (RPS)每秒處理請求數(shù) 指示服務(wù)器平均每秒鐘能處理的用戶事務(wù)請求數(shù)量。3. Response Time響應(yīng)時(shí)間 指從客戶發(fā)出一個(gè)事務(wù)請求到收到處理結(jié)果的最后一個(gè)字節(jié)的時(shí)間長度。4. Time to First Byte (TTFB)客戶端收到響應(yīng)的第一個(gè)字節(jié)的平均毫秒數(shù)。5. Time to Last Byte (TTLB)客戶端收到響應(yīng)的最后
7、一個(gè)字節(jié)的平均毫秒數(shù)。6. Think Time思考時(shí)間 用戶在發(fā)送下一個(gè)請求前花在瀏覽頁面上的時(shí)間。7. Hits per Second每秒點(diǎn)擊次數(shù)8. Throughput吞吐量 以kilobyte為單位,客戶每秒接收的數(shù)據(jù)總量。9. Pages per Second每秒下載頁數(shù) 每秒內(nèi)從Web服務(wù)器上下載到客戶端的Web頁面數(shù)量。10. User-define Data Point (supported by LoadRunner)用戶自定義性能指標(biāo) 由LoadRunner支持的自定義性能指標(biāo),比如: Transaction Response Time, Transaction Per
8、Second Passed, Failed。11. %Processor Time:CPU平均利用率12. %User Time:用戶態(tài)CPU平均利用率13. % Privileged Time:核心態(tài)CPU平均利用率14. Processor Queue Length:處理器隊(duì)列中的線程數(shù)15. Context Switches per Second:每秒線程切換次數(shù)16. Interrupts/Sec:每秒中斷數(shù)17. Page Faults / sec:每秒內(nèi)存換頁數(shù)18. Memory, Available Bytes:平均剩余的可用內(nèi)存19. Private Bytes:進(jìn)程分配內(nèi)存
9、數(shù)20. Process, Handle Count:進(jìn)程使用系統(tǒng)句柄數(shù)21. Memory, Pool Paged Bytes:可交換到硬盤的系統(tǒng)物理內(nèi)存byte數(shù)。22. Memory, Pool Non-paged Bytes:不可交換到硬盤的系統(tǒng)物理內(nèi)存byte數(shù)。23. Network Interface, bytes total/sec:網(wǎng)絡(luò)帶寬利用率24. Network Interface, Output Queue Length:網(wǎng)絡(luò)適配器輸出隊(duì)列長度25. Physical Disk, %Disk Time:物理磁盤利用率26. Physical Disk, Avg Dis
10、k Queue Length:物理磁盤平均磁盤I/O隊(duì)列長度27. Physical Disk, Current Disk Queue Length:物理磁盤當(dāng)前磁盤I/O隊(duì)列長度28. Physical Disk, Disk Read/Sec, Disk Write/Sec:物理磁盤每秒讀/寫操作次數(shù)29. COM+ Authenticate (by LoadRunner):COM+ 調(diào)用級別驗(yàn)證成功頻率30. COM+ Authenticate Failed (by LoadRunner):COM+ 調(diào)用級別驗(yàn)證失敗的頻率31. COM+ Activation (by LoadRunner
11、):COM+ 應(yīng)用激活頻率32. COM+ Failed (by LoadRunner):COM+ 應(yīng)用關(guān)閉頻率33. COM+ Thread Start (by LoadRunner):STA的線程啟動(dòng)的比率34. COM+ Thread Terminate (by LoadRunner):STA的線程中止的比率35. Transaction Duration (by LoadRunner):COM+事務(wù)的平均周期36. Transaction Start (by LoadRunner):COM+事務(wù)啟動(dòng)比率37. Transaction Prepared (by LoadRunner):C
12、OM+事務(wù)進(jìn)入準(zhǔn)備階段的比率38. Transaction Aborted (by LoadRunner):COM+事務(wù)回滾的比率39. Transaction Commited (by LoadRunner):COM+事務(wù)提交的比率40. Object LifeTime(by LoadRunner):COM+組件平均生命期41. Object Create (by LoadRunner):創(chuàng)建COM+組件實(shí)例的比率42. Object Destroy (by LoadRunner):釋放COM+組件實(shí)例的比率43. Object Activate (by LoadRunner):COM+ J
13、IT-actived對象激活的比率44. Object Deactivate (by LoadRunner):COM+ JIT-actived對象失活的比率45. Disable Commit (by LoadRunner):COM+對象處于DisableCommit狀態(tài)的比率46. Enable Commit (by LoadRunner):COM+對象處于Enable狀態(tài)的比率47. Set Complete (by LoadRunner):COM+對象處于SetComplete狀態(tài)的比率48. Set Abort (by LoadRunner)COM+對象處于SetAbort狀態(tài)的比率4
14、9. COM+ Method Duration (by LoadRunner):COM+方法調(diào)用平均持續(xù)時(shí)間50. COM+ Method Frequency (by LoadRunner):COM+方法調(diào)用頻率 51. COM+ Method Failed (by LoadRunner):COM+方法失敗的頻率52. COM+ Method Exception (by LoadRunner):COM+方法拋出異常的頻率53. Active Server Page, Request per Second:ASP每秒執(zhí)行請求數(shù)54. Active Server Page, Request Que
15、ue:ASP請求隊(duì)列長度55. Active Server Page, Requests Execute Time:ASP平均請求執(zhí)行時(shí)間56. Active Server Page, Requests Wait Time:ASP平均請求等待時(shí)間57. Active Server Page, Session Current:當(dāng)前活動(dòng)Session計(jì)數(shù)58. .NET CLR Data, SqlClient, Current # Pooled Connection:當(dāng)前被連接池緩存的數(shù)據(jù)庫連接59. .NET CLR Data, SqlClient, Current # Pooled and N
16、on-pooled Connection當(dāng)前所有的數(shù)據(jù)庫連接,緩存和未緩存的60. .NET CLR Memory, Gen 0、1、2 heap size:.NET中0、1、2代虛擬堆的大小61. .NET CLR Memory, # bytes in all Heaps:.NET中托管內(nèi)存的總數(shù)62. ASP.NET, Application Restarts:ASP.NET中應(yīng)用重新啟動(dòng)的次數(shù)63. ASP.NET, Work Process Restarts:ASP.NET中工作進(jìn)程重新啟動(dòng)的次數(shù)64. ASP.NET, Request Execution Time:ASP.NET平均
17、請求執(zhí)行時(shí)間毫秒數(shù)65. ASP.NET, Request Wait Time:ASP.NET平均請求等待時(shí)間毫秒數(shù)66. ASP.NET, Requests Queued:ASP.NET平均請求隊(duì)列長度67. ASP.NET Application, Requests/Sec:ASP.NET某特定應(yīng)用每秒鐘處理的請求數(shù)68. ASP.NET Application, Requests Executing:ASP.NET某特定應(yīng)用正在執(zhí)行的請求數(shù)69. ASP.NET Application Sessions Active:ASP.NET某特定應(yīng)用中活動(dòng)的Session數(shù)70. Web Ser
18、vice, Get Requests per Second:HTTP的GET方法每秒請求數(shù)71. Web Service, Post Requests per Second:HTTP的POST方法每秒請求數(shù)72. Distributed Transaction Coordinator, Transactions/Sec 每秒的分布式事務(wù)數(shù)73. Distributed Transaction Coordinator, Committed Transactions 提交的分布式事務(wù)總數(shù)74. Distributed Tran
19、saction Coordinator, Aborted Transactions 回滾的分布式事務(wù)總數(shù)75. Distributed Transaction Coordinator, Active Transactions 當(dāng)前活動(dòng)的分布式事務(wù)數(shù)76. Distributed Transaction Coordinator, Response Time Average 分布式事務(wù)從開始到提交的平均時(shí)間間隔77. SQL Server, Cache Manager, Cache Hit
20、Ratio:SQL Server的緩存區(qū)命中率78. SQL Server, Cache Manager, Cache Used Counts per Second SQL Server每秒內(nèi)使用的緩存對象數(shù)79. SQL Server, Locks, Exclusive/Shared & Users blocked SQL Server 每秒內(nèi)用戶由于表級鎖被阻塞數(shù)80. SQL Server, % Procedure Cache Used & % Procedure Cache Active
21、 SQL Server存儲過程緩存使用率81. SQL Server, Transaction/Sec:SQL Server每秒的事務(wù)數(shù)82. SQL Server, General statistics, User Connections SQL Server 當(dāng)前用戶連接數(shù)83. SQL Profiler, Audit Login/Logout SQL Profiler中跟蹤用戶登入/登出數(shù)84. SQL Profiler, Stored Procedure, RPC CompletedSQL
22、Profiler中跟蹤存儲過程的調(diào)用85. SQL Profiler, TSQL, Batch Completed:SQL Profiler中跟蹤TSQL語句的調(diào)用86. SQL Profiler, SQL Transaction:SQL Profiler 中跟蹤事務(wù)的提交。4.3 應(yīng)用軟件性能數(shù)據(jù)分類企業(yè)應(yīng)用程序可以根據(jù)系統(tǒng)架構(gòu)分成以下類型 Client/Server 客戶機(jī)/服務(wù)器架構(gòu)ll 基于瀏覽器/Web服務(wù)器的三層架構(gòu) 基于中間件應(yīng)用服務(wù)器的三層架構(gòu)ll 基于Web服務(wù)器和中間件的多層架構(gòu)以上架構(gòu)都由客戶機(jī)、Web服務(wù)器、中間層應(yīng)用服務(wù)器、數(shù)據(jù)庫服務(wù)器組成。通過針
23、對不同層次的性能指標(biāo)監(jiān)測,可以分析出整體架構(gòu)的性能指標(biāo)和性能瓶頸。 1 數(shù)據(jù)庫服務(wù)器的性能指標(biāo)監(jiān)測l Processor, %Processor Time Processor, %User Timel Processor, %l Privileged Time Processor, Processor Queue Lengthl System, Contextl Switches per Second Memory, Page Faults/secl Memory, Availablel Bytes Memo
24、ry, Pool Paged Bytesl Network Interface, bytes total/secll Network Interface, Output Queue Length Physical Disk, %Disk Timell Physical Disk, Current Disk Queue Length Physical Disk, Avg Disk Queuel Length Physical Disk, Disk Read/Sec, Disk Write/Secl SQL Server,l General sta
25、tistics, User Connections SQL Server, Transaction/Secl SQLl Server, Cache Manager, Cache Hit Ratio SQL Server, Cache Manager, Cachel Used Counts per Second SQL Server, Locks, Exclusive/Sharedl & Users blocked SQL Server, % Procedure Cache Usedl & % Procedure Cache Ac
26、tive SQL Profiler, Audit Login/Logoutl SQL Profiler, Storedl Procedure, RPC Completed SQL Profiler, TSQL, Batch Completedl SQLl Profiler, SQL Transaction2 Web服務(wù)器的性能指標(biāo)監(jiān)測 Processor, %Processorl Time Processor, %User Timel Processor, % Privileged Timell Processor, Pro
27、cessor Queue Length System, Context Switches per Secondll Process, Private Bytes Memory, Page Faults/secl Memory, Availablel Bytes Memory, Pool Paged Bytesl Network Interface, bytes total/secll Network Interface, Output Queue Length Physical Disk, %Disk Timell Physical
28、Disk, Avg Disk Queue Length Number of Concurrent Users (NCU)ll Request Per Second (RPS) Response Timel Time to First Byte (TTFB)ll Time to Last Byte (TTLB) Think Timel Web Service, Get Requests perl Second Web Service, Post Requests per Secondl Active Server Page,l
29、 Request per Second Active Server Page, Request Queuel Active Serverl Page, Requests Execute Time Active Server Page, Requests Wait Timell Active Server Page, Session Current 。3 基于ASP.NET的Web服務(wù)器或Web Service服務(wù)器性能指標(biāo)監(jiān)測 Processor, %Processor Timel Processor, %User Ti
30、mell Processor, % Privileged Time Processor, Processor Queue Lengthl System,l Context Switches per Second Process, Private Bytesl Memory, Pagel Faults/sec Memory, Available Bytesl Memory, Pool Paged Bytesll Network Interface, bytes total/sec Network Interface, Outp
31、ut Queuel Length Physical Disk, %Disk Timel Physical Disk, Avg Disk Queuel Length Number of Concurrent Users (NCU)l Request Per Second (RPS)ll Response Time Time to First Byte (TTFB)l Time to Last Byte (TTLB)ll Think Time Web Service, Get Requests per Secondl
32、Web Service, Postl Requests per Second ASP.NET, Application Restartsl ASP.NET, Workl Process Restarts ASP.NET, Request Execution Timel ASP.NET, Request Waitl Time ASP.NET, Requests Queuedl ASP.NET Application, Requests/Secll ASP.NET Application, Requests Executing
33、ASP.NET Application Sessionsl Active4 中間層應(yīng)用服務(wù)器的性能指標(biāo)監(jiān)測 Processor, %Processor Timel Processor,l %User Time Processor, % Privileged Timel Processor, Processor Queuel Length System, Context Switches per Secondl Process, Private Bytesll Memory, Page Faults/sec Memory, A
34、vailable Bytesl Memory, Pool Pagedl Bytes Network Interface, bytes total/secl Network Interface, Outputl Queue Length Physical Disk, %Disk Timel Physical Disk, Avg Disk Queuel Length COM+ Authenticate (by LoadRunner)l COM+ Authenticate Failed (byl LoadRunner)
35、COM+ Activation (by LoadRunner)l COM+ Failed (byl LoadRunner) COM+ Thread Start (by LoadRunner)l COM+ Thread Terminatel (by LoadRunner) Transaction Duration (by LoadRunner)l Transaction Startl (by LoadRunner) Transaction Prepared (by LoadRunner)l Transactionl Abort
36、ed (by LoadRunner) Transaction Commited (by LoadRunner)l Objectl LifeTime(by LoadRunner) Object Create (by LoadRunner)l Object Destroyl (by LoadRunner) Object Activate (by LoadRunner)l Object Deactivate (byl LoadRunner) Disable Commit (by LoadRunner)l Enable Commit (byl LoadRunner) Set Complete (by LoadRunner)l Set Abort (byl LoadRunner) COM+ Method Duration (by LoadRunner)l COM+ Method
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 計(jì)算機(jī)軟件編程基礎(chǔ)試題集及答案解析
- 移動(dòng)醫(yī)療健康應(yīng)用軟件授權(quán)使用協(xié)議
- 物業(yè)管理裝修協(xié)議書
- 產(chǎn)品市場推廣策略與操作手冊編制
- 設(shè)備分期付款銷售合同
- 初中生心理健康故事
- 國際物流與運(yùn)輸合同
- 知識產(chǎn)權(quán)轉(zhuǎn)讓協(xié)議簽署細(xì)節(jié)說明
- 物流行業(yè)個(gè)性化配送優(yōu)化方案
- 初中生職業(yè)規(guī)劃課程心得
- 人教版(2024新版)英語七年級上冊期末復(fù)習(xí)綜合測試卷(含答案)
- 網(wǎng)絡(luò)虛擬貨幣交易合同
- 2 讓我們的家更美好 第一課時(shí) 擔(dān)當(dāng)家庭責(zé)任(教學(xué)設(shè)計(jì))2023-2024學(xué)年統(tǒng)編版道德與法治五年級下冊
- 2024年中國電動(dòng)助力汽車轉(zhuǎn)向系統(tǒng)(EPS)行業(yè)市場現(xiàn)狀、前景分析研究報(bào)告
- 復(fù)數(shù)算符在量子力學(xué)中的應(yīng)用
- 2023年全國初中物理競賽試題及答案
- 2024年各地中考試卷【文言文閱讀題】匯集練(一)附答案解析
- 2024年重慶市中考英語試卷真題B卷(含標(biāo)準(zhǔn)答案及解析)+聽力音頻
- 旅游景區(qū)服務(wù)標(biāo)準(zhǔn)化操作手冊
- 中央2024年中國醫(yī)學(xué)科學(xué)院血液學(xué)研究所血液病醫(yī)院招聘17人筆試歷年典型考題及考點(diǎn)附答案解析
- 產(chǎn)調(diào)授權(quán)委托書模板
評論
0/150
提交評論