开发者

Simulate users in a chat room (PHP, ajax)

开发者 https://www.devze.com 2023-02-06 05:43 出处:网络
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 aft

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 mo开发者_高级运维derate whatever they type or if I can simulate a moderator is even better.

Thank you for help.


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.

0

精彩评论

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

关注公众号