Tuesday, 23 April 2013

Jmeter From Scratch

We use Jmeter (Open source tool) for the Performance testing.

These are some features and functionality mentioned:

Jmeter Test Procedure:

Jmeter is used for Load Testing and stress testing (Performance Testing), we use the JMX file made in Jmeter to run any Test plan, and the different result report

  • Aggregate Report
  • Graph report.
  • View Result Tree (Shows detail process of each thread(query/Request)
  • Result Tree as table (Success Or failure of each request)

We can easily figure out the performance of the site using the different scenarios on Jmeter like:

Increasing the Number of thread (Request) and set the time accordingly means if you want to test your site for load then we can set the concurrent user to some extent and check it out where system starts failing the request and starts giving errors from server.

We also can measure the time taken by a single page to load

We can increase the number of user in bulk as much as our expectation to understand how server badly can survives the Stress Test.

It is in the form of test script store so we can check the performance of the site whenever we want, and get the result.

Every small detail about the test will be recorded like, Time taken by each request and time variation, Amount of Data retrieved, Percentage of errors (When load increases).

From Result Tree of Jmeter we can see the type of error from server and frequently faced error to minimize the risk and get possible solution.

Implementation of different Performance test scenarios can be done between

1. Number of user at a time

2. Time between concurrent users

3. Frequency of user (with loop)

We can make different test file to make test automated, and use it in future to minimize the testing time and cost.