PHP Developers Network

Multipage acceptance tests...
Page 1 of 1

Author:  nielsene [ Tue Aug 09, 2005 8:35 pm ]
Post subject:  Multipage acceptance tests...

I'm having an issue with a multipage acceptence test. Here's the start of the test case:
Syntax: [ Download ] [ Hide ]
class ResultTrackerLoadTest extends WebAuthTestCase {

  function ResultTrackerLoadTest() {

    $this->WebAuthTestCase('Result Tracker Import Tests','siteadmin-tester',



  function testImportProcess() {

    // Page 1 Generall Inforamtion


    $this->assertTrue($this->setField('compName','FooBar Ballroom Dance Competition'));


    $this->assertTrue($this->setField('compType','US Collegiate'));














    echo $this->getUrl();





The last assertPattern is failing, the URL still points to the second step and the showSource returns nothing. This step is slurping up a lot of data, normally takes about 2-3 minutes (when not run in testing), hence the 10 minute timeout I set. When I cut and paste from the test case into the form, it works. I've viewed source to make sure I have exact matches on the field names.

Any clue as to why it would fail in the multipage test? I had a problem before when the simple browser wasn't propagating the HTTP_REFERER, but I no longer require/check that.


Changing the second submission to:
Syntax: [ Download ] [ Hide ]


                     "submit"=>"Get Results");

    $temp=$this->post($postTo, $postParam);

works. But that's turning the test into something not quite an acceptance test -- its not using the website the way a "person" would in setting fields and clicking buttons....]

Author:  nielsene [ Sun Aug 14, 2005 12:26 pm ]
Post subject: 

Author:  McGruff [ Sun Aug 14, 2005 4:26 pm ]
Post subject: 

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group