Xavier you are right - I was simply using the wrong package-name for the R 
class. 
Using "com.company.test.R" did the trick.
Thank you.

On Thursday, August 27, 2015 at 12:50:36 PM UTC+8, Xavier Ducrohet wrote:
>
> 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] 
> <javascript:>> 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.

Reply via email to