Hello Pierre, Pierre Smits <pierresm...@apache.org> writes:
> Loading of test data should be happening on suite level, before any > test-case is executed. > > Currently the code block in [1] is like: > > <test-suite suite-name="suite-name" ..> > > <test-case case-name="load-test data"> > > <entity-xml action="load" > entity-xml-url="component://<component-name/>testdef/data/<name>TestData.xml"/> > > </test-case> > > <test-case case-name="test-to-execute"> > > <simple-method-test > location="component://<componen-name>/<path-name>/<test-name>Test.xml"/> > > </test-case> > > </test-suite> > > > The example above treats the loading of the test data as a test-case. Which > is incorrect. Loading test data for a component's (suite of) test(s) is > not about testing the load process, but about prepping the environment for > one or more executions of test-cases of the component. > > Taking the load process to the suite level would solve this. Like in > example below: > > <test-suite suite-name="suite-name" ..> > > <!-- prep for test-cases --> > > <entity-xml action="load" > entity-xml-url="component://<component-name/>testdef/data/<name>TestData.xml"/> > > <!-- test cases --> > > <test-case case-name="test-to-execute"> > > <simple-method-test > location="component://<componen-name>/<path-name>/<test-name>Test.xml"/> > > </test-case> > > </test-suite> Moving the <entity-xml> element in the children of the <test-suite> one has currently no effect. Please make it clear when you are speaking about not implemented features, I just loose half an hour because of that. Currently only the following syntax is “working”: --8<---------------cut here---------------start------------->8--- <test-case> <entity-xml action="load" entity-xml-url="..."/> </test-case> --8<---------------cut here---------------end--------------->8--- -- Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37