WebTest

Free Python based tool that will allow you to test your WSGI-based web applications
Download

WebTest Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Price:
  • FREE
  • Publisher Name:
  • Ian Bicking
  • Publisher web site:
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 30 KB

WebTest Tags


WebTest Description

Free Python based tool that will allow you to test your WSGI-based web applications WebTest helps you test any application that has a WSGI interface, including an application written in a framework that supports WSGI (which includes most actively developed Python web frameworks – almost anything that even nominally supports WSGI should be testable).With this you can test your web applications without starting an HTTP server, and without poking into the web framework shortcutting pieces of your application that need to be tested. The tests WebTest runs are entirely equivalent to how a WSGI HTTP server would call an application. By testing the full stack of your application, the WebTest testing model will sometimes be called an integration test, functional test, or acceptance test (though the latter two are not particularly good descriptions). This is in contrast to a unit test which tests a particular piece of functionality in your application. While complex programming tasks are often is suited to unit tests, template logic and simple web programming is often best done with functional tests; and regardless of the presence of unit tests, no testing strategy is complete without high-level tests to ensure the entire programming system works together.WebTest helps you create tests by providing a convenient interface to run WSGI applications and verify the output. What's New in This Release: Changed the __str__ of responses to make them more doctest friendly: · All headers are displayed capitalized, like Content-Type · Headers are sorted alphabetically · Changed __repr__ to only show the body length if the complete body is not shown (for short bodies the complete body is in the repr) · Note: these are backward incompatible changes if you are using doctest (you’ll have to update your doctests with the new format). · Fixed exception in the .delete method. · Added a content_type argument to app.post and app.put, which sets the Content-Type of the request. This is more convenient when testing REST APIs. · Skip links in ... tags (since that’s not real markup).


WebTest Related Software