Performance Testing With JMeter 2.9

Купить бумажную книгу и читать

Купить бумажную книгу

По кнопке выше можно купить бумажные варианты этой книги и похожих книг на сайте интернет-магазина "Лабиринт".

Using the button above you can buy paper versions of this book and similar books on the website of the "Labyrinth" online store.

Реклама. ООО "ЛАБИРИНТ.РУ", ИНН: 7728644571, erid: LatgCADz8.

Год: 2013

Автор: Bayo Erinle

Жанр: Тестирование ПО

Издательство: Packt Publishing

Язык: English

Формат: PDF

Количество страниц: 148

Размер: 6.35 мб

Performance testing with JMeter 2.9 is critical to the success of any software product launch and continued scalability. Irrespective of the size of the application’s user base, it’s vital to deliver the best user experience to consumers. Apache JMeter is an excellent testing tool that provides an insight into how applications might behave under load enabling organizations to focus on making adequate preparations.

Performance Testing with JMeter 2.9 is a practical, hands-on guide that equips you with all the essential skills needed to effectively use JMeter to test web applications using a number of clear and practical step-by-step guides. It allows you take full advantage of the real power behind Apache JMeter, quickly taking you from novice to master.

Performance Testing with JMeter 2.9 begins with the fundamentals of performance testing and gets you acquainted with JMeter. It will guide you through recording realistic and maintainable scripts.

You will acquire new skills working with tools such as Vagrant, Puppet, and AWS, allowing you to leverage the cloud to aid in distributed testing. You will learn how to do some BeanShell scripting and take advantage of regular expressions, JMeter properties, and extension points to build comprehensive and robust test suites. Also, you will learn how to test RESTful web services, deal with XML, JSON, file downloads/uploads, and much more. Topics like resource monitoring, distributed testing, managing sessions, and extending JMeter are also covered.

Performance Testing with JMeter 2.9 will teach you all you need to know to take full advantage of JMeter for testing web applications, dazzle your co-workers, and impress your boss! You will go from novice to pro in no time.

Approach:

Performance Testing With JMeter 2.9 is a standard tutorial that will help you polish your fundamentals, guide you through various advanced topics, and along the process help you learn new tools and skills.

Who this book is written for:

This book is for developers, quality assurance engineers, testers, and test managers new to Apache JMeter, or those who are looking to get a good grounding in how to effectively use and become proficient with it. No prior testing experience is required.

Оглавление

Chapter 1: Performance Testing Fundamentals 7

The incident 7

The aftermath 8

Performance testing 8

Performance testing and tuning 13

Baselines 14

Load and stress testing 14

JMeter to the rescue 15

Up and running with JMeter 16

Installation 16

Installing the Java JDK 17

Setting JAVA_HOME 18

Running JMeter 19

Tracking errors during test execution 24

Configuring JMeter 24

Summary 26

Chapter 2: Recording Your First Test 27

Configuring the JMeter HTTP proxy server 28

Setting up your browser to use the proxy server 30

Using a browser extension 30

Changing the system settings 30

Running your first recorded scenario 34

Anatomy of a JMeter test 45

Test Plan 45

Thread Groups 46

Controllers 46

Samplers 47

Logic controllers 47

Test fragments 48

Listeners 48

Timers 48

Assertions 48

Configuration elements 49

Pre-processor and post-processor elements 49

Summary 49

Chapter 3: Submitting Forms 51

Capturing simple forms 51

Handling checkboxes 52

Handling radio buttons 53

Handling file uploads 53

Handling file downloads 54

Posting JSON data 55

Reading JSON data 59

Using the BSF PostProcessor 60

Handling the XML response 62

Summary 64

Chapter 4: Managing Sessions 65

Managing sessions with cookies 66

Managing sessions with URL rewriting 70

Summary 73

Chapter 5: Resource Monitoring 75

Basic server monitoring 76

Setting up Apache Tomcat Server 76

Configuring Tomcat users 80

Setting up a monitor controller in JMeter 81

Monitoring the server with a JMeter plugin 84

Installing the plugins 84

Adding monitor listeners to the test plan 86

Summary 89

Chapter 6: Distributed Testing 91

Remote testing with JMeter 91

Configuring JMeter slave nodes 93

Configuring one slave per machine 94

Configuring the master node to be tested against one slave per machine 96

Configuring multiple slave nodes on a single box 100

Configuring the master node to be tested against multiple slave nodes on a single box 102

Leveraging the cloud for distributed testing 104

Obtaining your access key, secret key, and key pair 104

Launching an AWS instance 106

Executing the test plan 108

Viewing the results from the virtual machines 109

Summary 113

Chapter 7: Helpful Tips 115

JMeter properties and variables 115

JMeter functions 117

The Regular Expression tester 118

The Debug sampler 120

Using timers in your test plan 121

The Constant timer 121

The Gaussian random timer 121

The Uniform random timer 121

The Constant throughput timer 121

The Synchronizing timer 121

The Poisson random timer 122

The JDBC Request sampler 122

Setting up an H2 database 122

Configuring a JDBC Connection Configuration component 124

Adding a JDBC Request sampler 125

A Dummy sampler 126

The JSON Path Extractor element 128

Handling RESTful web services 129

Summary 130

Index 131

Дата создания страницы: