推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
Ctry
V2EX  ›  Python

Python 测试 RPC 接口的问题

  •  
  •   Ctry · Aug 9, 2019 via iPhone · 4160 views
    This topic created in 2649 days ago, the information mentioned may be changed or developed.
    各位大佬,有没有推荐好用的,用来测试、调用后台 RPC 接口的 python 库?求推荐。
    8 replies  •  2019-10-14 16:41:07 +08:00
    zjuhwc
    zjuhwc
    Aug 9, 2019 via iPhone
    1
    requests
    2DaYe
    2DaYe
    Aug 9, 2019
    2
    后台是啥 RPC 啊
    gRPC 和 thrift 都有对应的 python 库
    ipwx
    ipwx
    Aug 9, 2019 via Android
    3
    httpretty 用来测试 http 服务
    Ctry
    Ctry
    OP
    Aug 9, 2019 via iPhone
    4
    @2DaYe 目前用的是 dubbo,这个框架有 python 库吗?
    Ctry
    Ctry
    OP
    Aug 9, 2019 via iPhone
    5
    @zjuhwc 这个只能测试 restful 接口吧?
    rubycedar
    rubycedar
    Aug 9, 2019
    6
    gRPC 好用
    bantianys
    bantianys
    Aug 24, 2019
    7
    dubbo 是 java 的。如果是做功能测试,可以单独写一个 dubbo 转 http 的工具,然后用 python 去调这个工具的 http 接口。
    或者用 jmeter 的 dubbo sampler 插件,在 jmeter 的测试脚本配置好每个接口的调用,然后用 python 去调 jmeter。
    Ctry
    Ctry
    OP
    Oct 14, 2019
    8
    @bantianys 好的。感谢大佬提供思路,我来实践一下。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4241 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 09:33 · PVG 17:33 · LAX 01:33 · JFK 04:33
    ♥ Do have faith in what you're doing.