PHP Template Based Testing Framework: Test the output of application site scripts

Recommend this page to a friend!
  Info   Example   View files (6)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 124 All time: 9,123 This week: 344
Version License PHP version Categories
templated-testing 1MIT/X Consortium ...5.0PHP 5, Testing
Description Author

This class can test the output of application site scripts.

It can read the parameters of tests from files that define the name of each text, the URL of the application to test and request parameters to send to the tested application scripts, and a regular expression of the expected output.

The class can send a HTTP request to the server of the application to test with the specified parameters.

Then it checks of the returned response matches the specified test regular expression.

The class logs the success or failure of each test to a given log file.

Picture of Richard Carson
  Performance   Level  
Name: Richard Carson <contact>
Classes: 4 packages by
Country: Canada Canada
Age: 28
All time rank: 200049 in Canada Canada
Week rank: 261 5 in Canada Canada


PHP Template Based Ajax Callback Testing Framework ------------- This Name is Too Long --------------

What is it for?

This library is designed to automate testing of backend callback functions of Ajax based web services

How does it work?

This library uses cURL to fetch from your app's backend and uses regex to interpret the results

A few examples of regex

Empty only: ^$ Any output: ^[\d\D]*$ Numbers : [\d]+ Visit to experiment until you find the regex string that works for you

The templates

tests has a simple example provided for reference. Url parameter values must be provided one per line, and already url-encoded


PHP5 is needed, as I use templates cURL is needed The webserver needs write access to the chosen temp directory, and to wherever you save your logs

File Role Description
tests (1 file)
LICENSE Lic. License text
README Doc. Documentation
testbed.class.php Class Class source
testbed.interface.php Class Class source
testing.php Example Example script

  Files  /  tests  
File Role Description
   simple_example.tpl Data Example template

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,123
This week:344

For more information send a message to info at phpclasses dot org.