Basically, I want to run selenium tests that allow the database to be setup to a define status before each Selenium test. How would I do this?
views:
16answers:
2
A:
Given that Selenium just calls url's you could simply use the setUp() and tearDown() methods to get your database into a specific state. Transaction rollback is one approach to keeping the database consistent.
Then call url's mapping into the project under test (and your test database) e.g.:
$this->open('http://testing.example.org/system/under/test.php');
Martin V
2010-07-15 11:28:43
A:
I have written my own database setup and teardown routines which I added to a child of selenium testcase
txwikinger
2010-07-30 15:18:12