Hi Marc,

the dtd looks exactly as you posted in your example:

<?xml version="1.0" encoding="UTF-8" ?>

<!--
    For effective use when writing webtests, we need a DTD that covers
    Ant tasks, WebTests tasks and project specific entities.
    This DTD is a holder for these.
    WebTest.dtd is generated at build time with antstructure,
    and Project.dtd with a groovy script.

    Future versions may use antstructure calls to generate only
    the ant specific entries,  while the webtest.dtd may be constructed
    with xdoclet.
-->

<!-- all elements known to ant when /build/selftests/build.xml is called -->
<!ENTITY % webtest  SYSTEM "WebTest.dtd">
<!-- project specific entities -->
<!ENTITY % project  SYSTEM "Project.dtd">

%webtest;
%project;

Then in my testcases I try to use them with:

<!DOCTYPE project SYSTEM "../../../dtd/myWebTest.dtd">

Of course it's possible that Eclipse knows that I'm in an ant-file. 

Regards,
Stefan


Marc Guillemot wrote:
> 
> Stefan Seger wrote:
>> But when I include the MyWebTest.dtd in a testcase using
>> 
>> <!DOCTYPE project SYSTEM "../../dtd/MyWebTest.dtd">
> 
> and this dtd contains the webtest steps?
> 
>> only the tags from ANT get recognized. The tags under <webtest> are not
>> suported.
> 
> are you sure that you get the ANT tasks thanks to this dtd or because
> Eclipse knows by itself that you are in an Ant file?
> 
> Marc.
> -- 
> Blog: http://mguillem.wordpress.com
> 
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Validating-WebTest-XML-files-with-Eclipse-tf4441650.html#a12975638
Sent from the WebTest mailing list archive at Nabble.com.

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to