开发者

What tools can be used to help multi-user testing

When developing a website, I often need to test scenarios like this:

When user A logs in, she should see X button while user B can not

And doing this kind of testing requires me to do a lot of log in and log out with different test accounts, which is by no means convenient.

I wonder if there are any tool t开发者_运维百科hat can help me do this?


My suggestion would be to use two (or more, if needed) different browsers. They have their own sessions, therefore you can be logged in with both users at the same time.

As example, you can use Internet Explorer for one, and Mozilla Firefox for other user.

Pretty simple!

Update 16th of December, 2016:
Nowadays, when browsers have introduced private sessions (ie. Incognito for Chrome) you can just open this private session and log in with that. It won't use storage mechanisms related with main browser window.
Though, in Chrome, at least - opening two incognito windows won't make you get in total of 3 sessions. The incognitos, all live with a "single" session so to speak. Don't know about Firefox and others.


Apache JMeter is very good at this type of thing: -

  • http://jmeter.apache.org/


I suggest that using light-weighted service like eggPlant would be great.

Due to that multi-user testing can't be done entirely by serial testing(tests the web by a single user in a short period of time), we need do it concurrently(multiple users accessing the database in a short period of time). This kind of testing can point out some potential defects like bad database locking algorithm.

The other benefit: The service can save you a lot of time, which were spending on testing the web by yourself.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜