Image CAPTCHA
Enter the characters shown in the image.

You are here

Integrating JMeter scripts with JSystem

Apache JMeter is a great open source tool designed for load testing and performance measurement of web applications and web services. For those of you wishing to bring together the strengths of JMeter and JSystem, here is a short tutorial describing the methods that me and my team members have devised for integrating JMeter scripts with JSystem:

  1. Begin by designing the logic of a JMeter script as usual, using the JMeter GUI. When the script is ready, validate its functionality by running it from the JMeter GUI.
  2. Once you’re satisfied with the functionality of your script, replace all parameters that you want to be configurable from JSystem (such as the number of threads and the ramp-up period) by variable placeholders such as: ${numberOfThreads} and ${rampUpPeriod}.
  3. Add a “User Defined Variables” element to the top of the test plan (right-click on the “Test Plan” element -> Add -> Config Element -> User Defined Variables).
  4. Inside the “User Defined Variables” element, add new variables for each of the parameters you expect to be passed from JSystem. The variable names should match the names you used in the variable placeholders defined in step 2. The variable values should contain placeholders for JMeter command line parameters, matching this pattern:${__P(variableName)}.
    For example, for the ${numberOfThreads} placeholder from step 2, you need to define a variable named numberOfThreads with the value: ${__P(numberOfThreads)}.
  5. If you need to add additional processing or business logic on top of JMeter’s output (some functionality which is not supported as one of JMeter’s built-in features), add a “Listener” element of your choice at the end of your test plan and configure it to write the results to file. When the script will finish running this will create a text file with the relevant data regarding the last run. Later this data can be analyzed and further be processed from your Java code.
  6. When finished working on the JMeter script, including all steps above, save the script to a JMX file, for example: jsystemLoadTest.jmx. We shall use this file in the next steps to invoke JMeter from JSystem.
  7. In your JSystem project, implement an object which supports running CLI commands from within the Java code (creating a new process that executes the command).
  8. To invoke the JMeter script from a JSystem test, run the following command from your Java code, using the object implemented in step 7:
    <JMETER_HOME>\jmeter –n –t <path_to_jmx_script_file> -J<paramName1>=<X> -J<paramName2>=<Y>
    for example:
    C:\apache-jmeter-2.9\bin\jmeter -n -t C:\JMeterScripts\jsystemLoadTest.jmx -JnumberOfThreads=100 -JrampUpPeriod=60
  9. When the process running the JMeter script ends you can pick up the results file created by JMeter as configured in step 5, parse it and implement your logic on the results such as: sorting, grouping, calculating complex statistics, etc.

MANUFACTURERS Wallboard

View MANUFACTURERS Wallboard

Total Manufacturers in our archive: 280
Testing tool manufacturers world-wide list
10Levels ABID CONSULTING AccelQ Accord Software ActiMind AdaCore
AdaLog AgileLoad AgileWay Agitar Algorismi ALL4TEC
Andreas Kleffel Android Apache Apica Apollo Systems AppAssist.mobi
Applitools AppPerfect Appsee ApTest Assertible Assure
Atlassian AutoIt Consulti .. Automation Anyw .. Automation Cons .. Axosoft Aztaz Software
Backtrace I/O Badboy BlazeMeter Borvid BrowserStack BSQUARE
BStriker Intern .. CA Technologies Canonical Canoo Engineeri .. Catch Software CelestialTeapot
Chris Mallett Cleanscape ClicTest CloudQA Codeborne CodeCentrix
CodePlex projec .. Codoid Cogitek Compuware Configure IT Conflair
ConSol Core Services Coronys Ltd Countersoft CresTech Softwa .. CrossBrowserTes ..
Crosscheck Netw .. Crowdsourced Te .. Cucumber Ltd Cyara Cygnet Infotech DareBoost
Databene Datamatics Glob .. DevExpress DTM soft Dynatrace LLC EasyQA
Eclipse EkaTechserv Elvior Emmanuel Jorge Empirix EPAM Systems
Equafy Esterel Technol .. eXept Software .. Experitest Finaris Froglogic
FrontEndART Ltd GeneXus GitHub project gnoso Google Code Pro .. GrammaTech
Gurock Software HelpSystems HENIX Hewlett Packard .. Hexawise High-Tech Bridg ..
Hiptest Hitex IBM Rational imbus Shanghai Impetus Inflectra
informUp InTENSO - IT Ex .. Ipswitch Jamo Solutions Janova JAR Technologie ..
JBoss Developer jClarity Jellly.io JetBrains Jively jQuery foundati ..
JS Foundation Jspresso Kanoah KMS Technology Kualitee LDRA Limited
Litmus LoadFocus Loadster Perfor .. MarathonITE Marketcircle Marketcircle
Maveryx Meliora Ltd Micro Focus Sof .. Microsoft Mobile Labs Mobile1st
Mockaroo, LLC Monkop Mozila MSys Technologi .. Navicat NeoTys
Neowise Softwar .. NetCart NORIZZK.COM Novosync Mobili .. NRG Global NTT Resonant
OC Systems Odin Technology OpCord Oracle Orcanos Original Softwa ..
OW2 PANAYA Parasoft PassMark Patterson Consu .. Perfecto Mobile
Pivotal, Inc. Plutora Postman (API To .. PractiTest PrimaTest Process One
Programming Res .. Psoda PureLoad PushToTest Python Q-Assurance
QA Systems QACube QASymphony QAWorks QMetry Quali
Qualitia Softwa .. Quality First S .. Quotium RadView Softwar .. Ranorex RedLine13
Reflective Solu .. ReQtest RevDeBug Robotium Tech Rogue Wave Soft .. Rommana Softwar ..
RTTS ruby-doc.org Runscope Sandklef GNU La .. Sauce Labs Seapine Softwar ..
SeleniumHQ Sencha Sensiple Siemens PLM Sof .. SmartBear Softw .. SmarteSoft
SOASTA SoftLogica Softomotive Softsmith Solution-Soft SonarSource
Sourceforge Spirent Technol .. SQS Software Qu .. Square Stimulus Techno .. Swifting AB
Synopsys T-komp T-Plan TechExcel TechTalk Telerik By Prog ..
Tellurium Test Collab Test Goat Test Recon TestCaseLab testCloud.de Gm ..
TestCraft Techn .. Testenium Testim.io TestingBot TestLodge Testmunk
Testomato TestOptimal TestPlant TestPro Testsigma Techn .. Testuff
The Core Bankin .. The MathWorks The Open Group thePHP.cc Thoughtbot Thoughtworks
Tigris.org Time Simulator Top-Q Trace Technolog .. TrendIC TRICENTIS
Tritusa Pty Ltd TWD Solutions P .. TypeMock Tyto Software Ubertesters UniTESK
Universal Test .. Usetrace Ltd Utrecht Univers .. Validata Group Vanamco AG Vector Software
Veracode Verifaya Corpor .. Verit VersionOne Viewlike.us Vornex Inc.
Watir.com WcfStorm Soluti .. We Are Mammoth Web Performance .. Wintask Wireshark Found ..
Worksoft Xceptance XK72 Xpand IT XQual ZAPTEST
Zeenyx Software .. Zephyr Zeta Software zutubi pty

JMeter on YouTube

Theme by Danetsoft and Danang Probo Sayekti