• HttprunnerManager-接口自动化api详细资料


    1. 教程地址:https://testerhome.com/topics/12151

    2. git地址:https://github.com/HttpRunner/HttpRunnerManager

    3. 详细教程地址:https://sutune.me/2018/08/05/httprunner/

    安装时遇到的问题:

    1. mysql 尽量安装5.7版本,高版本会遇到强密码问题

    Mac卸载mysql的方法:

    sudo rm -rf /var/db/receipts/com.mysql.*
    最后这条很多文章都丢了,切记切记。
    这个文章看了太多了,一百度全是,坑死了,不过还是找到了可以干净写在mysql的方法,不说了直接上代码:
    sudo rm -rf /Library/StartupItems/MySQLCOM
    sudo rm -rf /Library/PreferencePanes/My*
    rm -rf ~/Library/PreferencePanes/My*
    sudo rm -rf /Library/Receipts/mysql*
    sudo rm -rf /Library/Receipts/MySQL*
    sudo rm -rf /var/db/receipts/com.m
    sudo vim /etc/hostconfig
     
    2. rabbitmq安装:
    rabbitmq地址: /usr/local/Cellar/rabbitmq/3.7.15
    启动命令: sbin/rabbitmq-server
    rabbitmq安装:https://www.jianshu.com/p/860a9a675fe6 账号guest 密码guest
     
    rabbitmq后台启动以及关闭
    ./rabbitmq-server -detached
    或者
    sudo rabbitmqctl start_app
    此时如果rabbitmq-server stop会无法停止,报节点已经启动
    需用   rabbitmqctl  stop_app 停止erlang上的node
    查看是否启动成功
    rabbitmq-server status
     

    报错及解决方法:

    1. RuntimeError: cryptography is required for sha256_password or caching_sha2_password
    cd /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/db/backends/mysql
    启动mysql解决:
    mysqladmin -u root -p password root123
     
    2. 报错: [2019-05-27 18:12:29,393: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 61] Connection refused.
    解决方法 : 启动rabbitmq
     
    3. 解决报告不显示问题: 启动worker
    解决方法: 启动worker:python manage.py celery -A HttpRunnerManager worker --loglevel=info #启动worker
     
    4. 启动celery时报错: AttributeError: module 'tornado.web' has no attribute 'asynchronous'
    解决办法:tornado降级回到5.1.1
    执行命令: pip3 install tornado==5.1.1
     
  • 相关阅读:
    在SQLite中使用索引优化查询速度
    SQLite支持的SQL数据操作
    left (outer) join , right (outer) join, full (outer) join, (inner) join, cross join 区别
    深入理解Android内存管理原理(六)
    Merge Sorted Array
    Sort Colors
    Construct Binary Tree from Preorder and Inorder Traversal
    Binary Tree Postorder Traversal
    Symmetric Tree
    Rotate Image
  • 原文地址:https://www.cnblogs.com/summerxye/p/10975318.html
Copyright © 2020-2023  润新知