???д??Junit???????
???????????? ???????[ 2013/11/21 15:15:53 ] ????????
import java.util.Date;
import org.junit.*;
public class testBase {
private static Calculator cal;
@BeforeClass
public static void beforeClass(){
System.out.println("BeforeClass");
cal = new Calculator();
}
@Before
public void before1(){
System.out.println(new Date());
}
@Before
public void before2(){
System.out.println("Before 2");
}
@Test
public void test1(){
System.out.println("Test 1");
Assert.assertEquals(2?? cal.add(1?? 1));
}
@Test
public void test2(){
System.out.println("Test 2");
Assert.assertTrue(1 == cal.minus(2?? 1));
}
@Test
@Ignore
public void test3(){
System.out.println("Test 3");
}
@After
public void after1(){
System.out.println(new Date());
}
@After
public void after2(){
System.out.println("After 2");
}
@AfterClass
public static void afterClass(){
System.out.println("AfterClass");
}
}
|
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????