Social Icons

Pages

Showing posts with label jmeter. Show all posts
Showing posts with label jmeter. Show all posts

Tuesday, 7 October 2014

JMeter best practices

JMeter has some limitations especially when it is run in a distributed environment. Following these guidelines will assist in creating a real and continuous load:
  • Use multiple instances of JMeter in case the number of threads are more.
  • Check the Scoping Rules and design accordingly.
  • Use naming conventions always for all elements.

How to pass command line arguments to JMeter when executed from command line

How to Execute JMeter from Command line:


How to Pass Arguments:

In most of JMeter test plans, their will be some dynamic values which will change will different executions like server IP address, admin credentials etc.

How to reference variables and functions in JMeter

While writing test plans in JMeter, you will need to use many variables to store some values like command line arguments, random values etc. and different functions to perform different operations.

Referencing variables:
In JMeter, variables are referenced with curly braces and $(dollar sign) i.e. a variable with name var will be referenced as ${var}.

Function in Apache JMeter

JMeter functions are no different from normal languages like C, C++, Perl etc. These functions take some parameters and return some value after processing those arguments. By convention, JMeter function names always starts with '__' i.e. two underscores. 

A typical function call looks like: 

Monday, 29 September 2014

Apache JMeter: How to create summary Report from jtl or csv file created by JMeter when executed from command line

Mostly you will need to execute jmeter in non-gui mode because of following two reasons:

  1. To automate execution of jmeter.
  2. To perform more number of operations per second: In non-gui mode, jmeter threads do not need to print data on jmeter gui.
For more information on Executing jmeter on command line,

Tuesday, 23 September 2014

How to run Apache Jmeter from Command Line (non-gui mode)

Apache JMeter is mostly used when we need some number of threads to perform certain operations on different servers like LDAP, HTTP etc.
After creating test plan to be executed for the required server, we can click run button in jmeter GUI to run this test plan.
But mostly we will need to execute jmeter in non-gui mode because of following two reasons:

How to perform SSL operations using JMeter

Apache JMeter is mostly used when we need some number of threads to perform certain operations on different servers like LDAP, HTTP etc.
As most of the servers support secure operation i.e. using SSL (Secure Socket Layer), so we will have to perform SSL operation using jmeter over LDAPS,HTTPS etc.
As JMeter is written in java, so jmeter uses the java keystore known as cacerts. To perform SSL operations using jmeter, you need to add ca self signed certificate of the target server in java keystore.