Run ActivityInstrumentationTestCase2 sub class programatically
<p>I have few testcases in the sub-class of ActivityInstrumentationTestCase2. When i run them using adb shell am instrument -w .... it works and launches my target activity. But as I have to launch the test on getting some broadcast I need to launch it programmatically, but I don't know how to do that.
Pls help</p>
