HttpRunnerManager icon indicating copy to clipboard operation
HttpRunnerManager copied to clipboard

执行测试后,report没有落库,导致无法查看报告,尝试修复了下~~

Open Verckolf opened this issue 6 years ago • 2 comments

过程:执行完测试用例后,无法在在报告管理中查看报告,继而发现DB中没有记录该报告,继而发现作者在函数run中没有调用函数add_test_reports 尝试添加该函数后,可以落库并且查看报告,目前没有发现其他引入的问题~~~~~

文件/apimanager/views.py 函数run_test report_name = kwargs.get('report_name', None) add_test_reports(runner, report_name=report_name)

Verckolf avatar Apr 29 '19 08:04 Verckolf

可以详细点吗

zhongdaoyou avatar May 09 '19 17:05 zhongdaoyou

作者没有把执行用例生成测试报告添加进测试报告列表里,我猜原因是正式执行时才需要添加,不然报告列表里会出现大量调试的测试报告吧

shanxizhiying avatar May 22 '19 01:05 shanxizhiying