Pyramid Debug Toolbar Demo App
==============================
Demonstration application for the Pyramid debug toolbar.
Running the Demo
----------------
- Create a virtualenv::
$ virtualenv2.6 --no-site-packages /path/to/my/venv
Hereafter ``/path/to/my/venv`` will be referred to as $VENV in steps
below.
- Get a checkout of pyramid_debugtoolbar::
$ git clone git://github.com/Pylons/pyramid_debugtoolbar.git
- ``cd`` to the newly checked out pyramid_debugtoolbar package::
$ cd pyramid_debugtoolbar
- Run ``setup.py develop`` using the virtualenv's ``python`` command::
$ $VENV/bin/python setup.py develop
- While your working directory is still ``pyramid_debugtoolbar``, cd to the
``demo`` directory and run *its* ``setup.py develop``::
$ cd demo
$ $VENV/bin/python setup.py develop
- Start the demo application::
$ $VENV/bin/python demo.py
- Visit http://localhost:8080 in a browser to see the demo.
Running the Demo's Selenium Tests
---------------------------------
The ``pyramid_debugtoolbar`` demo application application serves as a target
for functional testing during the toolbar's development. A suite of Selenium
tests may be run against a local instance of the demonstration application.
It is wise to run these tests before submitting a patch. Here's how:
- Make sure you have a Java interpreter installed.
- Start the demo application as described above in "Running the Demo". Leave
the terminal window running this application open, and open another
terminal window to perform the below steps.
- Download `Selenium Server <http://seleniumhq.org/download/>` standalone jar
file.
- Run ``java -jar selenium-server-standalone-X.X.jar``. Success is defined
as seeing output on the console that ends like this::
01:49:06.105 INFO - Started SocketListener on 0.0.0.0:4444
01:49:06.105 INFO - Started org.openqa.jetty.jetty.Server@7d2a1e44
- Leave the terminal window in which the selenium server is now
running open, and open (yet) another terminal window.
- In the newest terminal window, cd to the ``pyramid_debugtoolbar/demo``
directory you created above in "Running the Demo"::
$ cd /path/to/my/pyramid_debugtoolbar/demo
- Run the tests::
$ $VENV/bin/python test.py
``$VENV`` is defined as it was in "Running the Demo" above.
- You will (hopefully) see Firefox pop up in a two-windowed
arrangement, and it will begin to display in quick succession the
loading of pages in the bottom window and some test output in the
top window. The tests will run for a minute or two.
- Test success means that the console window on which you ran
``test.py`` shows a bunch of dots, a test summary, then ``OK``. If
it shows a traceback, ``FAILED``, or anything other than a straight
line of dots, it means there was an error.
- Fix any errors by modifying your code or by modifying the tests to
expect the changes you've made.
- Note that as of this writing, Firefox 22 is broken for Selenium and can't be
used. Firefox 21 seems to work fine.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
PyPI 官网下载 | pyramid_debugtoolbar-4.4.tar.gz (189个子文件)
setup.cfg 490B
setup.cfg 67B
bootstrap.min.css 118KB
debugger.css 5KB
theme.bootstrap.min.css 4KB
dashboard.css 2KB
toolbar.css 1KB
toolbar_button.css 701B
request_vars.dbtmako 5KB
toolbar.dbtmako 3KB
exception.dbtmako 3KB
traceback.dbtmako 2KB
history_tab.dbtmako 2KB
sqlalchemy.dbtmako 2KB
performance.dbtmako 2KB
global_tab.dbtmako 1KB
settings_tab.dbtmako 1KB
introspection.dbtmako 1KB
sqlalchemy_select.dbtmako 978B
sqlalchemy_explain.dbtmako 921B
renderings.dbtmako 715B
redirect.dbtmako 642B
headers.dbtmako 607B
logger.dbtmako 534B
routes.dbtmako 464B
versions.dbtmako 421B
tweens.dbtmako 316B
settings.dbtmako 270B
exception_summary.dbtmako 68B
glyphicons-halflings-regular.eot 20KB
metro-loading.gif 673B
green-unsorted.gif 520B
green-header.gif 513B
loading.gif 416B
ice-asc.gif 285B
ice-desc.gif 285B
green-asc.gif 283B
green-desc.gif 283B
ice-unsorted.gif 180B
bg.gif 64B
white-unsorted.gif 54B
black-unsorted.gif 54B
desc.gif 54B
asc.gif 54B
black-desc.gif 49B
white-desc.gif 49B
white-asc.gif 48B
black-asc.gif 48B
.gitignore 14B
.gitignore 8B
MANIFEST.in 314B
tox.ini 2KB
error.jinja2 125B
jquery-1.7.2.min.js 93KB
jquery.min.js 91KB
jquery.tablesorter.widgets.min.js 65KB
jquery.tablesorter.min.js 56KB
bootstrap.min.js 36KB
eventsource.js 17KB
require-1.0.6.js 13KB
toolbar.js 7KB
debugger.js 6KB
jquery.cookie.js 2KB
main.js 199B
LICENSE 1KB
Makefile 3KB
index.mako 1KB
ajax.mako 583B
highorder.mako 247B
sqla.mako 205B
notfound.mako 191B
error.mako 140B
contributing.md 1KB
not-zip-safe 1B
not-zip-safe 1B
PKG-INFO 38KB
PKG-INFO 38KB
PKG-INFO 625B
exc.png 294KB
requestvars.png 240KB
settings.png 205KB
routes.png 177KB
renderings.png 166KB
toolbar-open.png 165KB
headers.png 165KB
introspection.png 151KB
performance.png 133KB
logging.png 126KB
sqla-explain.png 120KB
sqla.png 118KB
sqla-select.png 117KB
versions.png 113KB
toolbar-closed.png 105KB
tweens.png 85KB
redirect.png 83KB
pdtb.png 5KB
pyramid.png 5KB
tick-default.png 2KB
close_hover.png 1KB
close.png 1KB
共 189 条
- 1
- 2
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 关于数据分析工具的问题 (Excel、PowerBI-Tableau、R-Python)-教程案例分享.zip
- jqueryUI管理后台+WeiXinApp微信小程序+uni例子内容 参数例子,学习用
- 基于聚类分析分批训练的BP神经网络回归分析
- 计算机大类学生课程实验心得、案例-基于Python 的图像处理实验.zip
- CocosDashboard-v2.1.3-win-042311.exe
- vue3-admin-master-后台管理平台模板.zip
- 基于yolov5和deepsort算法的车辆检测项目源码+数据集(高分项目).zip
- 使用Python的requests库和BeautifulSoup库进行网页爬取的示例案例
- 蓝色个人主页接单HTML源码.zip
- 基于YOLOv5+Deepsort实现车辆行人追踪和计数(完整源码+说明文档+数据).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功