-
大小: 24KB文件类型: .py金币: 1下载: 0 次发布日期: 2021-06-14
- 语言: Python
- 标签: BSTestRunner python3
资源简介
python3+selenium2自动化测试需要用到的,可以在这里下载,下载后将该包直接拖到python3的安装目录的lib下面,即可在项目中引入
代码片段和文件信息
“““
A TestRunner for use with the Python unit testing framework. It generates a HTML report to show the result at a glance.
The simplest way to use this is to invoke its main method. E.g.
import unittest
import BSTestRunner
... define your tests ...
if __name__ == ‘__main__‘:
BSTestRunner.main()
For more customization options instantiates a BSTestRunner object.
BSTestRunner is a counterpart to unittest‘s TextTestRunner. E.g.
# output to a file
fp = file(‘my_report.html‘ ‘wb‘)
runner = BSTestRunner.BSTestRunner(
stream=fp
title=‘My unit test‘
description=‘This demonstrates the report output by BSTestRunner.‘
)
# Use an external stylesheet.
# See the Template_mixin class for more customizable options
runner.styleSHEET_TMPL = ‘nk rel=“stylesheet“ href=“my_stylesheet.css“ type=“text/css“>‘
# run the test
runner.run(my_test_suite)
------------------------------------------------------------------------
Copyright (c) 2004-2007 Wai Yip Tung
Copyright (c) 2016 Eason Han
All rights reserved.
Redistribution and use in source and binary forms with or without
modification are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name Wai Yip Tung nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS
IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED
TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL
EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
“““
__author__ = “Wai Yip Tung && Eason Han“
__version__ = “0.8.4“
“““
Change History
Version 0.8.3
* Modify html style using bootstrap3.
Version 0.8.3
* Prevent crash on class or module-level exceptions (Darren Wurf).
Version 0.8.2
* Show output inline instead of popup window (Viorel Lupu).
Version in 0.8.1
* Validated XHTML (Wolfgang Borgert).
* Added description of test classes and test cases.
Version in 0.8.0
* Define Templ
相关资源
- python3.dll——python3.5.2
- leveldb-windows-python3.6编译版
- python3+wxpython图书馆管理系统
- turtle库官方说明全译本python37
- 纯python3.5代码实现逻辑回归的二分类
- 纯python3.5实现多变量线性回归附数据
- Python3爬虫入门到精通课程视频附软件
- 续Python3.x+Pyqt5实现主窗体里QToolBox导航
- Python3.x+Pyqt5实现主窗体里的工具栏,
- Python3.x+Pyqt5实现界面左侧树形导航栏
- Python3.x+Pyqt5实现绘图界面MainWindow类型
- Python3.x+Pyqt5实现界面和逻辑分离案例
- 某网Python3.6电商实战VueDjango.zip
- python3程序开发指南(第二版)与课后
- python37_d.lib文件
- Python3爬虫-v2
- 基于Python3.6和Opencv3的活动轮廓模型
- python3 网络爬虫 多线程 无限爬网址
- python3实现sqlserver数据库和文件异地备
- python3.x实现智联招聘网站岗位信息爬
- HTMLTestRunner-基于python3-日志显示-截图
- 使用python3.6+sqlite3 创建数据库并实现
- python3 网络爬虫实战
- [gui]Tkinter编程(python3.2)源码
- Python3.X_HTMLTestRunner亲测可用,附说明
- python3实现国密SM3SM4
- python3使用tensorflow构建CNN卷积神经网络
- 用python实现2048小游戏
- keras .whl文件 用于python3
- 支持python3的HTMLtestrunner优化:带饼状
评论
共有 条评论