詹金斯魅力的失败

时间:2020-10-14 15:57:19

标签: python xml jenkins allure locust

这是我提供给我的简单XML文件:

<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="performance tests" failures="5">
            <testcase classname="performance_tests" name="---ON START---LOGIN" time="14">
                <Name>---ON START---LOGIN</Name> 
                <Request_Count>65</Request_Count>
                <Min_Response_Time>14</Min_Response_Time>
                <failure message="xxx"></failure>
            </testcase></testsuite>

例如,如果没有<failure message>标记,则该测试用例不会失败。

我的应用程序使用纯python(不是BDD)编写,因此魅力看不到任何assertsErrors等。

它已经通过locust.io进行了测试-locust提供了正确解析的XML文件以吸引人。

当我放置此<failure message>时,魅力向我展示了红色的情况,但我不知道哪个测试用例应具有此标记。我的意思是,即使没有测试用例,也没有标记-诱惑力将其显示为通过/绿色。

对此有什么解决方法吗?

0 个答案:

没有答案