美文网首页
httprunner 3.X (16)locust

httprunner 3.X (16)locust

作者: Sandra_liu | 来源:发表于2022-01-20 18:38 被阅读0次

    1、安装locust

    pip3 install locust
    

    2、检查locust是否安装成功

    locust --help
    

    3、执行locusts -f .\testcase,py,启动locust服务

     locusts -f .\backstage_plate_test.py       
    NOTICE: gevent monkey patches have been applied !!!
    No Path provided. Nothing to do 😴
    [2022-01-20 18:32:54,579] LAPTOP-5MV3FBCC/INFO/locust.main: Starting web interface at http://0.0.0.0:8089 (accepting connections from all network interfaces)
    [2022-01-20 18:32:54,588] LAPTOP-5MV3FBCC/INFO/locust.main: Starting Locust 2.5.1
    
    

    4、打开网址:http://localhost:8089/,配置并发用户数,每秒启动用户数,开始执行

    image.png
    5、查看测试结果
    image.png

    相关文章

      网友评论

          本文标题:httprunner 3.X (16)locust

          本文链接:https://www.haomeiwen.com/subject/fzxlhrtx.html