开发者

Session id in the middle of URL

开发者 https://www.devze.com 2023-02-05 03:07 出处:网络
I need to test a application with JMeter, where the session id is part of the UR开发者_开发问答L (in the middle of the URL).

I need to test a application with JMeter, where the session id is part of the UR开发者_开发问答L (in the middle of the URL). For example (sessionId=SID-123456): www.testServer.de/my/app/SID-123456/search.html

How can I put the session id in the URL, in a JMeter test?


In Jmeter, the HTTP request field for "PATH" will accept variables.

So, you just need to extract the session ID from the login page (or wherever), store it to a variable, and then have your HTTP request path read "/my/app/${sid}/search.html

Threadgroup would look something like this:

Threadgroup -- Login Page ---- Regex to extract SID -- Search Page

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号