Apache JMeter - Riptutorial

4m ago
8 Views
1 Downloads
8.03 MB
57 Pages
Last View : 6d ago
Last Download : 3m ago
Upload by : Tripp Mcmullen
Transcription

Apache JMeter #jmeter

1 1: Apache JMeter 2 2 2 Examples 2 2 Apache JMeter 2: Apache JMeter : 4 6 6 Examples 6 JMeter 6 JMeter 7 10 HTTPS 11 BlazeMeter 14 BadBoy 16 3: Apache JMeter 17 17 Examples 17 17 23 'Parameterized Controller' 4: Apache JMeter 33 39 39 Examples 39 Apache JMeter 39 JMeter XPath 43 JMeter CSS / JQuery Extractor 46 JSON 49 BlazeMeter 'SmartJMX' 52 55

You can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: apache-jmeter It is an unofficial and free Apache JMeter ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation, which is written by many hardworking individuals at Stack Overflow. It is neither affiliated with Stack Overflow nor official Apache JMeter. The content is released under Creative Commons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks and registered trademarks are the property of their respective company owners. Use the content presented in this book at your own risk; it is not guaranteed to be correct nor accurate, please send your feedback and corrections to info@zzzprojects.com https://riptutorial.com/ko/home 1

1: Apache JMeter JMeter . Performance Tester JMeter Extractor . ID . . Regular CSV Data Set Config . Groovy JSR223 PreProcessor Expression Extractor POST CSS / JQuery . Java 3.2 Java 8 2017-04-14 3.1 Java 7 2016-11-20 3.0 Java 7 2016-05-17 2.13 Java 6 2015-03-13 2.12 Java 6 2014-11-10 2.11 Java 6 2014-01-05 2.10 Java 6 2013-10-21 2.9 Java 6 2013-01-28 2.8 5 2012-10-06 2.7 5 2012-05-27 2.6 5 2012-02-01 2.5.1 5 2011-10-03 2.5 5 2011 8 17 2.4 5 2010-07-12 2.3.4 Java 1.4 2009-06-21 Examples 1. Apache JMeter JMeter Binaries 2. Java Java . JAVA HOME . . 3. . 4. JMeter UI : https://riptutorial.com/ko/home 2

Windows : jmeter location \bin jmeterw.bat jmeter.bat jmeterw.bat Linux / Mac : jmeter location /bin jmeter 'jmeter.sh . : cd /Users/me/apache-jmeter/bin ./jmeter : Permission denied jmeter . cd /Users/me/apache-jmeter/bin chmod u x ./jmeter JMeter UI . https://riptutorial.com/ko/home 3

Apache JMeter Apache JMeter . 1. Test Plan : . JMeter .jmx . Test Pand 2. Workbench : . HTTP(s) Test Script 3. Threads (Users) : () , . . https://riptutorial.com/ko/home . Recorder record ." " . "". Thread Group, setUp Thread Group, and tearDown 4

Thread Group 4. Logic Controller : . Transaction Controller, (, .css .js ) . 5. Sampler : JMeter . HTTP, JDBC, FTP, SMTP . HTTP GET, POST HTTP . , . 6. Config Element : . , . CSV Dataset Config , from a file . User Defined variables config . 7. Timer : JMeter . User Think Time . Constant Timer, Constant Throughput Timer. 8. Pre Processors : / . JSR223 Pre Processor with Apache Groovy (Java ) . 9. Post Processors : / . JSON Extractor JSON XPath Extractor , XML XPath Extractor , HTML CSS/JQuery Extractor , Regular Expression Extractor ID . 10. Assertions : , . Response Assertion . JMeter . 11. : . View Results Tree / PASS () / FAIL () . JMeter. CSV . ( ) ( ) . . GUI .csv/.jtl -l . JMeter / . ( you add any component on need basis ). Test Plan Thread Group Config Element Logic Controller Pre Processor Sampler Timer Post Processor Assertion Listener : 1. 2. 3. Apache JMeter : e-jmeter- https://riptutorial.com/ko/home 5

2: Apache JMeter : . . jmx . JMeter / BlazeMeter BadBoy 3 . Examples JMeter 2.10 JMeter JMeter JMeter JMeter . . . . . JMeter 1. JMeter 2. . - - - - JMeter JMeter Recorder . . OS . 3. . Chrome : - - - - Safari : - - - . Firefox : - - - - - . 4. localhost 127.0.0.1 . HTTP (S) Script Recorder . https://riptutorial.com/ko/home 6

3 . Hola VPN . 5. "HTTP (S) Test Script Recorder" '' . JMeter . JMeter JMeter 1. 1 . . . JMeter "WorkBench" . . "" . 2. WorkBench "Recording Controller" : "WorkBench"- "Add"- "Logic Controller"- "Recording Controller" . https://riptutorial.com/ko/home 7

3. "WorkBench"- "Add"- "Non-Test Elements"- "HTTP (S) Test Script Recorder" "HTTP (S) Test Script Recorder" 4. " : " "HTTP (S) " 5. ' URL ' . ? ( : 8080) . ( : * .html, * .php ) ( : * .jpg, * .png, * .js ). , . . ". .png ",". .jpg ",". .gif ",". .css ",". .js ". woff) " https://riptutorial.com/ko/home . . ". . (bmp css js gif ico jpe? g png swf 8

6. . URL . . : " "- ""- " "- "HTTP "- ""- " ". 7. JMeter "HTTP " . Manager" . . "Test Plan"- "Add"- "Config Element"- "HTTP Cache 8. "HTTP (S) Test Script Recorder" '' https://riptutorial.com/ko/home . JMeter "". 9

JMeter . . JMeter 1. 1 "JMeter " . JMeter "HTTP (S) Test Script Recording" JMeter JMeter . 2. IOS : - Wi-Fi https://riptutorial.com/ko/home 10

. "HTTP PROXY" . "" . "" JMeter IP "" "HTTP (S) " . : - Wi-Fi ''. '' . "" "" . " " IP "" "HTTP (S) " " " '' . 3. . JMeter . HTTPS SSL HTTP HTTPS . JMeter HTTPS SSL . SSL 1. HTTP SSL . https://riptutorial.com/ko/home 11

JMeter 2. "JMeter " "JMeter " . 3. . JMeter . '' . ' .' . ' ' . ' '. https://riptutorial.com/ko/home 12

https://riptutorial.com/ko/home 13

4. " JMeter . ." JMeter ,, . . . BlazeMeter . BlazeMeter Recorder Chrome . JMeter BlazeMeter . . https://riptutorial.com/ko/home 14

. 1. Chrome 2. . 3. . . Blazemeter Chrome Extension HTTPS . 4. . .jmx JSON . 5. - JMeter .jmx .jmx . BlazeMeter '' . https://riptutorial.com/ko/home 15

. BadBoy BadBoy. Windows OS . . 1. BadBoy . 2. URL . 3. . 4. JMeter - - JMeter . . Apache JMeter : . : e-jmeter----- https://riptutorial.com/ko/home 16

3: Apache JMeter . , . . Examples CSV . CSV . . . https://riptutorial.com/ko/home 17

CSV . CSV - - - CSV 'CSV ' : . : - JMeter Filename - . . . - ( ) . . Delimiter ?. EOF ? . JMeter EOF ? - CDC false : (). . . true. https://riptutorial.com/ko/home 18

- . CSV . CSV . "Filename" "Variables Names" https://riptutorial.com/ko/home : 19

CSV . CSV "" . https://riptutorial.com/ko/home 20

JMeter 'TestUsers.csv' . JMeter csv . : https://riptutorial.com/ko/home 21

: https://riptutorial.com/ko/home 22

JDBC . JDBC f} , JDBC ( ). , mysql V. . .jar https://riptutorial.com/ko/home . 23

lib Jar JMeter 'JDBC ' . . : - - - JDBC https://riptutorial.com/ko/home . 24

'JDBC ' : - db ( ) .0 . Max Wait (ms) ( ) - db ( ). . https://riptutorial.com/ko/home 25

- db . . : BasicDataSource.html # getTestWhileIdle Soft Min Evictable Idle Time (ms) - db . : BasicDataSource.html # getSoftMinEvictableIdleTimeMillis URL - JDBC . . JDBC - ( db ). : 'com.mysql.jdbc.Driver'for MySql db - ( ) . . URL JDBC . https://riptutorial.com/ko/home 26

. https://riptutorial.com/ko/home 27

JDBC 'Select ' ' ' . - - - JDBC . . https://riptutorial.com/ko/home 28

JMeter . '' JDBC (email 1, email 2, email 3 . .) . . JMeter 'Counter' : - - - https://riptutorial.com/ko/home . 29

V ' ' . . https://riptutorial.com/ko/home 30

. https://riptutorial.com/ko/home 31

https://riptutorial.com/ko/home 32

'Parameterized Controller' JMeter-Plugins 'Parameterized Controller' . . . https://riptutorial.com/ko/home 33

JMeter '' ( 'Parameterized Controller' . ' ' ). Workbench https://riptutorial.com/ko/home . . ' ' . - - - . 34

' '. . https://riptutorial.com/ko/home 35

'' ''. . 'Parameterized Controller'- 'Add'- 'Logic Controller'- 'Module Controller' https://riptutorial.com/ko/home . 36

'' . . https://riptutorial.com/ko/home 37

Apache JMeter : e-jmeter-- https://riptutorial.com/ko/home 38

4: Apache JMeter JMeter . . Examples Apache JMeter . Perl . . . ID . ID html . div class "container" div class "container hero-unit" h1 Thank you for you purchse today! /h1 table class "table" tr td Id /td td Your purchase id is 1484697832391 /td /tr tr td Status /td td Pending /td /tr tr td Amount /td td 120 USD /td /tr /table /div /div JMeter . . . https://regex101.com/ . https://riptutorial.com/ko/home 39

JMeter - - https://riptutorial.com/ko/home 40

. "" - . () . 1 2 1 2 / N ForEach N / ) . (0 . . . param JMeter "" . ( ) . . . - , : () Body ( ) - HTML . HTML (* ) Body - Body as a Document - Apache Tika Body - Request Headers - HTTP - - HTTP - URL https://riptutorial.com/ko/home (* ) 41

- : 200 - -. {purchaseId} JMeter . . https://riptutorial.com/ko/home 42

https://riptutorial.com/ko/home 43

XML CSS / JQuery Extractor HTML . . div id "weeklyPrices" tr td 56.00 /td td 56.00 /td td 56.00 /td td 56.00 /td td 60.00 /td td 70.00 /td td 70.00 /td /tr /div XPath . // div [@ id 'weeklyPrices'] / tr / td 1 JMeter - - XPath . XPath Extractor ' ( XPath ). ' . , , , (JMeter 3.2 ) . xpath https://riptutorial.com/ko/home . 44

HTML XHTML " " . " " . '' : - . Show Warnings - Tidy show warnings . '' : - XML . XML - . - . DTD - DTD . https://riptutorial.com/ko/home 45

' XPath ' XPath xpath xpath . . Firefox ' Firebug ' . Chrome ' XPath ' . JMeter CSS / JQuery Extractor CSS / JQuery CSS / JQuery . XPath JQuery DOM CSS DOM JQuery Chrome CSS . https://riptutorial.com/ko/home . , . XPath . CSS, JQuery XPath , . Java Stack Overflow . Firebug Firefox CSS / 46

JMeter - - CSS / JQuery Extractor . https://riptutorial.com/ko/home 47

. . "CSS / JQuery Extractor ". JMeter 2.9 jsoup ( . https://riptutorial.com/ko/home ) JODD Lagarto ( ) CSS / JQuery . 48

"""" . JSON JSON . JMeter JSON Extractor JMeter JSON JSON Path . HTTP . JMeter Add - Post Processors - JSON Extractor . https://riptutorial.com/ko/home 49

JSON Extractor Regular Expression Extractor . ',' ALL var . JSON . JSON 'Compute concatenation var' . . { "store": { "book": [ { "category": "reference", "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95 }, { "category": "fiction", "author": "Evelyn Waugh", "title": "Sword of Honour", "price": 12.99 }, { "category": "fiction", "author": "Herman Melville", "title": "Moby Dick", "isbn": "0-553-21311-3", "price": 8.99 }, { "category": "fiction", "author": "J. R. R. Tolkien", "title": "The Lord of the Rings", "isbn": "0-395-19395-8", "price": 22.99 https://riptutorial.com/ko/home 50

} ], "bicycle": { "color": "red", "price": 19.95 } } } JSON . https://riptutorial.com/ko/home 51

JSON . BlazeMeter 'SmartJMX' . . [1 ] , . ., . . Blazemeter "Smart JMX" . : [ https://a.blazemeter.com/app/recorder/index.html] "" . ( ) BlazeMeter . https://riptutorial.com/ko/home 52

. . https://riptutorial.com/ko/home 53

""JMX . jmx Apache JMeter . ""JMX . : e-jmeter-- https://riptutorial.com/ko/home 54

S. No Contributors 1 Apache JMeter Aliaksandr Belik, Chulbul Pandey, Community, Kiril S., M Navneet Krishna, Milamber, Naveen, NaveenKumar Namachivayam, RowlandB, UBIK LOAD PACK, Venkatesh Achanta 2 Apache JMeter : UBIK LOAD PACK, Yuri Bushnev 3 Apache JMeter UBIK LOAD PACK, Yuri Bushnev 4 Apache JMeter UBIK LOAD PACK, Yuri Bushnev https://riptutorial.com/ko/home 55

1: Apache JMeter JMeter . Performance Tester . JMeter . CSV Data Set Config. Regular Expression Extractor CSS / JQuery Extractor ID . Groovy JSR223 PreProcessor POST. Java 3.2 Java 8 2017-04-14 3.1 Java 7 2016-11-20 3.0 Java 7 2016-05-17 2.13 Java 6 2015-03-13 2.12 Java 6 2014-11-10 2.11 Java 6 2014-01-05

Related Documents:

Run the script file jmeter (This file has no extension)- run JMeter (in GUI mode by default). Run the script file jmeter-server - start JMeter in server mode (calls JMeter script with appropriate parameters) jmeter.sh - very basic JMeter script with no JVM options specified. mirror-server.sh - runs the JMeter Mirror Server in non-GUI mode

Getting Started with the Cloud . Apache Bigtop Apache Kudu Apache Spark Apache Crunch Apache Lucene Apache Sqoop Apache Druid Apache Mahout Apache Storm Apache Flink Apache NiFi Apache Tez Apache Flume Apache Oozie Apache Tika Apache Hadoop Apache ORC Apache Zeppelin

Apache JMeter HTTP(S) Test Script Recorder This tutorial attempts to explain the exact steps for recording HTTP/HTTPS. For those new to JMeter, one easy way to create a test plan is to use the Recorder. Jmeter configuration Since JMeter 2.10, recording has been improved to better handle embedded resources and creation of certificates on the fly.

It is a platform-independent tool. On Linux/Unix, JMeter can be invoked by clicking on JMeter shell script. On Windows, it can be invoked by starting the jmeter.bat file. It has full Swing and lightweight component support (precompiled JAR uses packages javax.swing.* ). JMeter stores its test plans in XML format.

It is a platform-independent tool. On Linux/Unix, JMeter can be invoked by clicking on JMeter shell script. On Windows, it can be invoked by starting the jmeter.bat file. It has full Swing and lightweight component support (precompiled JAR uses packages javax.swing.* ). JMeter stores its test plans in XML format.

JMeter Tutorial v Preface This tutorial discusses JMeter, a Java based load and performance testing tool with several applications and uses. These are the main points that we are going to cover: We are going to explain what is JMeter used for. How is JMeter implemented and with what technologies is designed.

CDH: Cloudera’s Distribution Including Apache Hadoop Coordination Data Integration Fast Read/Write Access Languages / Compilers Workflow Scheduling Metadata APACHE ZOOKEEPER APACHE FLUME, APACHE SQOOP APACHE HBASE APACHE PIG, APACHE HIVE APACHE OOZIE APACHE OOZIE APACHE HIVE File System Mount UI

Whether black holes could form under realistic conditions was a question that puzzled Roger Penrose. The answer, as he later recalled, appeared in the autumn of 1964 during a walk with a . colleague in London, where Penrose was professor of mathematics at Birkbeck College. When they stopped talking for a moment to cross a side street, an idea ashed into his mind. Later that after - noon, he .