Skip to content

Unit testing code using HtmlUnit #295

@skyhirider

Description

@skyhirider

Which classes would you recommend for unit testing custom code using HtmlUnit and HtmlUnitDriver ?

I had a look at your tests and there is WebDriverTestCase and I specially like how DomElementTest.java is set up.

Is there a better class you would recommend as a unit test blueprint?

Specifically, am researching how to unit test a web robot, and creating a mock using your test classes and feeding it a string with the page seems like the best way to go.

Using Selenium Page Object Models for this, and my main aim is to unit test these page object model classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions