aryaxt
aryaxt

Reputation: 77646

Android & Robotium - Writing automation tests?

I am using Robotium to write automation tests.

please provide as much details as possible.

Thanks

Upvotes: 0

Views: 645

Answers (1)

aryaxt
aryaxt

Reputation: 77646

  • I ended up writing 1 test per Activity.
  • I was wrong about this after every test robotium start the activity from scratch.
  • For application that require authentication I ended up adding numbers to my tests to make sure they run in the order I want them to.

Test1LoginActivity Test2SomeOtheractivity Test3LastActivity

This ensures that my LoginActivity gets called before anything else. This is probably not the best solution but it's the only solution I found.

Upvotes: 1

Related Questions