Andrej Koelewijn

1/22/2004

Unit tests to validate html?

Filed under: — andrejk @ 11:04 pm

I’ve recently created a number of unit tests using jwebunit. Jwebunit is a great framework which allows you to easily test your html pages. Does anybody know if there’s a simple way to validate the html pages loaded using jwebunit? I first thought i could use jtidy, but jwebunit doesn’t use jtidy anymore, so i’d have to manually add it. Is jtidy good enough for validating html pages?

2 Responses to “Unit tests to validate html?”

  1. Jay Dunning Says:

    Tidy’s better than nothing, but the best way is to use XHTML so you can use an XML validator.

  2. pooja nair Says:

    jWebUnit is easy to use,but doesn’t have documents to learn it properly. It just gives a vage idea. No idea how it works for drop down menu,button,etc.

Leave a Reply

Powered by WordPress