当前位置: 首页> 财经> 产业 > 怎么做游戏_上海市装修公司_seo推广是什么意思_石家庄百度seo排名

怎么做游戏_上海市装修公司_seo推广是什么意思_石家庄百度seo排名

时间:2025/8/12 11:25:47来源:https://blog.csdn.net/weixin_41665637/article/details/143325452 浏览次数:0次
怎么做游戏_上海市装修公司_seo推广是什么意思_石家庄百度seo排名

pytest脚本常用的执行命令

    • 一、一般执行的脚本,执行.py文件整个脚本
    • 二、执行.py文件脚本中的一个模块
    • 三、执行脚本,执行.py文件整个脚本,或则一个模块,查看对应的日志信息
      • 3.1.py文件执行allure的脚本
      • 3.2去dos框下去执行对应的脚本信息

一、一般执行的脚本,执行.py文件整个脚本

 pytest -vs D:\python_test\pythonProject\t2ests\tes22t_productGroup.py
pytest -vs  脚本的地址

在这里插入图片描述

二、执行.py文件脚本中的一个模块

 pytest -vs D:\python_test\pythonProject\t2ests\tes22t_productGroup.py -K  "test_create_tic"
pytest -vs  脚本的地址 -K "模块名"

在这里插入图片描述

三、执行脚本,执行.py文件整个脚本,或则一个模块,查看对应的日志信息

3.1.py文件执行allure的脚本

3.1 整个脚本执行allure命令
pytest -vs D:\python_test\pythonProject\tests\test_productGroup.py   --alluredir=allure_results3.21个脚本下的1个模块执行allure命令
pytest -vs D:\python_test\pythonProject\t2ests\tes22t_productGroup.py -K  "test_create_tic"  --alluredir=allure_resultspytest -vs 脚本地址 (-K  "test_create_tic" ) --alluredir=allure_results(allure_results是脚本名称,可以自己自定义) 如果要执行对应的模块就带-K,不执行就不带

在这里插入图片描述

3.2去dos框下去执行对应的脚本信息

allure serve D:\python_test\pythonProject\allure_results

在这里插入图片描述
在这里插入图片描述

关键字:怎么做游戏_上海市装修公司_seo推广是什么意思_石家庄百度seo排名

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: