The test app should have its own R class, and its own context which should
allow you to access it.

On Wed, Aug 26, 2015 at 7:29 PM, Sebastian Roth <[email protected]>
wrote:

> Hi:
>
> Is it possible to access resources in src/androidTest/res/* (I'm
> interested in raw, but potentially others too) from within my *Test classes?
>
> For example, I'd like to take screenshot of my target activities view and
> compare it to a previously recorded picture.
>
> Android Studio will not show the file in auto-completion either.
>
> It is possible to copy the files to src/debug/res/raw/ but then they will
> be included in my debug builds, even if they clearly belong to the
> androidTest APK.
>
> Thank you!
> Sebastian
>
> --
> You received this message because you are subscribed to the Google Groups
> "adt-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to