簡單說明:
測試代碼中在需要測試的方法前加上注釋符,例如:
package com.yiban.test;
public class test2 {
@Parameters({ "first-name" }) //參數
@Test(groups={"g1","g2"}) //組名
public void test001() throws Exception {
System.out.println("test001");
}
}
Xml文件的寫法:
簡單說明:
測試代碼中在需要測試的方法前加上注釋符,例如:
package com.yiban.test;
public class test2 {
@Parameters({ "first-name" }) //參數
@Test(groups={"g1","g2"}) //組名
public void test001() throws Exception {
System.out.println("test001");
}
}
Xml文件的寫法: