[swfobj src=”http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=testing-phpweb-applications-with-phpunit-and-selenium-17030&stripped_title=testing-phpweb-applications-with-phpunit-and-selenium” width=”425″ height=”355″ allowfullscreen=”true”]
If you have access to XML config files, CURL is great testing tool, if you are happy at the command-line. In a nutshell, CURL effectively means of changing values on the fly (using PUT/GET commands), and this method is the basis for many test tools (notably Selenium). The main advantage (once you get up to speed with CURL) is speed. As with most tools, the more bloated the application, to slower it becomes. And therefore most potential for errors based on tool performance, rather than application under test. CURL takes advantage of data storage in XML format, rather than a DB. Here is an example of a CURL command used to create test scenario.
curl -d “subscription[end_date]=2008-12-31 15:57:00” -X PUT http://www.asite.com/subscribers/22/subscriptions/20.xml
This command is populating the “end_date” with a value in past (to test system reaction to expired subscription). How your XML config files may/will be differently structured, but that URL is pointing to Subscription record 20 for Subscriber id 22. This is a basic example, but if you have access to XML config files, this is a fast, easy way to test critical functions of a system, especially subscriptions, registrations and user account activity.
Some examples of uses of CURL in testing:-
curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos…), file transfer resume, proxy tunneling and a busload of other useful tricks.
ANother great testing tool from the makers of Selenium suite of products. This one netaly ties in the testing process, from requirements through to execution and reporting. Fitnesse did do this to some degree, but this is a much more user-friendly product, and at reasonable cost for a supported and stable product.
Game Emotion Testing :: Interview with Nicole Lazarro, founder and President of XEODesign[audio:http://media.libsyn.com/media/gametheory/gametheory_09_20070522.mp3]
In the first Agile Skypecast, Robert Martin answers the question of “What is Agile?” He goes back to the start, the formation of the Agile Alliance and the drafting of the Agile Manifesto.Agile SkypeCast 2007 – Bob Martin – What is Agile?[audio:http://media.libsyn.com/media/agiletoolkit/agile_skypecast_07_bob_martin.mp3]
Luke Closs talking about Selenium,a test tool for Web applications that runs in your browser. Selenium is an open-source tool developed by some smart people at ThoughtWorks[audio:http://www.qapodcast.com/sites/qapodcast.com/files/theme_editor/manji_customized/QAPodcast-7-Talking-Selenium-With-Luke-Closs.mp3]