首页 > 编程语言 >Python - allure 报告使用汇总

Python - allure 报告使用汇总

时间:2023-03-10 14:47:51浏览次数:33  
标签:报告 Python 汇总 生成 allure result generate

使用 pytest 做自动化测试过程中,关于 allure 报告的使用方法汇总

python allure 包使用


allure 命令行工具

生成测试报告不启动服务

$ allure generate {allure_result}

# -o 指定生成报告目录
# --clean 在生成新的 Allure 报告目录之前,清除该目录
$ allure generate {allure_result} -o {allure_report} --clean

启动服务,展示报告。

$ allure open {allure-report}

生成测试报告并启动服务,在网页上展示。相当于自动 generate + open

$ allure serve {result_path}

标签:报告,Python,汇总,生成,allure,result,generate
From: https://www.cnblogs.com/abeelan/p/17203286.html

相关文章

  • Python - else 语法总结
    else使用汇总。问题阅读别人代码,有点疑惑,精简后如下:defcode_example(arg=None):foriinrange(5):ifarg:breakelse:pr......
  • Python - 连接数据库
    python连接数据库操作pymysqlimportpymysqldefget_connect():connect=pymysql.connect( host="xxx.com",port=3306,user="test",......
  • Python - pandas 数据处理
    数据处理pandas数据读取pd.read_csv:csv/tsv/txt用逗号、tab分隔的纯文本文件pd.read_excel::微软xls或者xlsx文件pd.read_sql:mysql关系型数据库pd.rea......
  • Python -gdb 查看程序堆栈详情
    MacPython3.7https://www.modb.pro/db/454999安装#搜索仓库$brewsearchgdb#安装$brewinstallgdbError:[email protected]:thebottleneedstheAppleCom......
  • Python - 项目包管理 requirements
    python项目中的依赖库,可以创建一个requirements.txt文件来管理。allure-pytest=2.12.0pytest=7.2.0pytest-rerunfailures=10.3pytest-sugar=0.9.6#安装$pipinst......
  • Python - 获取调用者的函数名称
    def_is_page(self,locator):"""判断是否到达指定页面"""caller_name=traceback.extract_stack()[-2][2]is_page=self.ele_actions(locator).exists()......
  • Python - Crypto 导入失败问题解决记录
    python3.7Mac安装psycopg2$pipinstallpsycopg2...Error:pg_configexecutablenotfound....出现报错:Error:pg_configexecutablenotfound.解决参考:h......
  • Python - pip 报错记录
    #安装包出现错误$pipinstall-rrequirements.txt-ihttp://pypi.douban.com/simple/ERROR:Couldnotfindaversionthatsatisfiestherequirementpbr(from......
  • python 提取csv内容脚本
    目录python提取csv内容脚本python提取csv内容脚本提取csv的内容脚本,这里只是提取了单个csv文件的内容,也没有写入新的文件,也没有把数据处理成json,临时模版,比较简陋,方便......
  • Python gdal读取MODIS遥感影像并结合质量控制QC波段掩膜数据
      本文介绍基于Python中GDAL模块,实现MODIS遥感影像数据的读取、计算,并基于质量控制QC波段进行图像掩膜的方法。  前期的文章PythonGDAL读取栅格数据并基于质量评估波......