GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||
GeezerVison is showing python.libhunt.com — Python Testing Crawler Alternatives - Python Testing | LibHunt Python Testing CrawlerA crawler for automated functional testing of a web application
Popularity
1.8
Growing
Activity
0.0
Stable
Stars
75
Watchers
3
Forks
5
Last Commit
Description
Python Testing Crawler is a crawler for automated functional testing of a web application
Programming language: Python
License: Mozilla Public License 2.0
Python Testing Crawler alternatives and similar packages
Based on the "Testing" category.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
Promo
www.saashub.com
* Code Quality Rankings and insights are calculated and provided by Lumnify.
Do you think we are missing an alternative of Python Testing Crawler or a related project? READMEPython Testing Crawler :snake: :stethoscope: :spider:A crawler for automated functional testing of a web application Crawling a server-side-rendered web application is a low cost way to get low quality test coverage of your JavaScript-light web application. If you have only partial test coverage of your routes, but still want to protect against silly mistakes, then this is for you. Features:
Works with the test clients for Flask (inc Flask-WebTest), Django and WebTest. Why should I use this?Here's an example: Flaskr, the Flask tutorial application has 166 lines of test code to achieve 100% test coverage. Using Python Testing Crawler in a similar way to the Usage example below, we can hit 73% with very little effort. Disclaimer: Of course! It's not the same quality or utility of testing! But it is better than no tests, a complement to hand-written unit or functional tests and a useful stopgap. Installation
UsageCreate a crawler using your framework's existing test client, tell it where to start and what rules to obey, then set it off:
This will crawl all anchor links to relative addresses beginning "/". Any exceptions encountered will be collected and presented at the end of the crawl. For more power see the Rules section below. If you need to authorise the client's session, e.g. login, then you should that before creating the Crawler. It is also a good idea to create enough data, via fixtures or otherwise, to expose enough endpoints. How do I setup a test client?It depends on your framework:
Crawler Options
RulesThe crawler has to be told what URLs to follow, what forms to post and what to ignore, using Rules. Rules are made of four parameters:
These are matched against every HTML element that the crawler encounters, with the last matching rule winning. Actions must be one of the following objects:
Example RulesFollow all local/relative links
Request but do not spider all links
This is useful for finding broken links. You can also check
Submit forms with GET or POST
Forms are submitted with their default values, unless overridden using Allow some routes to fail
If any HTTP error (400-599) is encountered for any request, allow it; do not error. Crawl GraphThe crawler builds up a graph of your web application. It can be interrogated via See [the graph module](python_testing_crawler/graph.py) for the defintion of HandlersTwo hooks points are provided. These operate on Whether to process a NodeUsing Whether a response is acceptableUsing If your function returns ExamplesThere are currently Flask and Django examples in [the tests](tests/). See https://github.com/python-testing-crawler/flaskr for an example of integrating into an existing application, using Flaskr, the Flask tutorial application.
Do not miss the trending, packages, news and articles with our weekly report.
Spin The Wheel Of Names
for a cryptographically secure random name picker.
Schedule a when to meet poll. | ||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |