mjaskowski
mjaskowski

Reputation: 1489

How to automatically test that applications behaves like expected with regard to other activities?

I have an application that launches an activity right after a call ends. I would like to write an automatic test that makes sure that:

I had a look on Robotium and Roboelectric frameworks but couldn't really find an answer if it is at all doable.

Upvotes: 6

Views: 344

Answers (1)

Arun
Arun

Reputation: 1668

I hope you can achieve this by following methods:

  1. There is a tool called monkey runner and its open source which helps to record the test cases. You can use a actual physical device to automate the test cases.
  2. This is a very simple manner you can give a try. you can put log statements in all the life cycles of your activity, i mean in onCreate, onStart, onStop, onResume, onRestart, onDestroy.... this will help you to know whether your activity is in foreground or background or whether it is launched successfully. You have to check the logcat output for these. I hope this will help you

Upvotes: 3

Related Questions