问题描述
我想将name =“ loginFail”更改为name =“ XXX”,通过覆盖ITest接口的getTestName()方法无法正常工作,谢谢。
我想将name =“ loginFail”更改为name =“ XXX”,通过覆盖ITest接口的getTestName()方法无法正常工作,谢谢。
TestNG生成的TestNG JUnit报告:
poi-4.1.1.jar
TestNG该类实现ITest接口的代码:
<?xml version="1.0" encoding="UTF-8"?>
<testsuite hostname="macbook" failures="0" tests="2" name="com.ngtesting.autotest.test.login.TestLogin" time="0.005" errors="0" timestamp="2020-08-26T15:58:11 CST" skipped="0">
<testcase classname="com.ngtesting.autotest.test.login.TestLogin" name="loginFail" time="0.005"/>
<testcase classname="com.ngtesting.autotest.test.login.TestLogin" name="loginFail" time="0.000"/>
</testsuite>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)