Monday, April 24, 2017

Android App Testing (Espresso)

Anatomy of UI testing.

steps:
1.Find an view
2.Perform an action
3.Inspect the result

what is Espresso testing?
It is an automatic UI testing wherein jUnit testing user will be not able to view UI
follow android testing codelabs


Main difference between the Service and Intent service are
1.Service does not create a separate worker thread for a request
2.Service always runs on main GUI thread if you do a long running operations onOnStartCommond method or Oncreate app may leads to ANR
3. It is used to handle the multiple request at a time
4. Need to create a seprate thread to perform long running operation
5.We always call a method selfStop/stopService to stop service


If the service is startService than service is running indefinitely even if the activity started destroyed

If the service is bindService than service will be auto destroyed by killing the activity

0 comments:

Post a Comment