简体   繁体   中英

JMeter - What kind of extractor should be used for a PageSessionID request parameter?

I've been using JMeter to test the functionality of a site. A particular publishing action generates a different PageSessionId for every user when running the request.

I'm a bit of a novice with JMeter, and it's clear that there needs to be an extractor to help parse in the user-generated sessionid's for these requests. Any ideas on what extractor would be most helpful for this and its likely set-up?

https://i.stack.imgur.com/OboZq.png

If the response is in HTML format, you could use one of following Post Processors to extract the sessionId.

  1. Regular Expression Extractor
  2. CSS Selector Extractor
  3. Boundary Extractor

If the response is in JSON format, you could use of following Post Processors to extract the sessionId.

  1. JSON Extractor
  2. JSON JMESPath Extractor

In this short video on managing the sessions, I have demonstrated use of few post processors. video

You're showing the request and in order to be able to suggest the most suitable option we need to see the response (where this dynamic value is returned)

From high level perspective:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM