meituan-dianping / lyrebird Goto Github PK
View Code? Open in Web Editor NEW移动应用插件化测试工作台
Home Page: https://meituan-dianping.github.io/lyrebird/
License: MIT License
移动应用插件化测试工作台
Home Page: https://meituan-dianping.github.io/lyrebird/
License: MIT License
使用2台电脑,一台作为mock服务器,可以mock,但是数据返回不完整,图片都加不出来,所以问一下是否支持PC端web的使用?
暂停捕获数据,只显示之前的数据。
再次点击暂停后恢复捕捉数据。
提供基于文件的mock数据管理方案和范例
想要修改请求参数可以支持吗?
目前有计划加入自动化测试,但是只能修改响应参数,不能修改请求参数
Is your feature request related to a problem? Please describe.
数据管理界面切换到新一条数据时。详情展示页tab跳回到request。
Describe the solution you'd like
希望tab页维持现在位置。有助于连续的数据操作。
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Describe the bug
Traceback (most recent call last):
File "/Users/yurree/.lyrebird/tools/venv/lib/python3.7/site-packages/werkzeug/serving.py", line 302, in run_wsgi
execute(self.server.app)
File "/Users/yurree/.lyrebird/tools/venv/lib/python3.7/site-packages/werkzeug/serving.py", line 290, in execute
application_iter = app(environ, start_response)
File "/Users/yurree/.lyrebird/tools/venv/lib/python3.7/site-packages/flask/app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "/Users/yurree/.lyrebird/tools/venv/lib/python3.7/site-packages/flask_socketio/init.py", line 44, in call
start_response)
File "/Users/yurree/.lyrebird/tools/venv/lib/python3.7/site-packages/engineio/middleware.py", line 59, in call
return self.engineio_app.handle_request(environ, start_response)
File "/Users/yurree/.lyrebird/tools/venv/lib/python3.7/site-packages/socketio/server.py", line 428, in handle_request
return self.eio.handle_request(environ, start_response)
File "/Users/yurree/.lyrebird/tools/venv/lib/python3.7/site-packages/engineio/server.py", line 337, in handle_request
socket = self._get_socket(sid)
File "/Users/yurree/.lyrebird/tools/venv/lib/python3.7/site-packages/engineio/server.py", line 521, in _get_socket
raise KeyError('Session is disconnected')
KeyError: 'Session is disconnected'
To Reproduce
Steps to reproduce the behavior:
根据外部数据识别报警是否属于已知问题
增加copy数据操作。支持copy到另一指定组
version: 1.4.0
steps:
预期:修改Response后,数据可保存
实际:保存的数据为JsonPath
增加搜索栏,用于搜索mock数据
我是想,这个mitmproxy 可以支持部署到window10 或mac 系统硬件下的么(不是手机ios android wp这种系统设备下)?
部署后,可以支持代理捕获 windows或mac下 客户端程序的请求么?
如果 支持 该怎么配置 配置后lyrebird界面是否可以正常操作
增加命令行和配置开关,支持设置是否记录事件到DB。默认值是True(记录)。
Mock数据列表页提示冲突的过滤条件
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
将request中的url携带参数以可读性更高方式展示 @zhaoye
更新生成器模板
生成基于vue的插件项目
Describe the bug
录制mock数据时,新建数据组第一次保存不成功
To Reproduce
Steps to reproduce the behavior:
Expected behavior
数据保存于新建数据组中
Desktop (please complete the following information):
Describe the bug
IOS 上打开“泰然金融”APP,无法展示“转让专区”的数据(接口访问失败)。
To Reproduce
Expected behavior
转让专区的转让数据可以正常展示。
Screenshots
Lyrebird 控制台报错信息:
[2019-03-27 11:27:29,818] ERROR in app: Exception on /mock/http://::ffff:180.163.26.112/mmcrhead/oY4BHYs3iav1iaF215sYzJE7JickqzLY5G5ync5lLTJqiaZH9ZQfoO9az7pEphvoY9mdvz3ChbdsBOJLfuvmN93BAvVyJLEC31E3/0 [GET]
Traceback (most recent call last):
File "d:\program\python37-32\lib\site-packages\flask\app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "d:\program\python37-32\lib\site-packages\flask\app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "d:\program\python37-32\lib\site-packages\flask_restful\__init__.py", line 269, in error_router
return original_handler(e)
File "d:\program\python37-32\lib\site-packages\flask\app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "d:\program\python37-32\lib\site-packages\flask\_compat.py", line 35, in reraise
raise value
File "d:\program\python37-32\lib\site-packages\flask\app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "d:\program\python37-32\lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "d:\program\python37-32\lib\site-packages\lyrebird\mock\blueprints\api_mock.py", line 25, in index
req_context = HandlerContext(request, path)
File "d:\program\python37-32\lib\site-packages\lyrebird\mock\handlers\handler_context.py", line 40, in __init__
self._parse_request()
File "d:\program\python37-32\lib\site-packages\lyrebird\mock\handlers\handler_context.py", line 47, in _parse_request
request_info = self._read_origin_request_info_from_url()
File "d:\program\python37-32\lib\site-packages\lyrebird\mock\handlers\handler_context.py", line 84, in _read_origin_request_info_from_url
port=parsed_path.port if parsed_path.port else '80',
File "d:\program\python37-32\lib\urllib\parse.py", line 169, in port
port = int(port, 10)
ValueError: invalid literal for int() with base 10: ':ffff:180.163.26.112'
Smartphone:
lyrebird
IP 10.200.4.26
MOCK.PORT 9090
PROXY.PORT 4272
VERSION 1.6.0
Additional context
其他APP,如:LinkedIn、铜板街、唯品会 也会加载超时。
hello 我根据help 已经部署启动了lyrebird
我本机是ubuntu18.04 用的公司无线wifi dhcp获得IP 手机是连接的公司同一wifi
mitmproxy start on ×××.×××.×××.×××:4272 请在被测设备上设置代理服务器地址
设置小米手机代理
https://jingyan.baidu.com/article/1974b2895cb780f4b1f774b5.html
被测设备上用浏览器打开 http://mitm.it 选择Android 提示下载pem.crt
从手机的 下载管理 里 看 是下载失败的
这是下载管理中 点击重新下载后的 日志
DEBUG - [connectionpool] - Starting new HTTP connection (1): api.tw06.xlmc.sec.miui.com:80 DEBUG - [connectionpool] - http://api.tw06.xlmc.sec.miui.com:80 "POST /api/configure/get HTTP/1.1" 200 None INFO - [mock_server] - 200 proxy POST http://api.tw06.xlmc.sec.miui.com/api/configure/get INFO - [mock_server] - 200 GET http://localhost:9090/api/flow INFO - [proxy_flow] - https://stats.jpush.cn/v2/report INFO - [proxy_flow] - Redirect-> http://localhost:9090/mock/https://stats.jpush.cn/v2/report DEBUG - [connectionpool] - Starting new HTTPS connection (1): stats.jpush.cn:443 DEBUG - [connectionpool] - https://stats.jpush.cn:443 "POST /v2/report HTTP/1.1" 200 None INFO - [mock_server] - 200 proxy POST https://stats.jpush.cn/v2/report INFO - [mock_server] - 200 GET http://localhost:9090/api/flow INFO - [proxy_flow] - https://stats.jpush.cn/v2/report INFO - [proxy_flow] - Redirect-> http://localhost:9090/mock/https://stats.jpush.cn/v2/report DEBUG - [connectionpool] - Starting new HTTPS connection (1): stats.jpush.cn:443 DEBUG - [connectionpool] - https://stats.jpush.cn:443 "POST /v2/report HTTP/1.1" 200 None INFO - [mock_server] - 200 proxy POST https://stats.jpush.cn/v2/report INFO - [mock_server] - 200 GET http://localhost:9090/api/flow
dataManager里面到保存按钮点击不会有提示,另外有时候点击mock数据会保存不成功
Describe the bug
修改接口正则匹配规则,再次发起请求,没有生效
To Reproduce
Steps to reproduce the behavior:
Expected behavior
匹配规则生效
开发者你好:
我brew安装和下载ZIP两种方式安装,都只能看到标题中的两个模块,版本号为0.10.5。请问是什么情况?
谢谢
https://docs.mitmproxy.org/stable/concepts-protocols/
https 和tcp协议是否支持 若要支持 如何配置
Describe the bug
新建一组 Mock 数据并保存,激活对应数据组,该数据组包含的接口 Mock 失败,状态为 Proxy
To Reproduce
Steps to reproduce the behavior:
Expected behavior
接口成功被 Mock 返回
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
页面左上角点红色和黑色录制按钮鼠标放上去都是Record提示,看是否可以优化下,在不同情况下显示不同都提示
你好,假如 app的api是需要翻墙访问的, 我将MAC机 安装了lyrebird , 然后MAC机使用SS 全局翻墙, app api 无法正常访问,请问lyrebird如何配置二次代理.
录制脚本没有回放功能,感觉手册不太完善
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
adb devices下可以看到手机,就是网页上看不到手机
下拉选择需要点x才能清空之前的搜索状态。选择操作起来比较复杂。
Traceback (most recent call last):
File "c:\programdata\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\programdata\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\Scripts\lyrebird.exe\__main__.py", line 9, in <module>
File "c:\programdata\anaconda3\lib\site-packages\lyrebird\manager.py", line 219, in run
fire.Fire(CommandLine, 'v start')
File "c:\programdata\anaconda3\lib\site-packages\fire\core.py", line 127, in Fire
component_trace = _Fire(component, args, context, name)
File "c:\programdata\anaconda3\lib\site-packages\fire\core.py", line 366, in _Fire
component, remaining_args)
File "c:\programdata\anaconda3\lib\site-packages\fire\core.py", line 542, in _CallCallable
result = fn(*varargs, **kwargs)
File "c:\programdata\anaconda3\lib\site-packages\lyrebird\manager.py", line 159, in __init__
self.server = Server()
File "c:\programdata\anaconda3\lib\site-packages\lyrebird\manager.py", line 48, in __init__
init_logger_settings()
File "c:\programdata\anaconda3\lib\site-packages\lyrebird\mock\logger_helper.py", line 42, in init_logger_settings
disable_existing_loggers=False)
File "c:\programdata\anaconda3\lib\logging\config.py", line 84, in fileConfig
handlers = _install_handlers(cp, formatters)
File "c:\programdata\anaconda3\lib\logging\config.py", line 147, in _install_handlers
args = eval(args, vars(logging))
File "<string>", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
看起来像是没有对windows目录进行转义
我已经正常访问android界面 看到实时日志 和 截图screen shot真机界面了 为什么lyrebird v的日志会不时的 出现该句错误
ERROR - [device_service] - No libimobiledevice program found, See README Help Center
Describe the bug
在Config中修改配置,重启后仍变回原来的配置
Desktop (please complete the following information):
Finish in #128
iOS手机上访问网址 https://m.trc.com ,期望能正常打开,实际显示空白页。
已尝试的方案:
1、桌面版mitmproxy(exe安装包)可以正常访问 该网站
2、mitmdump -s addons.py命令启动自己编写addons.py , 也可以正常访问 该网址
3、windows 和 mac 都出现如上同样问题
调试现象:
访问该地址,请求没有进入 api_mock.py接口内。
version: 1.4.0
steps:
看了开发者大会上的文档,感觉高大上的一个工具!但是,不会用。自己研究了一下,还是不会用!
所以还请描述一下如何使用.Thanks!
Inspector 改进JSON展示方式,支持默认折叠
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.