edwardt_tril has asked for the wisdom of the Perl Monks concerning the following question:


of DBI populariryt and that the product udner tes ti using perl, I am thinking of using perl to test whether the
product under test correctly pasrse and insert data into the mssql server with the loging credential. so the
ultimate goal is to issues sql statements to test against various data already in the database. one thing for
sure is that we will never use live database as the app under test will install a fresh installed embedded msdn or connect to a
new or existing sql server creating an entire new instance. we have a set of sample data inputs that the app will parse, and I want to do some query against the databse to
make sure the data has been inserted into the database. but since there may be schema change I was thinking about
using object relational mapping to seperate SQL queries from the other parts of the tests..
but is there a similar test framewrok already exits? since this is a common problem, I
have a feeling I may be duplicating someone else work. I cannot use MOCK database as the dev team really want MSSQL
and MSDN because of vendor specific SQL implementation. any suggestion?
  • Comment on a perl framework to test mssql database

Replies are listed 'Best First'.
Re: a perl framework to test mssql database
by adrianh (Chancellor) on Mar 22, 2006 at 09:41 UTC
    I cannot use MOCK database as the dev team really want MSSQL and MSDN because of vendor specific SQL implementation

    I don't see how that's an argument against using a mock database?

    any suggestion?

    Test::DatabaseRow maybe?

Re: a perl framework to test mssql database
by timos (Beadle) on Mar 22, 2006 at 08:29 UTC
    Why not write a test with Test::Simple where you first INSERT fixed values into your test-db as one test and SELECT them in the next one?