2013-05-06

Introduction to JMeter Google PlugIn-Threads

In this article we are going to see what are additional features/items added after installing jmeter plugin (Google Plugin) and what we can do with it. We will discuses about client plugins only. Server plugin will be discussed in separate post. I will discuses about Thread only which represents users. To know about basic of jmeter see my this page. And, the process to install plug in , see this post.

After installing Jmeter Plug in following items are installed under Threads(users) :  to get that , right click test plan > threads >[ you will see the following 2 listed]

1. jp@gc - Stepping Thread Group : This is a stepping thread. I am providing a screenshot with example.

In here,
1. It will wait 10s before running
2. Total thread(user) will be 50.
3. It will create 10 thread in every 30s where 5s is the ramp-up for that 10 thread.
4. After generating all threads, it will wait for 60s
5. After finishing the holding time, it will stop all threads at a rate of 5thereads in 1s.


2. jp@gc - Ultimate Thread Group : This is block wise thread generator. We can make stepping, continuously running, and all possible combination of scenarios using this thread. I am providing a screen shot with example.


In here
1. There will be 2 set of threads(10, 50) as both are not overlapping because of its time of creation and ending, 50 user graph can represent both set.
2. First thread will delay 10s and 2nd one 100s before starting(Initial Delay)
3. First thread's users will be created in 20s and 2nd one's in 30s. These are basically ramp-up time.(Start-up time)
4. First thread will be running up to 60s where as 2nd one is 15s(Hold Load for)
5. First thread will be closed within in 2s and 2nd one in 1s(shutdown time)

So, we can see graphs of threads are shown. We can see same graph to verify execution if we add a listener jp@gc - Active Threads Over Time. It is also a Google Plugin.

Why we use them? Jmeter's default  thread group does not supports stepping and time driven testing approach. And which makes jmeter less featured over hp load runner and other paid performance tools. To over come these and make jmeter  more useable to tester community, this plugin was developed. In here I have shown only thread part, in another post I will describe other elements.

Thanks...:)

9 comments:

  1. i am sushmitha.,iam new to this projest.can you explain me what is the main use of jp@gc stepping thread group plugin? and what jp@gc means?

    ReplyDelete
  2. This two will make Jmeter as useful as Load runner. Make test plan running same way. But, my suggestion, before using jmeter plugins, try normal thread, know the basic then start with variations.
    jp@gc means Jmeter Plugin At Google Code

    ReplyDelete
  3. can you guide me how to install server monitor plugin in jmeter?.even i couldn't find the link.and i saw some new plugins recently added in jmeter.but their is no details about that plugins like android driver,chrome driver,firefox driver config elements...

    ReplyDelete
    Replies
    1. Yes, i will. i have not finished yet with screen shots. I will comment after posting.

      Delete
    2. see my server monitoring monitoring post(profMon)

      Delete
  4. hello.,how to build jmeter plugins in eclipse?

    ReplyDelete
    Replies
    1. It has a specific guide line. Before start plugins, download jmeter code and understand full core interfaces and then try out plugins. I am currently playing with codes, how you can see posts related to extended jmeter codes.

      Delete
    2. Hi,

      I am using "Stepping Thread group" in JMeter. Please tell me how to set values for below scenarios in "Stepping Thread group".

      1. 10 users doing transaction for every 10 sec (Note:- This scenario is for Webservices)
      2. 10 users doing transaction for every 5 min (Note:- This scenario is for Webapplication)

      both scenarios should run in one Test Plan.

      Delete
    3. You cant make this two condition in a single stepping thread.. you need to use Ultimate Thread. But, If you use threading you need two stepping thread reflecting this two scenario.

      Delete