Showing posts with label application testing. Show all posts
Showing posts with label application testing. Show all posts

Sunday, June 12, 2011

Creating a Skeleton Test Quickly Using PHPUNIT

To quickly write a skeleton unit test for php application classes, do the following.

# phpunit --skeleton-test <classname> <relative or absolute path of the file>

This gives you,

  1. Placeholder tests for all public methods of the target class
  2. Marks these tests as incomplete for easy tracking
  3. Gives a tear down and setup methods for you to initialize and destroy  test fixtures
  4. Basic construction of the object
Lots of lines of test code by typing one-liner shell command. That's what you call productivity!


Saturday, March 19, 2011

Install Siege - A Web Performance Testing Application

Siege is a PERL-based web and endpoint performance testing application built to do integrity, baseline/benchmark, load and spike (when used with Bombard)  tests. It is similar to applications like Apache Bench, JMeter and HttpPerf. Warning: It doesn't work on Microsoft Windows unless you run it under Cygwin or run a Virtual Machine with *nix OS.

Platform Compatibility as Stated from the Siege Homepage

"Siege was written on GNU/Linux and has been successfully ported to AIX, BSD, HP-UX and Solaris. It should compile on most System V UNIX variants and on most newer BSD systems. Because Siege relies on POSIX.1b features not supported by Microsoft, it will not run on Windows. Of course you can use Siege to test a Windows HTTP server."

Let's Install Siege

Unfortunately,t there's no official RPM package from the creator of siege. You might however find some out there. The steps below are installation steps from source only.

Saturday, May 22, 2010

Common Use Cases to Generate User-Input Test Cases

The most common and underused tool available for gaining good test coverage on your product or application regardless if it's automated or manually done is a checklist. A checklist dictates what process or steps to take when encountering a particular use case similar to how an expert would know what to do given that he had substantial experience over the matter. Thus, it can also be used as an effective way of rapidly transferring knowledge over to other individuals later on. It can also help you prevent from forgetting obvious tests when you are engaged with a very complex test suite.