在中间创建Jmeter线程 [英] Jmeter thread creation in the middle

查看:126
本文介绍了在中间创建Jmeter线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JMeter进行性能测试.我的不是典型的Web应用程序.让我从UI的角度进行解释. UI收到来自服务器的推送通知时,必须根据该通知产生新的活动.如何使用JMeter对此进行模拟? Jmeter将代替UI,它将请求发送到服务器. JMeter将接收来自服务器的通知.根据通知,JMeter必须创建新活动(或新请求).基本上,Jmeter用于线性格式的请求-响应.我可以突然在线性流的中间生成线程吗?有没有可用的插件?

I am using JMeter for performance testing. Mine is not a typical web application. Let me explain from the UI point of view. The UI when it receives push notifications from the server has to spawn new activities based on the notification. How do I simuate this using JMeter? Jmeter will be in place of UI and it will place the requests to the server. JMeter will receive notifications from the server. Based on the notification, JMeter has to create new activities (or new requests). Basically, Jmeter is used for request-response in linear format. Can I suddenly spawn threads in the middle of a linear flow? Is there any plugin available for this?

推荐答案

您可以暂停线程(将其放入无限循环+睡眠状态),等待某些属性更改.使用JMeter-Plugins线程间通信唤醒这些线程.

you can pause a thread (putting it in an infinite loop + sleep) waiting for some property to change. Use JMeter-Plugins inter-thread communication to wake these threads up.

这篇关于在中间创建Jmeter线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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