2013年5月24日星期五

Michelangelo van Dam: UA Testing with Selenium and PHPUnit


In this new post to his site Michaelangelo van Dam looks at user acceptance testing with PHPUnit and Selenium.



Last week I spoke at php[tek] 2013 where I explained to people how to get started with Selenium IDE to record user interaction with the web interface, convert them to PHPUnit testcases and automatically execute them on multiple browsers on multiple platforms. The feedback I got was awesome, you're all a great crowd! But on twitter I also received a bunch of questions regarding how to set up multiple platforms and why I used Windows in my presentation to deploy to. So today I deceided it was time to write a full article on this subject.


He introduces Selenium and what kinds of things it can be used to test. He also defines "user acceptance testing" and talks about why they're an important part of the testing ecosystem. He then walks you through the process of getting the testing environment set up, creating a few tests and how to convert them over to PHPUnit tests (using a built-in tool). Screencasts show you each step of the way. He includes a little tweaking you'll need to do to to the test code to get it working with your own Selenium server


Link: http://www.dragonbe.com/2013/05/ua-testing-with-selenium-and-phpunit.html

没有评论:

发表评论