وبلاگ بلیان

Pro Apache JMeter : web application performance testing

معرفی کتاب «Pro Apache JMeter : web application performance testing» نوشتهٔ Sai Matam,Jagdeep Jain (auth.)، منتشرشده توسط نشر Apress : Imprint: Apress در سال 2017. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Pro Apache JMeter : web application performance testing» در دستهٔ بدون دسته‌بندی قرار دارد.

Quickly ramp up your practical knowledge of Apache JMeter for software performance testing and focus on actual business problems. This step-by-step guide covers what you will need to know to write and execute test scripts, and verify the results. Pro Apache JMeter covers almost every aspect of Apache JMeter in detail and includes helpful screenshots and a case study. A performance primer chapter provides a high-level summary of terms used in performance testing on a day-to-day basis that also is useful for non-technical readers. A sample web application Digital Toys has been developed and test scripts are provided for you to try while progressing through the chapters. What You'll Learn: Create and execute an Apache JMeter test plan Interpret the results of your test plan Understand distributed testing using Apache JMeter Use Apache JMeter advanced features such as JDBC, REST, FTP, AJAX, SOAP, and mobile performance testing Read a sample case study covering end-to-end planning and execution of a performance testing project Generate and analyze a performance dashboard. Read more... Abstract: Quickly ramp up your practical knowledge of Apache JMeter for software performance testing and focus on actual business problems. This step-by-step guide covers what you will need to know to write and execute test scripts, and verify the results. Pro Apache JMeter covers almost every aspect of Apache JMeter in detail and includes helpful screenshots and a case study. A performance primer chapter provides a high-level summary of terms used in performance testing on a day-to-day basis that also is useful for non-technical readers. A sample web application Digital Toys has been developed and test scripts are provided for you to try while progressing through the chapters. What You'll Learn: Create and execute an Apache JMeter test plan Interpret the results of your test plan Understand distributed testing using Apache JMeter Use Apache JMeter advanced features such as JDBC, REST, FTP, AJAX, SOAP, and mobile performance testing Read a sample case study covering end-to-end planning and execution of a performance testing project Generate and analyze a performance dashboard Contents at a Glance 5 Contents 6 About the Authors 15 About the Technical Reviewer 16 Acknowledgments 17 Introduction 18 Chapter 1: Foundation 19 Why Performance Testing? 19 Why JMeter? 20 Chapter 2: Performance Testing Primer 21 Performance Testing 21 Response Time 21 Throughput 22 Utilization 23 Robustness 23 Scalability 23 User Perception 23 Cost 23 Types of Performance Tests 23 Stress Tests 23 Load Tests 24 Peak Load Tests 24 Soak Tests or Endurance Tests 24 Scalability Tests 24 Capacity Tests 24 Spike Tests and Burst Capacity 25 Performance Smoke Tests 25 High Availability Test/Fail-Over Tests 25 The Performance Test Environment 27 The Need for Separate Performance Environment 27 The Performance Environment Should Be Like the Production Environment 27 The Performance Environment Should Be Isolated 27 Performance Testing Tools 28 The Performance Testing Strategy Document 28 Performance Requirements 28 Performance Goals 28 Performance Test Suite 28 Performance Reporting and Analysis 29 Performance Tuning 29 Conclusion 30 Chapter 3: Your First JMeter Test 31 Components of a JMeter Test 31 Test Plan 31 Thread Group 31 Controller 32 Sampler 32 Listener 32 Timer 32 Assertions 32 Config Element 32 Pre-Processors 33 Post-Processors 33 Order of Component Execution 33 Simple JMeter Test 35 GUI Mode 39 Non-GUI Mode 40 Executing a Single Test 41 Proxy Server Setting 42 Start JMeter in Server Mode 42 Stop/Shutdown JMeter 42 Conclusion 42 Chapter 4: JMeter Test Script Recorder 43 JMeter WorkBench 43 JMeter Recording Controller 46 Browser Proxy Settings 46 Recording Example 47 Conclusion 52 Chapter 5: JMeter Test Plan Components 53 Test Plan 53 Configuration 54 Serial Execution of Thread Groups 55 Parallel Execution of Thread Groups 57 User Defined Variables 59 Thread Group 60 Thread Properties 61 Scheduler 67 Action After Sampler Error 71 Pre-Processors 79 HTTP URL Re-Writing Modifier 79 Controller 81 Simple Controller 82 Transaction Controller 83 Loop Controller 86 Runtime Controller 88 Throughput Controller 90 Once Only Controller 92 Interleave Controller 94 Random Controller 99 Random Order Controller 99 Switch Controller 100 ForEach Controller 103 If Controller 105 Timers 110 Constant Timer 111 Gaussian Random Timer 115 Uniform Random Timer 117 Constant Throughput Timer 119 Synchronizing Timer 121 Sampler 123 HTTP Request 124 Implementing the HTTP Request Sampler 124 Protocols 127 Redirect Automatically 128 Follow Redirect 130 Use KeepAlive 133 Use Multipart/Form-Data for POST 134 Browser-Compatible Headers 134 Send Parameter with the Request 135 Body Data 135 Switching Between Name:Value and Body Data 137 Send Files with the Request 138 Proxy Server 141 Embedded Resources for HTML Files 142 Source Address 144 Option Task 144 Assertions 146 Response Assertion 146 Apply to Property 147 Response Field to Test Property 147 Pattern Matching Rules Property 147 Pattern to Test Property 148 Listener 156 View Results Tree 159 View Results In Table 165 Aggregate Report 168 Post-Processors 170 Regular Expression Extractor 170 Properties and Variables 175 Comparison of Properties and Variables 175 User Defined Variables 179 Using the Command Line to Initialize Properties 182 Conclusion 183 Chapter 6: Distributed Testing 184 Distributed Testing Using JMeter 184 Prerequisites 184 Configuration 185 Running the Test 187 GUI Mode 188 Non-GUI Mode 189 RMI Port 189 Sample Sender Mode 190 Unreachable Remote Hosts 193 Limitations 194 Conclusion 194 Chapter 7: JMeter Best Practices 195 HTTP Request Defaults 195 Follow Redirects 196 Cookie Manager 198 Cache Manager 201 JMeter Using Maven 201 Passing Variables Across Thread Groups 203 Running Parallel Thread Groups 207 Using External File for Parameterizing User Login 208 Customizing Properties 210 Monitor JMeter Resource Usage 210 Standard Test Plan Templates 211 Conclusion 212 Chapter 8: Troubleshooting JMeter 213 Ensure Permissions 213 Log File 213 Log Level 214 HTTP Protocol Logs 215 GUI Logs 215 Clear GUI Logs 216 Remote Host Exception 216 Connect Exception 217 Solving Proxy Servers Problems 218 HTTP Basic Authentication 220 Using HTTP Header Manager 221 Using the HTTP Authorization Manager 222 Debug Test Faster 223 Out of Memory Error 225 Conclusion 226 Chapter 9: JMeter Plugins 227 PerfMon 227 Download the Plugin 228 Start the PerfMon Agent 229 Non-GUI Mode 234 Conclusion 235 Chapter 10: JMeter Recipes 236 JDBC Performance Testing 236 Install MySQL 236 Install JDBC Driver 239 JDBC Test Plan 239 FTP Performance Testing 243 REST/JSON Performance Testing 245 AJAX Performance Testing 247 Mobile Performance Testing 249 Simulating Mobile Devices 249 Simulating Network Speed 249 JMeter to Record User Actions 250 Android Proxy Configuration 251 iOS Proxy Configuration 251 SOAP Performance Testing 252 Install SOAPUI 253 Conclusion 257 Chapter 11: Case Study: Digital Toys Inc. 258 The Need for Speed 258 Addressing the Problem 259 Performance Goals 259 Performance Test Specification 259 Tool Selection 262 Test Environment 262 Test Data Preparation 263 User Load Pattern 263 Application Build 264 Using JMeter 264 Test Script Development 265 Validation of Test Steps 274 Passing Variables Between Samplers 278 Running Tests with Multiple Users 280 Implementing Actual User Behavior 286 Results Metrics 290 Organizing Tests 300 Combining Multiple Tests 308 Questions 312 Using Distributed Environment 313 Performance Testing and Tuning Cycle 316 Outcome 316 Conclusion 317 Chapter 12: Performance Dashboard 318 APDEX 318 Configuration 318 JMeter Properties 319 APDEX 319 Global Graph Properties 319 Specific Graph Properties 320 Generating Graphs 321 Performance Dashboard Graphs 321 Conclusion 328 Chapter 13: Appendix A: Setting Up JMeter 329 MacOSX 329 Download JDK 329 Install JDK 330 Set Up the Environment Variable 330 Download JMeter 331 Set Up JMeter 331 Windows 332 Download JDK 332 Install JDK 333 Set Up the Environment Variable 334 Download JMeter 335 Set Up JMeter 335 Linux 336 Install JDK 336 Set Up the Environment Variable 337 Download JMeter 337 Set Up JMeter 338 Chapter 14: Appendix B: Setting Up Digital Toys Inc. 340 Running Digital Toys Web Application 340 Start the Web Application 340 Start with URL Rewriting Enabled 343 Clean Up 344 Index 345 Quickly ramp up your practical knowledge of Apache JMeter for software performance testing and focus on actual business problems. This step-by-step guide covers what you will need to know to write and execute test scripts, and verify the results. Pro Apache JMeter covers almost every aspect of Apache JMeter in detail and includes helpful screenshots and a case study. A performance primer chapter provides a high-level summary of terms used in performance testing on a day-to-day basis that also is useful for non-technical readers. A sample web application Digital Toys has been developed and test scripts are provided for you to try while progressing through the chapters. What You'll Learn Create and execute an Apache JMeter test plan Interpret the results of your test plan Understand distributed testing using Apache JMeter Use Apache JMeter advanced features such as JDBC, REST, FTP, AJAX, SOAP, and mobile performance testing Read a sample case study covering end-to-end planning and execution of a performance testing project Generate and analyze a performance dashboard Who This Book Is For Software performance testing professionals, quality assurance professionals, architects, engineers, project managers, product managers Front Matter ....Pages i-xxiii Foundation (Sai Matam, Jagdeep Jain)....Pages 1-2 Performance Testing Primer (Sai Matam, Jagdeep Jain)....Pages 3-12 Your First JMeter Test (Sai Matam, Jagdeep Jain)....Pages 13-24 JMeter Test Script Recorder (Sai Matam, Jagdeep Jain)....Pages 25-34 JMeter Test Plan Components (Sai Matam, Jagdeep Jain)....Pages 35-165 Distributed Testing (Sai Matam, Jagdeep Jain)....Pages 167-177 JMeter Best Practices (Sai Matam, Jagdeep Jain)....Pages 179-196 Troubleshooting JMeter (Sai Matam, Jagdeep Jain)....Pages 197-210 JMeter Plugins (Sai Matam, Jagdeep Jain)....Pages 211-219 JMeter Recipes (Sai Matam, Jagdeep Jain)....Pages 221-242 Case Study: Digital Toys Inc. (Sai Matam, Jagdeep Jain)....Pages 243-302 Performance Dashboard (Sai Matam, Jagdeep Jain)....Pages 303-313 Appendix A: Setting Up JMeter (Sai Matam, Jagdeep Jain)....Pages 315-325 Appendix B: Setting Up Digital Toys Inc. (Sai Matam, Jagdeep Jain)....Pages 327-331 Back Matter ....Pages 333-335
دانلود کتاب Pro Apache JMeter : web application performance testing