Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 419 Bytes

ch24-TestDataloader.textile

File metadata and controls

9 lines (7 loc) · 419 Bytes

Test – Data loader

@Before public void setUp() { Fixtures.deleteAll();
Fixtures.loadModels("data.yml");}
Fixtures is used to initialise the datastore before running a unit test

#{fixture delete:'all', load:'data.yml' /} or #{fixture delete:'all', loadModels:'data.yml' /}
#{selenium} ... #{/selenium}
Same idea using a Selenium test(loadModels and load parameters are synonyms).