4 messages in com.canoo.lists.webtestRe: [Webtest] Organize entities in a ...
FromSent OnAttachments
Stefan Seger12 Sep 2007 05:33 
Marc Guillemot12 Sep 2007 05:49 
Stefan Seger12 Sep 2007 05:56 
Marc Guillemot12 Sep 2007 06:03 
Subject:Re: [Webtest] Organize entities in a single file
From:Marc Guillemot (mgui@yahoo.fr)
Date:09/12/2007 05:49:41 AM
List:com.canoo.lists.webtest

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