Hi Ann,
You have the email test application Manifest file right?
And also u have the package name and class name of your email app.
Add this line in ur manifest file
<instrumentation android:targetPackage="com.android.email"
android:name="android.test.InstrumentationTestRunner" />
And also mention the package and class name in ur email test app,.
Here is how i do it.
public class Email_Test extends ActivityInstrumentationTestCase2{
private Solo solo;
// my email app Class Name
private static final String LAUNCHER_ACTIVITY_FULL_CLASSNAME =
"com.android.email.activity.Welcome";
private static Class<?> launcherActivityClass;
static{
try{
launcherActivityClass =
Class.forName(LAUNCHER_ACTIVITY_FULL_CLASSNAME);
}
catch (ClassNotFoundException e){
throw new RuntimeException(e);
}
}
@SuppressWarnings("unchecked")
public Email_Test() {
super("com.android.email",launcherActivityClass);
}
@Override
protected void setUp() throws Exception {
Log.i(TAG_STEP," 1.Launch Email application");
super.setUp();
solo = new Solo(getInstrumentation(), getActivity());
}
}
Hope this helps
Br