Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I got this error : ZeroDivisionError: division by zero , so that the report can't create #7

Open
1451297455 opened this issue Jul 8, 2019 · 1 comment

Comments

@1451297455
Copy link

2019-07-08 17:12:12,761 INFO 开始测试,用例数量总共3个,跳过0个,实际运行3个
2019-07-08 17:12:12,761 INFO Time Elapsed: 0:00:00.000198
Traceback (most recent call last):
File "/Users/user/app/interface/test-interfaces.git/WORK/AVN_Test/Sample.py", line 84, in
runner.run_test(report_title='接口自动化测试报告')
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/utx-0.0.7-py3.7.egg/utx/runner.py", line 222, in run_test
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/utx-0.0.7-py3.7.egg/utx/runner.py", line 118, in run
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/utx-0.0.7-py3.7.egg/utx/report/style_1.py", line 377, in build_report
ZeroDivisionError: division by zero

Process finished with exit code 1

@TestSmallWhite
Copy link

你的测试用例是不是没有“test_xxx”开头?如果没有test开头,unittest是会跳过的,跳过后就是0执行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants