Eclipse Setup – HTMLUnit

1. Download the latest HTMLUnit. Current latest version-2.8 from HTML Unit website.

2. Unzip the folder.

3. Download eclipse IDE for Java from Eclipse website.

4. Launch eclipse and create a new workspace.

5. Create a new project.

CreateProject-Eclipse

6. Add the HTMLUnit jars to the Build path of the newly created Java project. Check HTMLUnit Dependencies page for all the dependencies required.

Add htmlUnit to Build Path

Add htmlUnit to Build Path

7.  Download TestNG or JUnit and these jars to the file.

8. Download the TestNG eclipse and JUnit eclipse plugins.

9.  Kudos!  You are good to write your tests. Check First Script – HTML Unit for your first HTML test validation. :)

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>