Android Code Coverage for Blackbox Test
???????????? ???????[ 2012/11/21 9:48:18 ] ????????
???????????к????????android???л????в?????????????????????????????????share?Щ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????ν????????????????????????????? ???????????Щ???????leader????????в??????????????????????а?????????
???????????????????б??????????(???????????)
???????????android SDK??ant1.8.2??jdk1.6??eclipse android???? Android SDK??????
?????????????? Path??sdk tools·??
????Ant1.8.2??????????????????? Ant??ant????bin????е?·?? Java1.6???????? JAVA_HOME: C:Program FilesJava……
????2.???eclipse check out?μ?汾source???????????????????????????汾????????????? ?????eclipse???潨??????????????google?? ?????ò???????????????′???
????public class (??????)extends ActivityInstrumentationTestCase2
????{ private mActivity;
????private Instrumentation mInstrumentation;
?????????? { super("test package name"?? Activity class name); }
????protected void setUp() throws Exception {
????super.setUp();
????mInstrumentation = getInstrumentation();
????mActivity = this.getActivity(); }
????protected void tearDown() throws Exception {
????super.tearDown(); }
????public void testdemo1() throws InterruptedException {
????Thread.sleep(30000);//??????е???? ??λ???? }}
???????????????????service?????android????????service????extends???????ɡ??????????????????????????SDK Doc?? 3.???????????????????????
????A.????????????build.xmlcd android update project --path <??>???????????????????????????????????build.xml??
????B.??????????????build.xmlandroid update test-project -m -p C.???CoverageCd Ant coverage????????????????????????????濴?????coverage??????С?????????????????report???
???????1.????????????????г???@override error?????????jdk?汾?????1.6????????????·??????????????
????2.????????????г???not found symbols?????????????????????????lib????lib????????????????libs?????漴??3.??????emma.jar????????????????sdk??4.????report?????л?????????????. ???У???????б?????д???????????У?????????????д????????б???У?????????б??????д????????С???????????????????д????????????????????????е? 16 ?????????
??????
???·???
??????????????????
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