HttpRunnerManager icon indicating copy to clipboard operation
HttpRunnerManager copied to clipboard

基于 HttpRunner 的 Web 测试平台,已停止维护。

Results 90 HttpRunnerManager issues
Sort by recently updated
recently updated
newest added

过程:执行完测试用例后,无法在在报告管理中查看报告,继而发现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)

![image](https://user-images.githubusercontent.com/12554051/57294190-75fa0d00-70f9-11e9-9564-d0cc57c7bb11.png) ERROR:django.request:Internal Server Error: /api/run_test/ Traceback (most recent call last): File "/usr/local/python/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner response = get_response(request) File "/usr/local/python/lib/python3.6/site-packages/django/core/handlers/base.py", line 128, in _get_response response = self.process_exception_by_middleware(e, request) File...

思路:利用uri的前缀来区分,如果是/api/则走老逻辑,如果是/admin/则跳过验签。 做法: 1、在process函数中,将/admin/也映射到ApiManager 2、装饰器login_check,利用request.path.split('/')[1]做个if判断

在extract中使用该函数取值 ${checkTime($response)} 在validate中验证返回值 equals 报错:httprunner.exceptions.ExtractFailure: Failed to extract data with regex! => ${checkTime($response)} debugtalk.py 自定义函数如下: def checkTime(response): request_time = int(time) result_json = json.loads(response.content) response_time = int(result_json['result']['data'][0]['unixtime']) return response_time if sort...

场景是这样的: 1、测试注册用户的时候,我要先删除那个注册的用户,确保此用户没有在环境中注册 2、调用数据库sql语句 看了setup_hooks,但是不是很理解sql语句放在那里,是不是要在debugtalk.py单独写一个操作db的方法delete_user()?在setup_hooks 调用这个$delete_user()达到目的?

需要将可能会有testreports表中,列reports的类型从longtext改为long blob,同时修改为utf8mb4,否则表情无法写

2019-01-10 14:28:11,099 [django.request:228] [log:log_response] [ERROR]- Internal Server Error: /api/run_test/ Traceback (most recent call last): File "D:\Program Files\Python36\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "D:\Program Files\Python36\lib\site-packages\django\core\handlers\base.py", line 126, in...

Microsoft Windows [版本 6.1.7601] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。 C:\Users\Administrator>d: D:\>cd httprunnermanager D:\HttpRunnerManager>python manage.py celery -A HttpRunnerManager worker --logle vel=info Traceback (most recent call last): File "manage.py", line 22, in...

2019-04-04 18:53:47,638 [django.request:118] [exception:handle_uncaught_exception] [ERROR]- Internal Server Error: /api/run_test/ Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py", line 35, in inner response = get_response(request) File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 128, in _get_response response...

Traceback (most recent call last): File "manage.py", line 22, in execute_from_command_line(sys.argv) File "/Users/user/anaconda3/envs/py36/lib/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line utility.execute() File "/Users/user/anaconda3/envs/py36/lib/python3.6/site-packages/django/core/management/__init__.py", line 365, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Users/user/anaconda3/envs/py36/lib/python3.6/site-packages/djcelery/management/commands/celery.py", line 21, in...