reset password
Author Message
ummata
Posts: 68
Posted 20:49 Oct 24, 2011 |

Hi all,
CSNS from trunk without modified, I ran TestNG without errors.
After that I tried running each DAO-test methods after the first run. I got an error like this.
          ERROR: relation "users" does not exist

I thought it should have returned some values from database. 
Do I need to modify any configuration files or do something with test-db-url?

Thanks

cysun
Posts: 2935
Posted 21:00 Oct 24, 2011 |

If you run the full test suite, the methods in csns.test.Setup (@BeforeSuite and @AfterSuite) will automatically create/clean the database for you. If you want to run each test individually, you have to run those scripts manually to populate the csns2test database.