Simulate users in a chat room (PHP, 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 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.
精彩评论