include标记中的testNG.xml方法说明

include标记中的testNG.xml方法说明,testng,Testng,我尝试在testng.xml中包含方法描述,如下所示 <class name="com.RegressionSuite"> <methods> <include name="AutTC00" **description="method desc"** /> </methods> </class> 并尝试使用XmlInclude的getDescription()方法检索 ISuite getTests

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

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

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

ISuite getTests()>XmlTest GetClass()>XmlClass getIncludedMethods()>XmlInclude getDescription()

但是正在变为空


如果可能的话,请提出建议?还是我遗漏了什么

您可能发现了一个问题。我在这个项目上创建了一个新标签:您可能发现了一个问题。我在项目上创建了一个新票证: