Hi Stefan,
you just need to put your entities in a DTD file and reference this DTD
from your xml files.
If you use WebTest's webtest.xml this DTD file can be generated
automatically if you follow some conventions for the names of your entities.
Marc.
--
Blog: http://mguillem.wordpress.com
Stefan Seger wrote:
Hello,
I have a lot of test cases written in Canoo webtest, and stored often used
steps in different files. In my test cases I load this files into the test
case with <!ENTITY> tag. For example:
<!ENTITY config SYSTEM "file:../../config.xml">
<!ENTITY login SYSTEM "file:../../login.xml">
<!ENTITY adminModule SYSTEM "file:../../adminModule.xml">
<!ENTITY headFrame SYSTEM "file:../../goToFrames/headFrame.xml">
<!ENTITY mainFrame SYSTEM "file:../../goToFrames/mainFrame.xml">
<!ENTITY tabcontentFrame SYSTEM
"file:../../goToFrames/tabcontentFrame.xml">
The problem I have now: I must always copy new entities in all my test
cases. Is there a way to store all my entities in ONE file and include this
also in each test case? I hope it's clear what I mean.
Regards,
Stefan