JMeter using URL rewriting to process user sessions

Source: Internet
Author: User
Tags session id

If your Web application uses URL rewriting instead of cookies to save session information, you need to do some extra work to test your site.

To properly address URL rewriting, JMeter needs to parse the HTML received from the server and retrieve the unique session ID, using the appropriate HTTP url rewrite modifier to complete the task. Just enter the name of your session ID parameter modifier, and it will find it and add it to each request. If the request already has a value, it will be superseded. If the session ID is cached? "Check that the last Discovery session ID will be saved and will be used if the previous HTTP sample does not contain a session ID.

example of URL rewriting

Download This example . Rewrite the test plan using URLs as shown in Figure 1. Note that URL rewriting simplecontroller adds modifiers to ensure that it only affects request simplecontroller.

Figure 1-Test tree

In Figure 2, we see a URL rewrite modifier gui that only specifies a field session ID name parameter for the user. There is also a check box indicating that the session ID is part of the path (with ";" Separate) instead of a request parameter

Figure 2-Request Parameters 

JMeter using URL rewriting to process user sessions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.