include标记中的testNG.xml方法描述

时间:2016-08-12 07:44:46

标签: testng

我尝试在testng.xml中包含方法描述,如下所示。

<class name="com.RegressionSuite">
    <methods>
        <include name="AutTC00" **description="method desc"** />
    </methods>
</class>

并尝试使用XmlInclude的getDescription()方法检索

ISuite getTests()&gt; XmlTest getClasses()&gt; XmlClass getIncludedMethods()&gt; XmlInclude getDescription()

但是变为空。

请建议是否有可能?还是我错过了什么?

0 个答案:

没有答案
相关问题