There are three options you can look at: Robotium , Scirocco, and Robolectric .
I found that they are useful for basic operations, as long as you explicitly indicate what should happen and what to click, etc. I canβt say if they can send SMS messages using the built-in SMS application, itβs likely you will need to somehow create this automation or even send SMS messages through an emulator .
source share