模拟聊天室中的用户(PHP、ajax)
祝大家美好的一天。
我创建了一个经过审核的聊天(每个问题/答案/任何内容都必须经过审核)。现在我唯一的问题是我不知道如何模拟大量用户输入内容并在帖子审核后获得重播。所以我问的是是否有办法模拟用户输入内容然后按 Enter 键。 (并为每个 ajax 获取响应)。我可以调节他们输入的任何内容,或者如果我可以模拟主持人就更好了。
谢谢你的帮助。
Good day to all.
I created a moderated chat (each question/answer/whatever have to be moderated). Now my only problem is that I don't know a way to simulate lots of users that type something and after the post is moderated get a replay. So what I ask is if there is someway to simulate users typing something then press enter. (and for each some ajax to get the response). I can moderate whatever they type or if I can simulate a moderator is even better.
Thank you for help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用支持示例数据注入的动态 Web 测试工具 - Loadzen 具有动态数据功能:因此您可以使用他们的场景记录器记录您的测试,然后您将为每个记录的 GETS/POSTS 生成示例数据集并将它们附加到您记录的场景中。
这实际上与模拟使用样本/动态数据相互发送和响应的用户负载具有相同的效果,您可以混合数据集以确保应答者和询问者双方都是随机的。
Try using a dynamic web testing tool that supports sample data injection - Loadzen has a dynamic data feature: so you would record your test using their Scenario Recorder, then you would generate sample data sets for each of the recorded GETS/POSTS and attach them to your recorded scenario.
This will effectively have the same effect as simulating loads of users sending and responding to each other with sample/dynamic data, you could mix the data sets to make sure that it's random on both the answerers and askers side.