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