Skills:
lihuacai168 / anotherfasterrunner Goto Github PK
View Code? Open in Web Editor NEW接口自动化测试平台,基于HttpRunner+Python+Django+Vue
Home Page: https://fast.huacai.one
License: MIT License
接口自动化测试平台,基于HttpRunner+Python+Django+Vue
Home Page: https://fast.huacai.one
License: MIT License
Do you have any plan to upgrade httprunner to v4.x?
添加定时任务表达式不符合crontab 表达式规范,获取定时任务列表页报错500
定时运行的报告在测试平台的历史报告里面不会出现吗?
如果 1 条用例中包含了不同域名的接口,域名的 IP 地址也是不一样的,是不是不支持的?
描述问题
定时任务和和手动执行没有效果
重现步骤
重现行为的步骤:
期望的行为
想知道定时任务和异步执行的报告 是在报告列表中展现的么
版本和代码(请填写以下信息):
https://fast.huacai.one/fastrunner/login
i want to use docker to run project, but most of docker cannot download. Now i am in china, is that "wall" denied?
❯ docker pull fasterrunner_app:latest
Error response from daemon: pull access denied for fasterrunner_app, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
按照你的文档,部署失败,感觉部署这块能不能讲的详细一点,也因为部署特别熟悉这一块
Tracking issue for:
异步执行接口可以调用成功,但实际没执行,也没有任何报错
描述问题
清晰明确地描述这个问题是什么。
重现步骤
重现行为的步骤:
期望的行为
清晰明确地描述你期望发生的事情。
截图
如果适用的话,添加截图以帮助解释你的问题。
版本和代码(请填写以下信息):
其他相关信息
在此处添加任何与问题有关的其他上下文信息。
后端提示错误(文本):
2021-01-18 10:48:00 [ERROR] - Internal Server Error: /api/fastrunner/test/
Traceback (most recent call last):
File "D:\06 code\AnotherFasterRunner\fastrunner\utils\prepare.py", line 191, in generate_casestep
format_http = Format(test['newBody'])
KeyError: 'newBody'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\aqumon\Envs\my_env\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
response = get_response(request)
File "C:\Users\aqumon\Envs\my_env\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "C:\Users\aqumon\Envs\my_env\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Users\aqumon\Envs\my_env\lib\site-packages\django\views\decorators\csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "C:\Users\aqumon\Envs\my_env\lib\site-packages\rest_framework\viewsets.py", line 114, in view
return self.dispatch(request, *args, **kwargs)
File "C:\Users\aqumon\Envs\my_env\lib\site-packages\rest_framework\views.py", line 505, in dispatch
response = self.handle_exception(exc)
File "C:\Users\aqumon\Envs\my_env\lib\site-packages\rest_framework\views.py", line 465, in handle_exception
self.raise_uncaught_exception(exc)
File "C:\Users\aqumon\Envs\my_env\lib\site-packages\rest_framework\views.py", line 476, in raise_uncaught_exception
raise exc
File "C:\Users\aqumon\Envs\my_env\lib\site-packages\rest_framework\views.py", line 502, in dispatch
response = handler(request, *args, **kwargs)
File "C:\Users\aqumon\Envs\my_env\lib\site-packages\django\utils\decorators.py", line 45, in _wrapper
return bound_method(*args, **kwargs)
File "D:\06 code\AnotherFasterRunner\fastrunner\utils\decorator.py", line 24, in inner_wrapper
return func(request, *args, **kwargs)
File "D:\06 code\AnotherFasterRunner\fastrunner\views\suite.py", line 230, in post
prepare.generate_casestep(body, case, request.user.username)
File "D:\06 code\AnotherFasterRunner\fastrunner\utils\prepare.py", line 202, in generate_casestep
config = models.Config.objects.get(name=name)
File "C:\Users\aqumon\Envs\my_env\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "C:\Users\aqumon\Envs\my_env\lib\site-packages\django\db\models\query.py", line 408, in get
self.model._meta.object_name
fastrunner.models.Config.DoesNotExist: Config matching query does not exist.
2021-01-18 10:48:03 [ERROR] - "POST /api/fastrunner/test/ HTTP/1.1" 500 27
创建定时任务时,用例可以批量选择吗?比如按文件夹进行添加用例
第一步搭建环境劝退很多人,搭建文档好久也没更新了
django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
➜ ~ uname -a
Linux 10-42-35-55 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
➜ ~ docker -v
Docker version 19.03.2, build 6a30dfc
➜ ~ docker-compose -v
Docker Compose version v2.22.0
➜ AnotherFasterRunner git:(master) docker-compose -f docker-compose-for-fastup.yml --env-file .env.example up -d
WARN[0000] The "DJANGO_API_PORT" variable is not set. Defaulting to a blank string.
[+] Running 11/15
✘ app Error 24.3s
⠸ celery-worker Pulling 24.3s
✘ db Error 24.3s
✘ celery-beat Error 24.3s
⠸ mq 10 layers [⣿⣿⣦⣿⣿⣿⣿⣿⣿⣦] 42.57MB/60.57MB Pulling 24.3s
✔ 59bf1c3509f3 Pull complete 3.2s
✔ 237f3abe70c8 Pull complete 3.1s
⠦ 3d5e7f7d5ed8 Downloading [===================================> ] 32.4MB/46.16MB 6.6s
✔ 2c1c04e3aa30 Download complete 3.7s
✔ 02de786484eb Download complete 4.7s
✔ d1ddf3fc8b04 Download complete 4.4s
✔ 719f7f016b93 Download complete 4.9s
✔ c5c3324bd07e Download complete 5.3s
✔ 1854abf7e63e Download complete 5.4s
⠦ 544b62e61147 Downloading [===================================> ] 10.17MB/14.41MB 6.6s
mediaType in manifest should be 'application/vnd.docker.distribution.manifest.v2+json' not 'application/vnd.oci.image.manifest.v1+json'
C:\Users\admin\Desktop\AnotherFasterRunner>pip install -r requirements.txt
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\admin\Desktop\AnotherFasterRunner\venv\lib\site-packages\pip_internal\cli\base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
File "C:\Users\admin\Desktop\AnotherFasterRunner\venv\lib\site-packages\pip_internal\req\req_file.py", line 327, in parse
yield from self._parse_and_recurse(filename, constraint)
File "C:\Users\admin\Desktop\AnotherFasterRunner\venv\lib\site-packages\pip_internal\req\req_file.py", line 332, in _parse_and_recurse
for line in self._parse_file(filename, constraint):
File "C:\Users\admin\Desktop\AnotherFasterRunner\venv\lib\site-packages\pip_internal\req\req_file.py", line 363, in _parse_file
_, content = get_file_content(filename, self._session)
File "C:\Users\admin\Desktop\AnotherFasterRunner\venv\lib\site-packages\pip_internal\req\req_file.py", line 541, in get_file_content
content = auto_decode(f.read())
File "C:\Users\admin\Desktop\AnotherFasterRunner\venv\lib\site-packages\pip_internal\utils\encoding.py", line 34, in auto_decode
return data.decode(
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa1 in position 1311: illegal multibyte sequence
导入 yapi 接口数据时,post 请求中的 body 参数没有导入进来
版本和代码
anyjson
库时出现报错。$ pip install -r requirements.txt
...
Collecting anyjson
Downloading http://pypi.doubanio.com/packages/c3/4d/d4089e1a3dd25b46bebdb55a992b0797cff657b4477bc32ce28038fdecbc/anyjson-0.3.3.tar.gz (8.3 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in anyjson setup command: use_2to3 is invalid.
[end of output]
解决:参考地址
$ pip install "setuptools<58.0.0"
django-simpleui
库时出现报错。解决:添加 --upgrade
参数
$ pip install --upgrade django-simpleui
celery-worker、celery-beat两个镜像下载失败,其他镜像下载成功
docker-compose -f docker-compose-for-fastup.yml --env-file .env.example up -d
Pulling celery-worker (rikasai/fast-runner-backend:latest)...
latest: Pulling from rikasai/fast-runner-backend
ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries
描述问题
定时任务无法触发,定时任务后面的执行按钮执行也没效果,异步执行任务也没有生成报告
感觉这个平台挺不错的,想在公司内部落地,并基于它做二次开发。请问现在还在维护吗?
ERROR: metadata generation failed
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.