Skip to content Skip to sidebar Skip to footer
Showing posts with the label Android Testing

Onchildview And Hassiblings With Espresso

I am trying to access a button from a specific view. The same view is displayed 6 times. This is th… Read more Onchildview And Hassiblings With Espresso

Robotium And Jenkins Ui Testing Errors

I first ran into this problem when trying to run Robotium UI tests on a MacOS Mini with no monitor.… Read more Robotium And Jenkins Ui Testing Errors

Getactionbar() Works Fine On Devices/simulator But Returns Null In Testcases

Application supports minSdk=14 and have ActionBar on every Activity. Application works fine since a… Read more Getactionbar() Works Fine On Devices/simulator But Returns Null In Testcases

Android Testing: Inflate And Display A Custom Toast From Instrumentation

I am trying to display a custom Toast but doing so from my automated test rather than from the appl… Read more Android Testing: Inflate And Display A Custom Toast From Instrumentation

Espresso - How To Click On A Random Recyclerview Item?

There are a few posts that show how can you click a certain fixed item in the RecyclerView with Esp… Read more Espresso - How To Click On A Random Recyclerview Item?

Sdk Path Not Specified

Steps I did Downloaded Runner JAR and Client JAR from Square Copied spoon-client-1.1.2.jar to the … Read more Sdk Path Not Specified

Android Integration Test Application Permissions

I'm looking a way to get current device's serial number in my integration tests. Now, when … Read more Android Integration Test Application Permissions

Classcastexception Exception When Running Robolectric Test With Power Mock On Multiple Files

So I set up the power mock based on the reference guide here. It all seems to run perfectly fine wi… Read more Classcastexception Exception When Running Robolectric Test With Power Mock On Multiple Files

How To Run Uiautomator Tests In To Multiple Devices?

I am trying to Uiautomator android Ui tests in a .bat file. but i could not able them run parallell… Read more How To Run Uiautomator Tests In To Multiple Devices?

Simpletestcursor Robolectric 3.0-- Compilation Issue

I am trying to test the cursor in my app. But for the following import I get the error message-- ca… Read more Simpletestcursor Robolectric 3.0-- Compilation Issue

Test That App Launches Another App In Android

I have a very simple activity, that redirects the user to the app's Play Store page, when the b… Read more Test That App Launches Another App In Android

How Can I Swap Test Doubles At The Scope Of An Activity Or A Fragment Using Dagger 2?

EDIT: Watch out! I have deleted the old repository reffered to in this question. See my own answer … Read more How Can I Swap Test Doubles At The Scope Of An Activity Or A Fragment Using Dagger 2?

Test Run Failed: Instrumentation Run Failed Due To 'java.lang.classnotfoundexception'

This is my first time setting up an Android test project to test a Android project. I've creat… Read more Test Run Failed: Instrumentation Run Failed Due To 'java.lang.classnotfoundexception'

Android Tests Exception In Constructor Noclassdeffounderror

After solving my issues with project structure and android tests it appears that another issue is c… Read more Android Tests Exception In Constructor Noclassdeffounderror

How To Test Saving And Restoring State Of An Android Activity With Espresso?

Is there a way of testing the save and restore state code of an activity programmatically ? I mean … Read more How To Test Saving And Restoring State Of An Android Activity With Espresso?

Access External Files (outside Of Avd Device) Using Android Junit

I am using Robotium to automate Android application. Created a android test project for the same. I… Read more Access External Files (outside Of Avd Device) Using Android Junit

Robolectric 3.0 Testing Vibrator Service

I am in process of migrating my test cases to latest Robolectric 3.0. To test the viberator service… Read more Robolectric 3.0 Testing Vibrator Service

Android Testing Java.lang.noclassdeffounderror Error Due To Fest-android

I'm currently implementing Fest for Android into my project but I seem to be running into a dep… Read more Android Testing Java.lang.noclassdeffounderror Error Due To Fest-android

How To Get Text From Textview Using Espresso

I want get text string shown in a textview in LinearLayout. can espresso do that? If not, is there … Read more How To Get Text From Textview Using Espresso