O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Apache JMeter from the Ground Up

Apache JMeter from the Ground Up
DO5X50L

  • Seja o primeiro a comentar

Apache JMeter from the Ground Up

  1. 1. World® ’16 Pre Con Lab: Apache JMeter from the Ground Up Refael Botbol – Services Client Manager – CA Technologies DO5X50L DEVOPS
  2. 2. 2 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD For Informational Purposes Only Terms of this Presentation © 2016 CA. All rights reserved. All trademarks referenced herein belong to their respective companies. The content provided in this CA World 2016 presentation is intended for informational purposes only and does not form any type of warranty. The information provided by a CA partner and/or CA customer has not been reviewed for accuracy by CA.
  3. 3. 3 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Abstract Apache JMeter is an easy to use open-source tool for load and performance testing for web and mobile applications and APIs. For those of you just getting to grips with JMeter, this session will provide you with a quick introduction to JMeter and walk through basic JMeter concepts with hands-on lab exercises on building and running basic load tests. Refael Botbol CA Technologies Services Client Manager
  4. 4. 4 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Agenda JMETER OVERVIEW JMETER DEMONSTRATION JMETER LABS Q & A 1 2 3 4
  5. 5. 5 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter § Open Source solution to perform – Performance tests – Business functional test – Regression test, etc. § Created by Stefano Mazzocchi of the Apache Software Foundation in 1998 to execute performance test on what is now Tomcat. Overview
  6. 6. 6 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter § Apache redesigned JMeter to enhance GUI and other capabilities § JMeter is a 100% Java desktop application with a Java Swing based GUI § Can run on any environment that runs Java virtual machine Overview (Contd.)
  7. 7. 7 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter § Web − HTTP, HTTPS sites 'web 1.0' web 2.0 ajax § Web Services − SOAP / XML-RPC, REST § Database via JDBC drivers § Directory − LDAP § Messaging Oriented service via JMS § Service − POP3, IMAP, SMTP § FTP Service § Extendable using Plugins Supported Protocols
  8. 8. 8 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter § Freely available – Open Source software § Perform automated functional and performance testing § Supports multiple server types/platforms – Linux, Win, OSX § Simple and intuitive GUI § Test plans are stored in XML format § Full multi-threading framework allows concurrent sampling § Extensible through Plugins – CA Founded by BlazeMeter Chief Scientist Andrey Pokhilko Key Features
  9. 9. 9 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter § JMeter simulates virtual users sending requests to target server § Returns statistics that show the performance/functionality of the target server/application via tables, graphs, etc. How it works?
  10. 10. 10 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter § Java JDK 1.7 (for JMeter 3.0) – JMeter is a framework for Java and needs JDK to run § Windows, Linux, Unix, Mac § System resource (CPU, Memory, Disk, network) requirements depends on type or tests executed and test configurations (# of threads etc.) System Requirements
  11. 11. 11 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter 1. Download and install JDK. Verify installation. Add JAVA_HOME environment variable and add Java binary to PATH 2. Download and install Apache JMeter - http://jmeter.apache.org/download_jmeter.cgi 3. Run JMeter using jmeter.bat or jmeter.sh Installation and Configuration
  12. 12. 12 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter Installation Directory Structure apache-jmeter-2.9 apache-jmeter-2.9bin apache-jmeter-2.9docs apache-jmeter-2.9extras apache-jmeter-2.9lib apache-jmeter-2.9libext apache-jmeter-2.9libjunit apache-jmeter-2.9printable_docs
  13. 13. 13 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter 1. Create Test Plan 1. Recording, Manually 2. Add, Remove, Load, Save Elements 3. Configure Elements 4. Save Test Plan 5. Run Test Plan 6. Stop Test Run 7. Review Test Results Using JMeter
  14. 14. 14 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter 1. Thread Group 2. Controllers 3. Samplers 4. Logic Controllers 5. Test Fragments 6. Listeners Elements 7. Timers 8. Assertions 9. Configuration Elements 10. Pre-Processor 11. Post-Processor
  15. 15. 15 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter Elements
  16. 16. 16 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter 1. Configuration elements 2. Pre-Processors 3. Timers 4. Sampler 5. Post-Processors 6. Assertions 7. Listeners Elements Execution Order
  17. 17. 17 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter 1. Start JMeter 2. Rename Default Test Plan 3. Add Thread Group 4. Add Sampler 5. Add Listener 6. Run Test Plan 7. Review output/results 8. Save results Creating a Simple Web Test Plan
  18. 18. 18 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter § Consists of Master System (GUI) which controls remote Slave Systems (running JMeter Server) § Uses Java RMIRegistry service for communication across instances § Listens on 1099 port by default Distributed Architecture
  19. 19. 19 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter Master – System running JMeter GUI Slave – System running JMeter Server which takes command from GUI and sends requests to target system(s) Target – System Under Test Distributed Architecture (Contd.) SUT Target WebServer Slave JMeter Server Slave JMeter Server Slave JMeter Server Master JMeter GUI
  20. 20. 20 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter § Extend JMeter to support various capabilities § 60+ plugins – Stepping & Ultimate thread groups – Dummy sampler – Flexible file writer – … § Founded by Andrey Pokhilko, Chief Scientist, CA BlazeMeter § More information at – https://jmeter-plugins.org/ Creating a Simple Web Test Plan
  21. 21. 21 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Apache JMeter Create basic JMeter test script § Create and execute a simple JMeter test case to test a website http://blazedemo.com § Increase threads from 1 to 10 § Add cookie and cache mangers to better simulate real browser’s behavior § Review response times Labs
  22. 22. 22 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Questions?
  23. 23. 23 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Recommended Sessions SESSION # TITLE DATE/TIME DO5X26S What's New in CA Test Data Manager 4.0? 11/16/2016 at 4:30 pm DO5T17S Case Study: Nationwide Building Society's CA Test Data Manager Success Story 11/17/2016 at 1:45 pm DO5X42S TechVision: Test Data on Demand: Delivering the Right Data, to the Right Place, at the Right Time 11/17/2016 at 4:30 pm
  24. 24. 24 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Must See Demos Data Compliance and Testing CA TDM DevOps Theatre 5 Deliver Test Data Faster CA TDM DevOps Theatre 5 Use Model Based Testing CA ARD DevOps Theatre 5 Achieve Maximum Test Coverage CA ARD DevOps Theatre 5
  25. 25. 25 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD Stay connected at communities.ca.com Thank you.
  26. 26. @CAWORLD #CAWORLD © 2016 CA. All RIGHTS RESERVED.26 @CAWORLD #CAWORLD DevOps – Continuous Delivery For more information on DevOps – Continuous Delivery, please visit: http://cainc.to/PiTFpu

×