ApacheJMeter
JMeter学习Jmeter接口测试案例实践,Jmeter接口测试案例实践Apache JMeterCopyright C 2008 Packt PublishingAll rights reserved. No part of this book may be reproduced, stored in a retrievalsystem, or transmitted in any form or by any means, without the prior writtenpermission of the publisher, except in the case of brief quotations embedded incritical articles or reviewsEvery effort has been made in the preparation of this book to ensure the accuracy ofthe information presented. However, the information contained in this book is soldwithout warranty, either express or implied. Neither the author, Packt Publishing,nor its dealers or distributors will be held liable for any damages caused or alleged tobe caused directly or indirectly by this bookPackt Publishing has endeavored to provide trademark information about all thecompanies and products mentioned in this book by the appropriate use of capitalsHowever, Packt Publishing cannot guarantee the accuracy of this informationFirst published June 2008Production reference: 1200608Published by Packt Publishing Ltd32 Lincoln roadOltonBirmingham, B27 6PA, UKISBN978-1-84719295-0www.packtpub.comCoverImagebyVinayakChittar(vinayakchittar@gmail.com)CreditsAuthorProject CoordinatorEmily H. HaliliPatricia weiReviewerIndexerCharitha KankanamgeRekha nAcquisition EditorProofreaderViraj joshiChris SmithDevelopment EditorProduction coordinatorsVed prakash jhaAparna bhagatShantanu agadeTechnical editorDarshana d, shindeCover workAparna bhagatEditorial Team LeaderMithil KulkaProject ManagAbhijeet DeobhaktaTable of contentsPrefaceChapter 1: Automated TestingWhy Automate Testing?8To automate or not to automate-Some hints9How much does it cost?12ummaryChapter 2: Introduction to JMeter15The Humble Beginning16The Features-What j Meter Can do for youThe Look-How-Easy-to-Use GUI18The Requirements21Summary22Chapter 3: Getting started23Installing JMeter23Setting the Environment24Running JMeter24Summary25Chapter 4: The Test PlanWhat is a test plan?27Elements of a test plan29Thread group29Controllers31SamplersLogic Controllers34Listeners35Timers37Assertions38Configuration Elements40Table of contentsPre-Processor elements41Post-Processor elements42Building a Test Plan That Tests Web sites42SummaryChapter 5: Load/Performance Testing of Websites51Preparing for Load Testing52What You need to know52Some helpful tips to get better results52Using JMeter Components53RecordinghttprEquests54Creating the Test plan63Adding Listeners65Adding Timers65Running the Test plan68Interpreting the Results68Remote Testing with JMeterMonitoring the Servers Performance72mmary74Chapter 6: Functional Testing75Preparing for Functional Testing75Using JMeter Components76Using Http prOxy Server to Record Page Requests79Configuring the Proxy Sery79AddinghttpRequestdefault80Adding Http Header Manager81et the Recording begin81Adding user defined variables82Running the test84Summary85Chapter 7: Advanced Features87Extending the Web Test Plan88Using the ForEach Controller89Using the While Controller and the String From File Function91Using the Loop controller and the String FromFile Function92Using Regular Expressions93Testing a Database Server97Testing an FTP Server99Summary100Chapter 8: JMeter and Beyond101Summary106PrefaceJMeter is a powerful, easy-to-use, and FREE load-testing tool. Those are my firstimpressions of Meter, a testing tool l've recently fallen in love with -not blindlyWith this book, I share with you my experience with JMeterWhen I was first assigned to use JMeter to perform testing on a particular webapplication I went all out looking for anything on JMeter. Despite plenty of onlinemanuals, article and newsgroup posts printed or e-books were nowhere to be foundSo, when one of the editors of Packtpub approached me with this idea of writinga book on JMeter, I could hear myself saying: Had there been a book on JMeter, Iwould have bought one at any cost. Since no one has written any, why not i writeone? After much contemplation and work, here is the result- what you are readingright nowWhat The book is aboutThis book is about using basic testing tools in JMeter that support software load andregression test automation Meter can be used to test static and dynamic resourcesover a wide range of client/server software(e.g. web applications). For simplicitythis book will focus on a narrowed aspect of Meter while demonstrating practicaltests on both static and dynamic resources of a web application. As this small book isan introductory reference, it is ideally designed to pave the path for the reader to getmore detailed insight on JMeter, and what more it can do beyond this referenceWhat This book coversChapter 1: Automated TestingThe reader who is already automating their tests may want to skip this chapter. Ittakes a quick look at the need to automate testing and whether automation suits allneeds of testing. It provides a quick look at and evaluation of test automation
下载地址
用户评论