通过网络运行不及格的测试
fluncrunner的Python项目详细描述
fluncrunner通过web运行flunc测试(包含变量的twill脚本套件)。
api
=
有一个用于运行flunc测试的web api。
在请求正文中提供一组www form urlencoded
的key=value对。
例如::
post/basic戋u test/http/1.1
内容类型:application/x-www-form-urlencoded
username=lammy&password=testy&name戋of戋friend=bob
将执行如下命令::
flonc-d username=lammy,password=testy,name_of_friend=bob basic_test
默认值(来自测试对应的.conf)将在表单字段的预填充值中详细说明。
可在
/docs/devel_config.ini中找到
它实现了测试执行api
,并且需要一个配置:文件系统路径
指向可能运行的失败测试的目录。这相当于flunc在命令行上的-p选项:
[app:flunc]
use=egg:fluncrunner
search_path=%(此处)s/ftests/
方法:
[composite:main]
use=egg:fluncrunner request_method
post=flunc
不提供测试检查API的自动实现。
如果您有一个静态HTML表单目录,可以为您的flunc测试实现API
,您可能需要配置静态文件服务器来响应get请求:
[composite:main]
use=egg:fluncrunner request_method
post=flunc
get=static
[app:static]
use=egg:paste_static
document_root=%(此处)s/ftest_forms/
扩展名,
因此,如果您想提供没有*.html名称的不及格测试表单
您可能需要使用提供的“force_html”筛选工厂,该工厂将在所有响应上设置内容类型:text/html::
[app:static]
use=egg:paste-static
document_root=%(此处)s/ftest_forms/
filter with=force_html
[过滤器:force_html]
use=egg:fluncrunner force戋html
如果您没有从粘贴中提供fluncrunner,则可以在代码中配置此wsgi管道。你可以在fluncrunner的main.py中找到所需的wsgi工厂,` force_html.py`和'request_method.py`.
>生成不及格测试表单
===========
>这一节需要编写。
==
有http://bitbucket.org/ianb/twilljs/它执行简单的
twill脚本(没有变量,没有套件)
类似的api可以将flunc测试转换成twill脚本。
某种程度上比twill.js中的变量更友好。
这样写斜纹布。
api
=
有一个用于运行flunc测试的web api。
在请求正文中提供一组www form urlencoded
的key=value对。
例如::
post/basic戋u test/http/1.1
内容类型:application/x-www-form-urlencoded
username=lammy&password=testy&name戋of戋friend=bob
将执行如下命令::
flonc-d username=lammy,password=testy,name_of_friend=bob basic_test
默认值(来自测试对应的.conf)将在表单字段的预填充值中详细说明。
可在
/docs/devel_config.ini中找到
它实现了测试执行api
,并且需要一个配置:文件系统路径
指向可能运行的失败测试的目录。这相当于flunc在命令行上的-p选项:
[app:flunc]
use=egg:fluncrunner
search_path=%(此处)s/ftests/
方法:
[composite:main]
use=egg:fluncrunner request_method
post=flunc
不提供测试检查API的自动实现。
如果您有一个静态HTML表单目录,可以为您的flunc测试实现API
,您可能需要配置静态文件服务器来响应get请求:
[composite:main]
use=egg:fluncrunner request_method
post=flunc
get=static
[app:static]
use=egg:paste_static
document_root=%(此处)s/ftest_forms/
扩展名,
因此,如果您想提供没有*.html名称的不及格测试表单
您可能需要使用提供的“force_html”筛选工厂,该工厂将在所有响应上设置内容类型:text/html::
[app:static]
use=egg:paste-static
document_root=%(此处)s/ftest_forms/
filter with=force_html
[过滤器:force_html]
use=egg:fluncrunner force戋html
如果您没有从粘贴中提供fluncrunner,则可以在代码中配置此wsgi管道。你可以在fluncrunner的main.py中找到所需的wsgi工厂,` force_html.py`和'request_method.py`.
>生成不及格测试表单
===========
>这一节需要编写。
有http://bitbucket.org/ianb/twilljs/它执行简单的
twill脚本(没有变量,没有套件)
类似的api可以将flunc测试转换成twill脚本。
某种程度上比twill.js中的变量更友好。
这样写斜纹布。