开发者

Any way to automate - for testing - a human-dependent action?

I wonder if there are any good / possible ways to automate - for a unit test perhaps - a human-dependent action on an eCommerce website?

For example, could I have a macro or a script to simulate "can user put items in basket?" or "can user reach the payment gateway?".

I am currently managing a very heavily used eCommerce code base and would like to be able to quickly verify that any changes I开发者_运维百科 implement are not going to goof things up for the end user.


Check out Selenium... All the tests execute in a browser, so you can test your JS, etc...

Edit:

Oh, and the REALLY cool thing, is if you use Selenium Grid, you can then scale out your already written tests to multiple browsers and platforms. So you write your test once, and then can run it (simultaneously) on literally dozens of different browser/platform combinations. You'll still need to intelligently write your test cases, but once you do you can use it to detect problems on other browsers (Test for JS errors/crashes)...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜