run androidtest without installing apk in android studio

I want to run androidTest without installing the apk which is to be tested. Here are my tries:

  1. I use commandline to run android test.

    gradle clean
    gradle assembleDebugAndroidTest
    adb install -r app/build/outputs/apk/app-debug.apk
    adb shell am instrument -e mytestclass#mytestmethod -w my.test.pkg/

It works fine, but I can't bear that I must change mytestclass#mytestmethod everytime and I can't see the test report.

My goal is to test android app using robotium in the blackbox way.

Android         robotium        
Your Answer: 

0 Answers
Edit Account
Change Settings
Email Notifications Notifications will be sent to
Select option for your email notifications:
Mature / News Filter We'll send on email when new jobs are posted
Option 2 for email notification We'll send on email when new jobs are posted