I'm dealing now with a problem during creating automation of integration test.
I would like to:
- input data via selenium RC
- check if values are correct in DB after import.
I've got problem with logic of those tests. Now I do it as it follows: in one test I generate random data (first name, last name, etc of the person). Then, by simple select from DB I obtain unique person_id key (I assumed that if first and last name are both 8 characters long, random generated strings I can treat them as unique) and then use this id in next queries.
Is this method correct? If not, how can I deal with it?