Creating android test project for Robotium (series)
In this post, we will start to create our first Android Test Project, which we will use for Robotiumautomation.
In this post we will also discuss about
ActivityInstrumentationTestcase2
Initializing ActivityInstrumentationTestcase2
Referencing android project with AUT
ActivityInstrumentationTestcase2
This class provides functional testing of a single activity. The activity under test will be created using the system infrastructure (by calling InstrumentationTestCase.launchActivity()) and you will then be able to manipulate your Activity directly.
Other options supported by this test case include:
You can run any test method on the UI thread (see UiThreadTest).
This class replaces ActivityInstrumentationTestCase, which is deprecated. New tests should be written using this base class.
You can watch the complete discuss in the video below
Thanks for reading the post and watching the video !!!
Please leave your comments and let me know if there is anything I should update in this post.
Thanks,
Karthik KK