When to use TestCase, InstrumentationTestCase or AndroidTestCase

by Mihai Fonoage » Wed, 03 Mar 2010 02:39:48 GMT


Sponsored Links
 Hi navin,

would use ActivityInstrumentationTestCase2; for testing some part of
your activity in isolation you would use an InstrumentationTestCase;
for unit testing, if you use JUnit 4.x version, you just need to
annotate your class methods appropriately (don't need to extend/
implement anything).

I have some examples (and some additional details) of all this if it
helps:
 http://dtmilano.blogspot.com/2009/07/android-testing-on-android-platform_7528.html 
 http://mihaifonoage.blogspot.com/2010/01/unit-and-functional-testing-in-android.html 

Mihai Fonoage




--



When to use TestCase, InstrumentationTestCase or AndroidTestCase

by navin » Wed, 03 Mar 2010 18:23:31 GMT


 Hi Mihai,

Thanks for the post, it did helped. And also your post on the unit and
functional testing..that was very helpful. In any chance have you
developed any test case and included in CTS?? also if you can explain
something about AndroidTestCase class and why specifically use it when
we have the InstrumentationTestCase and
ActivityInstrumentationTestCase2...i want to include my test case in
CTS package and then compile the whole package..if you have any idea
regarding the same..please do reply.

Thanks.
Navin.





--


Sponsored Links


Other Threads

1. Froyo coming August 3rd to Evo - are you ready?

Google releases official numbers of version penetration every two weeks.

http://developer.android.com/resources/dashboard/platform-versions.html

On Wed, Aug 4, 2010 at 11:48 AM, Maps.Huge.Info (Maps API Guru) <



> 

2. Froyo coming August 3rd to Evo - are you ready?

This time it seems more official...

Same questions are still valid.

Are you ready?

-John Coryat

-- 

3. My Eclipse 3.5 always lag and have to force close - why?

4. I need Ivt_bluesoleil_6.4.314.3 activation key

5. how can we create 9-patch images.

6. Google map tiles missing with adb install

7. What is the URI for the Contacts content provider on Samsung phones? ActivityNotFoundException: