PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat Sep 21, 2019 4:51 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Test classification...
PostPosted: Sat Aug 06, 2005 3:35 pm 
Offline
DevNet Resident
User avatar

Joined: Fri Aug 16, 2002 8:57 am
Posts: 1834
Location: Watertown, MA


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 06, 2005 10:05 pm 
Offline
DevNet Master

Joined: Thu Jan 30, 2003 9:26 pm
Posts: 2893
Location: Glasgow, Scotland
All web tests are acceptance tests, I think. They're testing end-to-end by exercising UI commands and relate directly to client requirements.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 06, 2005 10:06 pm 
Offline
DevNet Resident
User avatar

Joined: Fri Aug 16, 2002 8:57 am
Posts: 1834
Location: Watertown, MA


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 06, 2005 10:57 pm 
Offline
DevNet Master

Joined: Thu Jan 30, 2003 9:26 pm
Posts: 2893
Location: Glasgow, Scotland


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 07, 2005 10:16 am 
Offline
DevNet Resident
User avatar

Joined: Fri Aug 16, 2002 8:57 am
Posts: 1834
Location: Watertown, MA
So you wouldn't have a Unit Test like
Syntax: [ Download ] [ Hide ]
class FooFormDisplayTest extends WebTestCase {

   function FooFormDisplayTesst() {

      $this->WebTestCase("Test Display of Foo Form");

   }

   function setUp() {

      $this->get('someWebPage');

   }

   function testFormElements() {

      $this->assertField('firstName');

      $this->assertField('lastName');

      $this->assertField('submit');

   }

}

As the driver for the form generating code/template?

Of course if your design has a "form" class you can simply test if its "display" method generates the right string.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 07, 2005 3:06 pm 
Offline
DevNet Master

Joined: Thu Jan 30, 2003 9:26 pm
Posts: 2893
Location: Glasgow, Scotland


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 10, 2005 11:18 pm 
Offline
DevNet Resident
User avatar

Joined: Fri Aug 16, 2002 8:57 am
Posts: 1834
Location: Watertown, MA


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group