摘要:
package com.course.testng.suite; import org.testng.annotations.Test; public class DepenTest { @Test public void test1(){ System.out.println("test1 run"); throw new Runtime...
閱讀全文
摘要:
package com.course.testng.suite; import org.testng.annotations.Test; public class ExpectedExeption { /* 什么時候回應(yīng)道異常測試????? 在我們期望結(jié)果為某一個異常的時候 比如:我們傳入不合法的參數(shù),程序拋出了異常 也就是說我的預(yù)期結(jié)果就是這個異常 */ // 測試是吧的異常測試 @Test(e
閱讀全文
摘要:
package com.course.testng.groups; import org.testng.annotations.Test; @Test(groups = "stu") public class GroupsOneClass1 { public void student1(){ System.out.println("Class中的student1運行................
閱讀全文
摘要:
package com.course.testng.groups; import org.testng.annotations.AfterGroups; import org.testng.annotations.BeforeGroups; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test;
閱讀全文
摘要:
package com.course.testng.suite; import org.testng.annotations.Test; public class IgnoreTest { @Test public void ignore1(){ System.out.println("ignore 1 執(zhí)行"); } @Test(enabl...
閱讀全文
摘要:
<?xml version="1.0" encoding="utf-8" ?> <suite name="test"> <test name="login"> <classes> <class name="com.course.testng.suite.SuiteConfig"/> <class name="com.course.testng.suite.LoginTest"/> </classe
閱讀全文
摘要:
package com.course.testng; import org.testng.annotations.*; public class BasicAnnotation { @Test //最基本的注解,用來把方法標記為測試的一部分 public void testCase1(){ System.out.println("這個測試用例1"); } @Test public void tes
閱讀全文
摘要:
package com.course.testng; import org.testng.annotations.*; public class BasicAnnotation { @Test //最基本的注解,用來把方法標記為測試的一部分 public void testCase1(){ System.out.println("這個測試用例1"); } @Test public void tes
閱讀全文
摘要:
1、在ider里創(chuàng)建一個Module 2、直接點擊下一步 3、輸入Groupld h和Artifactid名稱,點擊下一步 4、點擊Finish 創(chuàng)建完成
閱讀全文