自动化测试
candy_tse_1
这个作者很懒,什么都没留下…
展开
-
httprunner踩坑-pycharm执行hrun命令报错:TypeError:argument of type 'NoneType' is not iterable
错误描述:在pycharm上hrun xxx.yml报错如下:错误原因:电脑上装了几个版本的python,pycharm上指向的python没有安装好httprunner环境解决方案:1.把pycharm指向已装好httprunner环境的pythonFile->settings->Project Interpreter2.用pycharm指向的pyth...原创 2020-03-02 14:27:01 · 1875 阅读 · 0 评论 -
httprunner学习1-环境搭建
环境配置:centos7python3.6mysql5.7django2环境搭建前准备:先找到系统的python安装在哪个目录,查看对应版本号和相关安装包cd / 先回到根目录whereis python 查看python所在目录/usr/bincd /usr/bin 切到python目录ll python* 查看python开头的相关文件详情yum安装依赖>...原创 2020-02-25 01:22:55 · 374 阅读 · 0 评论 -
httprunner踩坑-执行python manage.py makemigrations --empty yourappname后报Unknown command:'migrations'
错误描述:执行python manage.py makemigrations --emptyyourappname后报Unknown command:'migrations'错误原因:因为手欠卸载了django解决方案:重新安装django后再执行命令 python manage.py migrationspip install django...原创 2020-02-24 17:07:23 · 1510 阅读 · 0 评论 -
httprunner踩坑-执行python manage.py makemigration报No changes detected
在settings.py修改数据库配置后,执行python manage.py makemigrations报错如下:执行python manage.py makemigrations --emptyyourappname后报Unknown command:'migrations'原创 2020-02-24 17:02:54 · 610 阅读 · 0 评论 -
nohup 输出脚本含义
nohup 输出脚本含义/dev/null 表示空设备文件 0 表示 stdin 标准输入 1 表示 stdout 标准输出 2 表示 stderr 标准错误> file 表示将标准输出输出到 file 中,也就相当于 1>file2> error 表示将错误输出到 error 文件中2>&1 也就表示将错误重定向到标准输出上2>...原创 2019-10-15 12:21:03 · 197 阅读 · 0 评论 -
YAML快速入门
最近在学习httprunner,测试用例采用YAML/JSON的形式描述,由于首次接触YAML,在运行YAML文件的用例时,经常报错。因此,通过网上资料学习了YAML语法格式。功能YAML的语法和其他高级语言类似,并且可以简单表达清单、散列表,标量等数据形态。它使用空白符号缩进和大量依赖外观的特色,特别适合用来表达或编辑数据结构、各种配置文件、倾印调试内容、文件大纲(例如:许多...转载 2019-10-15 12:09:22 · 182 阅读 · 0 评论