[Webtest] IntelliJ problem with WebTest.dtd

Marco Faini (mfaini) webtest@lists.canoo.com
Wed, 12 Jan 2005 18:04:33 -0800


Hi there,

Thanks for all the quick replies.

I am still having this annoying issue... and for sure I should have been
more clear on my previous email regarding my settings (apologies):

- My xml file has the following line
	<!DOCTYPE project SYSTEM
"D:\Projects\webtest\selftests\config\WebTest.dtd"> 
  which IntelliJ seems to like so far ( it does not mark it red )

- I have not referenced this xml file as an Ant Build file
- I have added the external resource into 'Settings/IDE/Resources' with just
the location (no URI) since there is no DTD publicly available (as most of
you confirmed, and btw I agree on making it one available on line)

Anyway, after all this, IDEA still marks in red the tasks testSpec, invoke,
verifytitle, etc.. Saying that "Element testSpec is not allowed here"

Am I missing something? Should I add something on my classpath? Or I do not
know, should I do something different?

Thanks


 
-----------------------------------------
 
Marco

-----Original Message-----
From: webtest-admin@gate2.canoo.com [mailto:webtest-admin@gate2.canoo.com]
On Behalf Of Dierk Koenig
Sent: Wednesday, January 12, 2005 12:51 AM
To: webtest@gate2.canoo.com
Subject: RE: [Webtest] IntelliJ problem with WebTest.dtd

Hi Marco,

if your test xml file contains a doctype like

<!DOCTYPE project SYSTEM "../config/MyWebTest.dtd">

the DTD may be either directly resolved
(when started from the expected directory) or you can register
"../config/MyWebTest.dtd"
as an external URI under Ideas "Settings.Resources".

I tried with several IDEA versions over time and found that this did not
work in all versions, depending on whether or not
- the DTD refers to other DTD files using the %entity; notation
- the xml file was used as an "ANT Build File"

YMMV
Mittie


-----Original Message-----
From: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com]On
Behalf Of Marco Faini (mfaini)
Sent: Mittwoch, 12. Januar 2005 1:26
To: webtest@gate2.canoo.com
Subject: [Webtest] IntelliJ problem with WebTest.dtd


Hello everybody,

I have just downloaded the WebTest package and I was able to run the
sampleTest.
Now, I'd like to start writing my own test cases, and as suggested in the
documentation, under "Use a proper editor" set up my editor (IntelliJ IDEA
4.5) to recognize WebTest.dtd.

IntelliJ askes me for a URI and for a local path to the file. I could not
find any URI for DTD validation in the Canoo web site. (as for instance this
URI for validating struts tags --> http://struts.apache.org/tags-logic)

Does anybody know how to get IntelliJ to recognize the WebTest.dtd?


-----------------------------------------

Marco

_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest