Value verification in tables

Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")

Moderator: General Moderators

Post Reply
Sara-EMC
Forum Newbie
Posts: 1
Joined: Tue Jul 14, 2009 9:03 pm

Value verification in tables

Post by Sara-EMC »

This is a question similar to one below about automation but I hope different enough to warrant this post.

I'm faced with checking the values that a website produces. These values are in a table. I'd like to make sure these values match the values in a database. Can I use SimpleTest or PHPUnit for this or is some other approach required?
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Re: Value verification in tables

Post by Jenk »

In short: Yes.

In Long: Depends on how you access the data.. how the tables are formulated, how the data is retrieved, how the data is presented, etc.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Value verification in tables

Post by josh »

If you have a model for your table, with some kind of array or API access, test that, then implement a decorator pattern for rendering and test your decorators as well ( seperately ). There is some html test cases for zend_form you may find interesting
Post Reply