one way to start testcase is,
adb shell am instrument
-w com.google.vishal.test/android.test.InstrumentationTestRunner
i want to start this using Android code (with intent)
for example,
adb shell am start -n com.google.android.contacts/.ContactsActivity
we can run using Android intent by following method :-
Intent intent = new Intent(com.google.android.contacts, ContactsActivity.class);
startActivity(intent);
But, how to run
adb shell am instrument
-w com.google.vishal.test/android.test.InstrumentationTestRunner
by Android intent ?
Thanks for your help in advance :-)