Skip to main content

WebRacer - a web crawler and web application testing library in Python

WebRacer started as a high level web application testing library, similar to twill but with a more comprehensive API. With time the client portion became sufficiently useful standalone.

Agent module

The agent module provides a browser level HTTP client. Besides the standard request/response functionality the agent module notably offers an easy to use form API.

Test case module

WebRacer provides a test case class that offers more convenient integration of the rest of WebRacer into unittest-based test suites.

Both intuitive to use and exhaustive

The goal of WebRacer is to expose HTTP and web-related functions in a manner that makes code for common tasks intuitive and concise, but does not compromise completeness. Phrased differently, WebRacer is meant to be suitable for all use cases involving driving or testing web applications rather than a certain predetermined subset of them.

WebRacer does not require the use of a framework. In fact, assertions that it provides are defined on the session class and may be used in web crawlers that do not employ unittest at all.

Documented and tested

WebRacer aims to eventually have 100% documentation and test coverage.

Scope

Currently WebRacer tests HTTP applications via actual HTTP.

Support for testing WSGI applications without running an HTTP server is planned.

The application being tested may be launched in another thread in the test process or may be external to the test/driver process.

Features

  • Multiple concurrent test sessions

  • Response assertions

  • Comprehensive form handling

Note: API is not yet stable.

Examples

The largest application using WebRacer at this time is Wolis.

Tests

Execute the test suite by running nosetests.

The test suite uses some nose features and will not work with unittest alone.

https://api.travis-ci.org/p/webracer.png

License

Released under the 2 clause BSD license.

Metadata

Release files for webracer 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for webracer 0.2.0
File Size Uploaded
webracer-0.2.0.tar.gz 18.5 kB Details

Release files / webracer-0.2.0.tar.gz

Download URL webracer-0.2.0.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3730d166488d9cc63a9fc3600b789c7ee30cf7d8732ca7d90e5d66f9629281b6
BLAKE2b-256 checksum
How to use checksums
f28e962179d0ac43779bbd4436f63a506bb0bc8c29cc93b1ee72e6953f1bd364
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page