Wednesday, January 6, 2010

Tip #2: Basic web test plan structure

The best practice is to group logically related HTTP requests to transactions using Transaction controllers. As the result you will get not only response time values of HTTP requests but response time values of the whole transactions too.

Thread group
    Transaction controller 1
        HTTP Request 1
        HTTP Request 2
        ...
        HTTP Request N
    Transaction controller 2
        HTTP Request 1
        HTTP Request 2
        ...
        HTTP Request N
    ...
    Transaction controller N
        HTTP Request 1
        HTTP Request 2
        ...
        HTTP Request N

8 comments:

  1. Have you been able to use a transaction controller in combination with a timer? What I want is to wait AFTER the whole transaction is finished. Using the latest jmeter release, jmeter only hangs if I try this.

    ReplyDelete
  2. DrGradus, I've already written about using timers after transactions - http://jmeter-tips.blogspot.com/2010/01/tip-3-pauses-in-test-plan.html

    ReplyDelete
  3. I'll try what you mentioned on that post, thanks!

    ReplyDelete
  4. Hi Victor, We would like to use Jmeter with the following scenario: customers login to site using user name and password and then randomly browse links at their home page; How to randomize browsing and solve issue that different customers have different items on their home page (e.g collectable items to view its details). I wonder if you have topic to share with all of us and maybe example as you done with your previous tips.
    Thanks.

    ReplyDelete
  5. Anonymous, sorry for late comment. You can use Random or Random Order controllers to randomize user actions and Regular Expression Extractor or XPath Extractor to parse the links on-the-fly.

    ReplyDelete
  6. Hi Victor, Transaction controller combined the response time for multiple HTTP request.

    HttpRequest1
    Post - 302
    Get

    I Require both Post 302 and Get 200 Latency Time as Summed. I am getting only Post 302 Latency Time. Is there any way we can do this.

    Thanks

    ReplyDelete
    Replies
    1. It looks like a bug. I've just checked this on my test plan and get the same results as you.

      Delete
  7. How to win at the Merit Casino? | DeccasinoCasino.com
    One of the most 인카지노 popular happyluke casinos is the Merit Casino. It is located in Atlantic City, New Jersey, and has been rated by real 메리트카지노 players. The

    ReplyDelete