| Name | Last modified | Size | Description | |
|---|---|---|---|---|
| Parent Directory | - | |||
| COPYING | 26-May-2006 12:37 | 18K | ||
| phrill-latest.tar.gz | 26-May-2006 12:34 | 265K | ||
| phrill.0.0.1.tar.gz | 26-May-2006 12:34 | 265K | ||
Phrill is a tool for web application testing, based on Twill.
Phrill works with the scriptable web browser component of Simpletest, exposing (a subset of) it's functionality via a mini-language.
Phrill doesn't yet do form submissions or authentication!
Phrill generates Simpletest test case output when provided with a file of Phrill commands. It also provides an interpreter mode that allows interactive testing and generation of command files.
Please send suggestions and bug reports to jonathon.ramsey@gmail.com
$ ./phrill
>> go http://babylon.idlevice.co.uk
>> follow php/
>> follow phrill/
>> code 200
>> find Phrill
>> find "not there"
FAIL: No match for /not there/ in page source
>> commands command.list
The last input here, >> commands outfile, outputs all
commands run in this interpreter session into an output file,
command.list.
The help command will
We can then use the code generator to create a Simpletest test case:
$ ./phrill -i commands.list
<?php
class Phrill_outfile extends WebTestCase {
function test_outfile() {
$this->addHeader("User-Agent: Phrill/0.1.0 (http://babylon.idlevice.co.uk/php/phrill/)");
$this->get("http://babylon.idlevice.co.uk");
$this->click("php/");
$this->click("phrill/");
$this->assertResponse(200);
$this->assertWantedPattern("/Phrill/");
$this->assertWantedPattern("/not there/");
}
}
?>
The test case can be written directly to a file:
$ ./phrill -i commands.list -o simpletest.output.php
Other command line options are listed with:
$ ./phrill --help
Phrill is released under the GNU General Public License, see the file COPYING for details.