findyou / htmltestrunnercn Goto Github PK
View Code? Open in Web Editor NEWRecord learning status
Record learning status
Traceback (most recent call last):
File "F:/RRD/Tech/10.android ui�Զ���/Android-UI -20190410����/runner.py", line 33, in
runner.run(suite())
File "C:\Python27\lib\HTMLTestRunner.py", line 573, in run
self.generateReport(test, result)
File "C:\Python27\lib\HTMLTestRunner.py", line 623, in generateReport
report = self._generate_report(result)
File "C:\Python27\lib\HTMLTestRunner.py", line 688, in _generate_report
self._generate_report_test(rows, cid, tid, n, t, o, e)
File "C:\Python27\lib\HTMLTestRunner.py", line 724, in _generate_report_test
ue = e.decode('utf-8')
File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd7 in position 68: invalid continuation byte
1.生成 HTMLTestRunner 报告后,无法显示用例中的 print 字符串;
2.报告中没有统计错误的case数据;
大神,你好 ,希望出一个python3 的版本,你的js python都不错嘛
请问能添加饼状图吗?原版有这个功能。
另外想问下,测试人员的名字怎样生成的?
File "xxxxx\HTMLTestReportCN.py", line 518, in addError
output = self.complete_output()
File "xxxxx\HTMLTestReportCN.py", line 492, in complete_output
return self.outputBuffer.getvalue()
AttributeError: '_TestResult' object has no attribute 'outputBuffer'
如果有使用离线美化的可选项就好了,简单一点也可以
** runner = HTMLTestReportCN(stream=f, title="自动化测试报告", description="用例执行情况")
TypeError: 'module' object is not callable**
利用pycharm和cmd命令测试test_HTMLTestReportCN.py文件,均无法生成报告。脚本里面也写了这个问题,能否解决一下?
已解决·
大神,又要麻烦你了啊。我现在在搞jenkins邮件发送,附件是可以发送的。但是我想把报告内容展示到正文
需求就是:把htmltestrunner用例嵌入到模板中 作为途中模板的 构建信息的一个item ,需要这样一个py工具,这个好实现吗,能否帮忙研究研究,多谢
jenkins 邮件模板 用
<title>${ENV, var="JOB_NAME"}-第${BUILD_NUMBER}次构建日志</title>(本邮件是程序自动下发的,请勿回复!) |
构建结果 - ${BUILD_STATUS} |
构建信息 |
|
Changes Since Last
Successful Build:
|
%c ",showPaths=true,changesFormat=" [%a]",pathFormat=" %p"} |
Failed Test Results
|
$FAILED_TESTS |
构建日志 (最后 100行):
|
<textarea cols="80" rows="30" readonly="readonly" style="font-family: Courier New">${BUILD_LOG, maxLines=100}</textarea> |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.