 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Developer Tutorials Blog: Testing email routines in web applications
by Chris Cornutt July 17, 2008 @ 08:49:16
On the Developer Tutorials blog, there's a recent example of how to validate a common task of many signup forms - if the email sent is actually received.
For any web developer that's ever had to build a signup routine, email is the necessary evil that takes pride of place among hated activities. Sure, a simple call to the language's mail library will send a message through, but the moment the boss wants a HTML email, or users need attachments, everything starts to get tricky.
They try to solve the mail return issue (it tells if the message has gone to the queue, not been delivered) with a little testing and Fakemail. The software looks for emails based on the configuration given and pulls them out to a local directory. Your script can then look here and check the validity of the message before its sent.
This even allows for integration with things like Phing, SimpleTest and Selenium.
voice your opinion now!
test unittest selenium simpletest phing email fakemail
Sebastian Bergmann's Blog: RC2 Is The New RC1 (PHPUnit)
by Chris Cornutt November 13, 2007 @ 10:24:00
Sebastian Bergmann has posted about the latest release of the popular unit testing framework for PHP, PHPUnit 3.2.
I have just released a second release candidate for PHPUnit 3.2, the next major version of the xUnit testing framework for PHP.
According to the Changelog, updates in this new Release Candidate include a number of updates to the software metrics that can be run on code (at project, file, function, class and method level), the addition of DbUnit, code coverage improvements, bug fixes to the TestUI test runner and Selenium integration and much more.
voice your opinion now!
phpunit unittest releasecandidate codecoverage software metric dbunit runner selenium phpunit unittest releasecandidate codecoverage software metric dbunit runner selenium
Zend Developer Zone: Acceptance Testing of Web Applications with PHP
by Chris Cornutt June 27, 2007 @ 15:45:00
From the Zend Developer Zone, there's a tutorial covering acceptance testing of web applications, specifically using PHPUnit and Selenium.
In this article I introduce the topic of Acceptance Testing (aka Functional Testing), something more PHP programmers should be starting to practice. I'm sure many of us are well aware of Unit Testing and even Integration Testing so where does this third wheel come into play for web applications given our growing obsession with Web 2.0 and AJAX and how does it differ from the former two practices? Below I'll explain this.
They start by asking "Why acceptance testing?" at all with an answer of "it's not about isolated testing, but testing as a whole". The rest of the article is broken up into several parts:
- Of User Stories and Acceptance Tests
- The Iteration Plan
- Preparing For Acceptance Testing (setting up PHPUnit and Selenium)
- Writing And Running The Acceptance Tests
- How to run the tests
In their example they show how to validate that a login on the site works as expected (including interacting with a form on the page).
voice your opinion now!
acceptance testing application phpunit selenium acceptance testing application phpunit selenium
ThinkPHP Blog: Practical Testing PHP Applications with Selenium
by Chris Cornutt August 09, 2006 @ 12:11:40
On the ThinkPHP blog today, there's a new post that looks at using the Selenium Javascript library to test your applications, ensuring that the input methods are all up to snuff.
Testing software whilst ongoing development seems to be a boring job containing a lot of reoccurring tasks. As a reaction on all this effects we need to add more testing. So what do we do? We use a person to click through the application, using its features as he or she thinks they are intended to use.
In the end we need another expert in the team for a boring reoccurring task, finding bugs that are easy to find and most times, simple to resolve. Did i say simple task, reoccurring? Why not use a Software for the click-around testing in our application to check if it still does what it needs to do ?
The testing tool of choice for them is Selenium, a Javascript library to perform the clicks and put into input fields data to check your application's functionality. They describe the three kinds of test suites (links to their descriptions) and show what a simple automated test would look like. There's even a link to a tutorial from IBM on the topic.
They step through the process of creating the test (no code) and show how to store them in CVS (as well as talk about a few "dirty tricks" they found out along the way).
voice your opinion now!
testing application selenium javascript input tutorial testing application selenium javascript input tutorial
|
Community Events
Don't see your event here? Let us know!
|