|
什么原因啊?帮忙解答...
test.java
package bao;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
public class NewTest {
@Test
@Parameters({"text"})
public void f(String[] text) {
System.out.println("测试");
System.out.println(text);
}
}
testng.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite">
<test name="Test" preserve-order="true">
<class name="testTest"/>
<parameter name="text" value="工程师"/>
</test>
</suite> |
|