?????????????????????
???????????? ???????[ 2013/8/15 16:55:41 ] ????????
??????????????????????????????????????????????·????????????????а?????
???????磺
????T?????????????
????T001????tt001.java(abc??abd????????)
????T002????tt002.java
??????????????飺??tt002???????tt001????????
?????·1?? ?????????????class?????????????static???????import?????new?????壬??????????
Import T001.tt001;
Class tt002{
tt001 t01=new tt001();
//????tt001????????????????
t01.abc();
}
?????·2?? ??????????????????????.???????????磺
Import T001.tt001;
Class tt002{
tt001.abc()
}
?????·3???ü?У?????????????????????Σ????磺
public class abc_public extends Login{
public static void main(String[] agrs){
abc_public p=new abc_public ();
//???????????????Login????????????????????????
p.setUp();
p.testLogin();
}
}
?????·4??????maven?????pom???(?????о?)
?????????????·???????????junit?????????selenium????junitд?????????????????
?????????Test001Test.class??Test002Test.class??????????????????
?·5??????junit????????
???????????????????????????£?
????A. ??????????????????????????
????B. ??????org.junit.RunWith
??????org.junit.runners.Suite.SuiteClasses?????????????
????C. ??org.junit.runners.Suite??????????????RunWith?У??????Junit???????ò?????????
????D. ????????????????????????????????????SuiteClasses?????
????E. ?????????????public???Σ???????????????????κβ??????????
??????????????£?
package com.selenium1;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import com.selenium1.junit.Test001Test;
import com.selenium1.junit.Test002Test;
@RunWith(Suite.class)
@Suite.SuiteClasses({Test001Test.class??Test002Test.class})
public class RunAllTest {
}
?????????Test001Test.class??Test002Test.class??????????????????
??????
???·???
??????????????????
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