+
+

Related Products

  • Parasoft
    152 Ratings
    Visit Website
  • Innoslate
    93 Ratings
    Visit Website
  • Bright Data
    1,424 Ratings
    Visit Website
  • NetNut
    541 Ratings
    Visit Website
  • Gaffa
    5 Ratings
    Visit Website
  • RAD PDF
    3 Ratings
    Visit Website
  • Virtuoso QA
    131 Ratings
    Visit Website
  • Nutrient SDK
    111 Ratings
    Visit Website
  • Lockbox LIMS
    72 Ratings
    Visit Website
  • Adaptive Security
    91 Ratings
    Visit Website

About

HtmlUnit is a "GUI-Less browser for Java programs" that models HTML documents and provides an API to interact with web pages, such as invoking pages, filling out forms, and clicking links, similar to a standard web browser. It offers fairly good JavaScript support, which is constantly improving and is capable of handling complex AJAX libraries, simulating browsers like Chrome, Firefox, or Edge depending on the configuration used. Typically used for testing purposes or retrieving information from websites, HtmlUnit is not a generic unit testing framework but is intended to simulate a browser within another testing framework such as JUnit or TestNG. It is utilized as the underlying "browser" by various open source tools like WebDriver, Arquillian Drone, and Serenity BDD, and is employed by many projects for automated web testing, including Apache Shiro, Apache Struts, and Quarkus.

About

The toolkit is provided as a set of artifacts deployed to the Maven Central repository. It requires Java 7 or newer for test execution; tests must use JUnit or TestNG. For instructions on how to add the library to a Java project, see Running tests with JMockit. In this tutorial we examine the APIs available in the library, with the help of example tests (using Java 8). The central API - a single annotation - provides support for the automatic instantiation and initialization of the objects to be tested. Then we have the mocking API (also known as the "Expectations" API), intended for tests which use mocked dependencies. Finally, there is a small faking API (aka the "Mockups" API), which can be used for the creation and application of fake implementations that avoid the full cost of external components.

Platforms Supported

Windows Supported
Mac Supported
Linux Supported
Cloud Not Supported
On-Premises Not Supported
iPhone Not Supported
iPad Not Supported
Android Not Supported
Chromebook Not Supported

Platforms Supported

Windows Supported
Mac Supported
Linux Supported
Cloud Not Supported
On-Premises Not Supported
iPhone Not Supported
iPad Not Supported
Android Not Supported
Chromebook Not Supported

Audience

Java developers wanting a solution to automate web page interactions and perform testing operations

Audience

DevOps teams looking for an Unit Testing solution

Support

Phone Support Not Supported
24/7 Live Support Not Supported
Online Supported

Support

Phone Support Not Supported
24/7 Live Support Not Supported
Online Supported

API

Offers API Supported

API

Offers API Supported

Screenshots and Videos

Screenshots and Videos

Pricing

Free
Free Version Supported
Free Trial Not Supported

Pricing

Free
Free Version Supported
Free Trial Not Supported

Reviews/Ratings

Overall 0.0 / 5
ease 0.0 / 5
features 0.0 / 5
design 0.0 / 5
support 0.0 / 5

This software hasn't been reviewed yet. Be the first to provide a review:

Review this Software

Reviews/Ratings

Overall 0.0 / 5
ease 0.0 / 5
features 0.0 / 5
design 0.0 / 5
support 0.0 / 5

This software hasn't been reviewed yet. Be the first to provide a review:

Review this Software

Training

Documentation Supported
Webinars Not Supported
Live Online Not Supported
In Person Not Supported

Training

Documentation Supported
Webinars Not Supported
Live Online Not Supported
In Person Not Supported

Company Information

HtmlUnit
United States
htmlunit.sourceforge.io

Company Information

JMockit
jmockit.github.io

Alternatives

Alternatives

jBrowserDriver

jBrowserDriver

Daniel Hollingsworth
Selenium

Selenium

Software Freedom Conservancy
HUnit

HUnit

Hackage

Categories

Headless Browsers Supported

Categories

Unit Testing Supported

Integrations

Java Supported
3DBrowser Supported
Apache Maven Supported
Apache TomEE Supported
HTML Supported
JUnit Supported
JavaScript Supported
Jenkins Supported
Microsoft Dataverse Supported
Quarkus Supported
Selenium Supported
Selenium WebDriver Supported
Serenity BDD Supported
TestNG Supported
Togglz Supported
jQuery Supported

Integrations

Java Supported
3DBrowser Not Supported
Apache Maven Not Supported
Apache TomEE Not Supported
HTML Not Supported
JUnit Not Supported
JavaScript Not Supported
Jenkins Not Supported
Microsoft Dataverse Not Supported
Quarkus Not Supported
Selenium Not Supported
Selenium WebDriver Not Supported
Serenity BDD Not Supported
TestNG Not Supported
Togglz Not Supported
jQuery Not Supported
Claim HtmlUnit and update features and information
Claim HtmlUnit and update features and information
Claim JMockit and update features and information
Claim JMockit and update features and information