The android-testing tag has no wiki summary.
2
votes
0answers
6 views
Android ActivityInstrumentationTestCase2 and testing activity state
I've been struggling with this issue for quite a while, after following android's offical documentation on how to perform unit testing on android projects I got to a point where I want to perform a ...
0
votes
0answers
14 views
Android testing in Android Studio using android-test-plugin
First of all I would like to declare my frustration for the lack of proper testing infrastructure in Android... or maybe I am retarded, I don't know...
I eventually managed to setup ...
0
votes
0answers
21 views
Passing String Array to A Robotium Class
I am automating a product using Robotium. In a module I have to validate the data derived.
For that I am using this code:
class sharefirstlevel {
public void A {
for(int ...
0
votes
0answers
28 views
Testing a fragment (Android), mocking getActivity() call
I want to test a Fragment with AndroidTest cases and Mockito (I am using mockito for other test cases).
I´ve done this before with my own code (coded in a different way) but in this case, I am ...
1
vote
1answer
25 views
Get the text of the textView selected using Robotium
I am automating a product using robotium. I need to do some dat validation kind of task there.
Scenario is like:
We click on a list, select some items in the list and do some operation.
I want to ...
0
votes
1answer
32 views
Allow unstable Android Gradle builds on Jenkins
Hi I have set up my Android project on Jenkins to provide CI. Its working well, running tests on a connected Android handset. The tests run on the Android Test Framework which extends jUnit3.
...
1
vote
0answers
32 views
How to run a test method or class as an Android Test in Android Studio
I am using Android Studio 0.2.4, but I assume this question can pertain to IntelliJ in general. My tests are under src/instrumentTest/java and all extend AndroidTestCase. When I run all the tests (say ...
0
votes
1answer
17 views
Unit Test Interaction Between Activity and Service
How can you test the interaction between an activity and a service?
For example, I have a service that manages the current music player play queue and an activity that displays the play queue to the ...
0
votes
0answers
9 views
ActivityInstrumentationTestCase2 getActivity() Never Returns
Whenever I run all the tests in my Android Test Project, one of my tests never completes. Using LogCat, I have narrowed the issue down to the getActivity() method. I also put Log.d() in ...
0
votes
2answers
28 views
Test that an Activity Started a Service
How do I test that my activity started a service with a particular intent?
My question is similar to Unit testing Activity.startService() call, but I ran into an action bar problem when I used ...
0
votes
1answer
23 views
Android UIAutomator how to tilt device
is there anyway to perform tilt action using uiautomator android? I looked at the uiautomatorAPI but i am unable to find any direct method.
0
votes
3answers
48 views
Installed test APK does not appear on device's main screen
I installed an instrumentation test APK from Eclipse(Run->Run As Android application) on device as the log shows below.
[2013-08-08 22:14:13 - SettingsTests] /SettingsTests/bin/SettingsTests.apk ...
0
votes
0answers
42 views
Monkeyrunner/Robotium touch the webview but cannot direct to new page
I've been using Robotium to test on several open source phonegap applications. Recently when I test for Wikipedia and TeamToy-Pocket. I find that Robotium would click on the webElement but will not ...
0
votes
3answers
56 views
How to build a JAR file using ant for uiautomator test project
I have been trying to get my head around using uiautomator and I understand creating the test cases. I tried the first two steps of building the JAR according the the Android developer guide for UI ...
0
votes
0answers
4 views
How to junit test a method that is trigged by BroadcastReceiver in Android
I have a Android app that I am creating some jUnit test on it.
But I have some issues regarding methods that is triggered by an intent coming from async taskes. How do I test them? Could I set up a ...