Page 1 of 1

Value verification in tables

Posted: Tue Jul 14, 2009 9:28 pm
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?

Re: Value verification in tables

Posted: Wed Jul 29, 2009 5:13 am
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.

Re: Value verification in tables

Posted: Sat Aug 08, 2009 12:53 pm
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