推荐学习书目
› 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
zhizhongzhiwai
V2EX  ›  Python

基于浏览器的 python web 测试框架

  •  
  •   zhizhongzhiwai · Jun 24, 2015 · 3811 views
    This topic created in 4113 days ago, the information mentioned may be changed or developed.
    记得以前见过这么一个框架:
    import Test
    import web

    @test.api()
    class Handler(web.Handler):
    """
    :param username
    :param age
    """
    do_handler()

    ####

    然后我可以在浏览器里打开一个页面,该页面能展示出来Handler,并且Handler需要的参数等等, 我还可以在浏览器中输入username和age的参数,并且可以在这个页面直接访问handler。



    谁知道这样的功能叫什么名字?
    谢谢
    4 replies  •  2015-06-25 16:53:28 +08:00
    zzcflying
        1
    zzcflying  
       Jun 24, 2015
    selenium吗。
    loveuqian
        2
    loveuqian  
       Jun 24, 2015 via iPhone
    Handler是什么
    楼上的selenium应该完成你要的,还能自动输入数据
    zhizhongzhiwai
        3
    zhizhongzhiwai  
    OP
       Jun 25, 2015
    我们开发了一个web api服务器, 需要对api进行测试。
    以前我见过一个测试系统, 只要对api用修饰符修饰后,我们就可以在浏览器看到每个api提供的参数,参数描述等等。
    janxin
        4
    janxin  
       Jun 25, 2015
    @zhizhongzhiwai 没见过这么一套系统,不过实现倒是并不是太复杂,只是要考虑很多东西,只针对单套系统的话可以很快实现吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4803 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:32 · PVG 17:32 · LAX 02:32 · JFK 05:32
    ♥ Do have faith in what you're doing.