码迷,mamicode.com
首页 > 其他好文 > 详细

allure定制报告

时间:2020-02-04 09:13:11      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:mod   time   utf-8   stc   repo   描述   def   模块   定制   

Feature: 标注主要功能模块

Story: 标注Features功能模块下的分支功能

Severity: 标注测试用例的重要级别

Step: 标注测试用例的重要步骤

Issue和TestCase: 标注Issue、Case,可加入URL

 

 

# -*- coding: utf-8 -*-

# @Time    : 2018/8/17 上午10:10

# @Author  : WangJuan

# @File    : test_case.py

import allure

import pytest

 

 

@allure.feature(‘test_module_01‘)

def test_case_01():

    """

    用例描述:Test case 01

    """

    assert 0

@allure.feature(‘test_module_02‘)

def test_case_02():

    """

    用例描述:Test case 02

    """

    assert 0 == 0   

if __name__ == ‘__main__‘:

    pytest.main([‘-s‘, ‘-q‘, ‘--alluredir‘, ‘./report/xml‘])

 

技术图片

 

allure定制报告

标签:mod   time   utf-8   stc   repo   描述   def   模块   定制   

原文地址:https://www.cnblogs.com/wenshu/p/12258055.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!