美味的功能测试。
alfajor的Python项目详细描述
美味的功能测试。
alfajor为 http资源。有了alfajor,您的python脚本和测试代码就有了一个live, 浏览器的x/html dom的同步镜像,即使在 客户端通过javascript。
Alfajor提供:
- A straightforward ‘browser’ object, with an implementation that communicates in real-time with live web browsers via Selenium and a fast, no-javascript implementation via an integrated WSGI gateway
- Use a specific browser, or, via integration with the ‘nose’ test runner, switch out the browser backend via a command line option to your tests. Firefox, Safari, WSGI- choose which you want on a run-by-run basis.
- Synchronized access to the page DOM via a rich dialect of lxml, with great time-saving shortcuts that make tests compact, readable and fun to write.
- Optional management of server processes under test, allowing them to transparently start and stop on demand as your tests run.
- An ‘apiclient’ with native JSON response support, useful for testing REST and web api implementations at a fine-grained level.
- A friendly BSD license.