美团点评技术沙龙06 - 滴滴移动端测试解耦工具实践
Post on 13-Apr-2017
485 views
TRANSCRIPT
?
•
•
•
• !!!!!!
docker
• APP
•
•
•
APP
客户端 pusher API业务
客户端 pusher API业务
模式1
模式3
模式2 Http
回调
下发
TCP 下发
客户端 API业务
Tcp
mock
APP Mock server
API server
http
http
APP Mock server
Web ui cli
API server
push
httpmock
Push mock push
l
mock
l l HTTP
l Proxy http
l Server l Record request response
l TCP l proxy tcp tcp didipush
l Server memcache
l
cli web restful api
• 协议处理:负责server部分,接收数据包,协议解码、编码、并发能力
• 规则模块:负责内部规则存储与匹配
• 交互模块:web展现,命令行和API接口
• 工具给予golang语言编写
http mock
mock
Push
APP
Mock
APP case
mock
1 2 mock 3 mock mock 4
case
1 2 case mock 3 case mock api 4 case
mock
Mock API
• • •
• • •
case • UI
mock
• •
• •
• • • •
• • • case
• • • •
• Case • case
• case
• • • Case •
• •