JMeter的:单个用户防火多个并发的HTTP请求 [英] JMeter: Fire multiple concurrent HTTP requests for a single user

查看:869
本文介绍了JMeter的:单个用户防火多个并发的HTTP请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个线程组和一个Cookie管理器JMeter的负载测试脚本。

I have a JMeter load test script with a thread group and a Cookie Manager.

线程组中的用户第一次登录使用HTTP采样获得的cookie。

The users in the thread group first log in using a HTTP sampler to obtain a cookie.

然后,回路控制器的触发采样交错的这激发关闭查询到服务器的HTTP夫妇采样之间交替。

Then a loop controller fires an interleave sampler which alternates between a couple HTTP samplers that fire off queries to the server.

现在我想的交错控制火两个或三个并发请求为同一个用户,在每个请求发送相同的cookie的选项之一。结果
我怎样才能做到这一点?

Now I'd like one of the options of the interleave controller to fire two or three concurrent requests for the same user, sending the same cookie in each request.
How can I do this?

推荐答案

我们最后什么事做:


  • 系统的BeanShell取样器检索登录请求后,cookie管理器的SessionID cookie值,并将其设置在变量中。

  • 另一个的BeanShell取样器作为子项添加到交叉采样。这BeanShell的取样检索该变量的饼干。然后,它开始为每个请求,它会调用使用cookie值的HTTP请求一个新的线程,并检查结果。原来的BeanShell螺纹联接所有发表的主题,结合的结果。

这是相当繁琐code。你能想出更好的方法来做到这一点?

This was rather cumbersome to code. Can you think of a better way to do it?

这篇关于JMeter的:单个用户防火多个并发的HTTP请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆