How to use MediaMuxerTest (a AndroidTestCase file)
Asked Answered
T

1

1

I find demo for MeediaMuxer, which is a AndroidTestCase File. Here is the link.

I never used Android Test. I did some research, but most of them are somehow a little complex... It seems like that I need a xml file, a java file for TestSuite and a java file for AndroidTestCase. And now I have the AndroidTestCase, could anyone tell me how to write the TestSuite? Thank you!

Trisoctahedron answered 2/1, 2014 at 7:47 Comment(0)
A
1

From TestSuit overview

A TestSuite is a Composite of Tests. It runs a collection of test cases. Here is an example using the dynamic test definition.

 TestSuite suite= new TestSuite();
 suite.addTest(new MathTest("testAdd"));
 suite.addTest(new MathTest("testDivideByZero"));

Android provide a pretty good documentation for that, tell me if you have more questions after reading it.

Also here is the official article about testing in Android.

Androus answered 2/1, 2014 at 7:59 Comment(1)
Thank you Babibu! I've read the file. So I should create a new Test project with eclipse, and put the AndroidTestCase file in that project. Right?Trisoctahedron

© 2022 - 2024 — McMap. All rights reserved.