如何在Intellij Idea中创建TestNG.xml
这是我的测试代码
target: node
我尝试通过以下链接创建TestNG.xml
TestNG with IntelliJ IDEA: How to use the testng.xml file in IntelliJ IDEA 9
有人可以向我解释如何创建TestNG.xml
我不知道我必须在套件字段和程序包名称中插入什么来手动创建它。
下面是用于目录浏览的图像,没有包
答案 0 :(得分:2)
这是您的项目的示例XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite">
<test thread-count="5" name="Test">
<classes>
<class name="java.mas1"/>
</classes>
</test> <!-- Test -->
</suite> <!-- Suite -->
答案 1 :(得分:0)