开发者

Session id in the middle of 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜