而不是一个接口写一个 test 开头的方法

@allure.feature('注册')
@user2ize('realCode, realMessage, expeCode, expeMessage, testCaseName', ResultParam(0).value)
def test_register(realCode, realMessage, expeCode, expeMessage, testCaseName):
     assert realCode == expeCode
     assert realMessage == expeMessage
    logging.info(testCaseName)


@allure.feature('登录')
@user4ize('realCode, realMessage, expeCode, expeMessage, testCaseName', ResultParam(1).value)
def test_login(realCode, realMessage, expeCode, expeMessage, testCaseName):
     assert realCode == expeCode
     assert realMessage == expeMessage
     logging.info(testCaseName)


↙↙↙阅读原文可查看相关链接,并与作者交流