Average Ratings 0 Ratings
Average Ratings 0 Ratings
Description
HtmlUnit serves as a "GUI-less browser for Java applications," designed to model HTML documents while providing an API for interactions with web pages, such as loading pages, submitting forms, and following links, which mirrors the functionality of a traditional web browser. Its JavaScript support is notably robust and continues to evolve, allowing it to effectively manage complex AJAX scenarios, and it can mimic various browsers like Chrome, Firefox, or Edge based on the chosen settings. While primarily aimed at testing or data extraction from websites, HtmlUnit is not a standalone unit testing framework; instead, it functions within larger testing frameworks like JUnit or TestNG to replicate browser behavior. This tool serves as the foundation for many open-source applications, including WebDriver, Arquillian Drone, and Serenity BDD, and is widely adopted by numerous projects focused on automated web testing, such as Apache Shiro, Apache Struts, and Quarkus. Its ability to operate without a graphical user interface makes it particularly valuable for developers seeking to automate browser interactions in a more efficient and resource-friendly manner.
Description
The toolkit is available as a collection of resources distributed through the Maven Central repository. It necessitates Java version 7 or higher to run tests, which must be executed using either JUnit or TestNG. For guidance on incorporating the library into a Java project, refer to the section on Running tests with JMockit. This tutorial explores the various APIs offered by the library, illustrated through example tests that utilize Java 8. The primary API consists of a singular annotation that facilitates the automatic creation and setup of the objects intended for testing. Additionally, there exists the mocking API, commonly referred to as the "Expectations" API, which is designed for tests that engage with mocked dependencies. Furthermore, a compact faking API, known as the "Mockups" API, is provided for generating and utilizing fake implementations, thereby mitigating the full resource demands of external components. Overall, this toolkit enhances testing efficiency by streamlining the setup process and providing versatile mocking capabilities.
API Access
Has API
API Access
Has API
Integrations
Java
3DBrowser
Apache Maven
Apache TomEE
HTML
JUnit
JavaScript
Jenkins
Microsoft Dataverse
Quarkus
Integrations
Java
3DBrowser
Apache Maven
Apache TomEE
HTML
JUnit
JavaScript
Jenkins
Microsoft Dataverse
Quarkus
Pricing Details
Free
Free Trial
Free Version
Pricing Details
Free
Free Trial
Free Version
Deployment
Web-Based
On-Premises
iPhone App
iPad App
Android App
Windows
Mac
Linux
Chromebook
Deployment
Web-Based
On-Premises
iPhone App
iPad App
Android App
Windows
Mac
Linux
Chromebook
Customer Support
Business Hours
Live Rep (24/7)
Online Support
Customer Support
Business Hours
Live Rep (24/7)
Online Support
Types of Training
Training Docs
Webinars
Live Training (Online)
In Person
Types of Training
Training Docs
Webinars
Live Training (Online)
In Person
Vendor Details
Company Name
HtmlUnit
Country
United States
Website
htmlunit.sourceforge.io
Vendor Details
Company Name
JMockit
Website
jmockit.github.io