mirror of https://gitee.com/a529548204/apitest.git
21 lines
822 B
Python
21 lines
822 B
Python
# coding:utf-8
|
|
"""
|
|
@author: 井松
|
|
@contact: 529548204@qq.com
|
|
@file: test_function.py
|
|
@time: 2021/10/8 15:02
|
|
"""
|
|
from test_suite.page.saasApp.saasApp_pages import *
|
|
# from test_suite.page.third_pages import *
|
|
paramData = ini_yaml("functionData.yml")
|
|
# thirdData = ini_yaml("thirdData.yml")
|
|
|
|
class Test_function(object):
|
|
@allure.story("Test_functionList")
|
|
@pytest.mark.parametrize('casedata', paramData["functionList"], ids=[i["info"] for i in paramData["functionList"]])
|
|
@pytest.mark.flaky(reruns=1, reruns_delay=1)
|
|
@pytest.mark.run(order=1)
|
|
def test_functionList(self, setup_login, casedata):
|
|
casedata["headers"]["Authorization"] = "JWT " + setup_login["data"]["token"]
|
|
res, restime = functionList(casedata)
|
|
asserting(hope_res=casedata["assert"], real_res=res, re_time=restime) |