robotium Questions
7
I have decided that one of the testing criteria for my application tests with Google's Espresso is:
Test should maintain Activity state after screen orientation rotation
How do I rotate the s...
Inactivate asked 21/5, 2016 at 11:15
4
Solved
I have the following folder structure in Android Studio:
├── androidTest
│ ├── java
│ └── res
│ └── raw
│ └── test_file
└── main
├── java
└── res
└── raw
└── app_file
I'm trying t...
Interdisciplinary asked 24/8, 2015 at 16:29
3
Solved
My apps are mostly GUIs that communicate to a server for most of their information. If anything goes wrong it will usually be in the network call or making a wrong assumption about a JSON object.
U...
Connoisseur asked 22/5, 2013 at 15:57
5
Test running failed:
Permission Denial: starting instrumentation ComponentInfo{com.xxx.taskmanager.warehouse.tests/android.test.InstrumentationTestRunner} from pid=766, uid=766 not allowed becau...
Cherry asked 22/2, 2015 at 15:14
5
Solved
My problem seems little different than here Test run failed: Instrumentation run failed due to 'Process crashed.' when testing multiple Android activity
I have followed steps given in the p...
Ectoparasite asked 6/2, 2014 at 14:9
1
Solved
I have an activity displaying some text, for example "someText".
From this activity, I open an alert dialog box as follow:
AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
bui...
8
I tried starting a JUnit test (robotium) for my app:
public class MainTest extends ActivityInstrumentationTestCase2<MainActivity> {
private Solo solo;
public MainTest() {
super("nix.andr...
2
Solved
I am running robotium on a nexus 6 and getting the following error
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.fini...
7
Solved
I have multiple UI tests. When I run a single test, everything is OK. But if I run a batch of them (as a part of CI build) test fail, because tests that go first change the state of the application...
Pessimism asked 21/10, 2011 at 15:2
3
Solved
I am trying to test setting application using JunitTestcase.My class extends ActivityInstrumentationTestCase2. But while executing I am getting this error:
01-12 17:22:11.519: WARN/TestGrouping...
3
I'm trying to run some automated tests in Robotium. I have the following code in my application which sets up an options menu :
public boolean onCreateOptionsMenu(com.actionbarsherlock.view.Menu ...
Cheeseparing asked 13/4, 2013 at 21:51
4
Solved
I'm trying to run the tests with this line... but this launches all tests:
./gradlew -DconnectedAndroidTest.single=LandingActivityTests connectedAndroidTest
How can I launch a single test?
Hoban asked 25/7, 2014 at 8:34
3
I am black-box testing an application by using the Robotium framework.
The app under test send a notification in the status bar each time I install a new application.
I would like to click on that ...
Esau asked 16/12, 2012 at 19:42
0
I'm facing a big problem which I've been trying to solve for a few days. I am trying to run a test using robotium but when I call getActivity() on the setup method, a RuntimeException exception is ...
Goatfish asked 22/5, 2016 at 9:34
2
Solved
We have a few UI tests around our camera functionality, and after we made the switch from InstrumentationTestRunner to AndroidJUnitRunner as part of our move to Espresso/JUnit4, we can no longer ru...
Pyrognostics asked 16/6, 2015 at 19:6
1
Solved
waitForCondition() on the Solo class in Robotium uses a Sleeper object to sleep a thread in between checking for a condition. The Sleeper class has a PAUSE defined as 500 milliseconds. I want to lo...
3
Solved
In my android app I have multidexing enabled. The app runs fine on emulators. I am using robotium for testing the app. But when I execute instrumentation test cases, sometimes the test passes, but ...
Succotash asked 14/10, 2015 at 14:1
3
Solved
I have an Android project setup with its pure Java unit test project running on PC, and its functional/ integration test projects running on Emulator. Those two make use of InstrumentationTestCase2...
Jewelry asked 16/12, 2011 at 17:46
0
I use Espresso to test a lot of activities and transitions between them. I want to write different test for those activities and link the Activity Intents to the corresponding test cases.
1 . Acti...
Unnatural asked 21/8, 2015 at 3:23
2
Solved
When running my test suite in Android Studio, occasionally there will be an exception thrown from somewhere in my code (not in the test) which will cause the current test to fail (good because the ...
Sapsago asked 16/7, 2015 at 5:19
3
Anybody figured out the keyboard equivalent of this menu?
I have been using this menu on test cases infused with Robotium with class signatures like:
public class AccountTest extends ActivityI...
3
We got the app with Navigation Drawer from support.v4 library. We automating UI testing with Robotium and everything is ok, but Navigation Drawer can freeze randomly so some tests can fail randomly...
Photolithography asked 18/2, 2014 at 9:11
3
Solved
I have a Robotium test for an Android application, which extends ActivityInstrumentationTestCase2. The test operates on a loop, randomly clicking on active views. I would like to verify at the star...
Milldam asked 15/5, 2015 at 3:54
3
So I am using Robotium and my test class is extending the ActivityInstrumentationTestCase2 class. I have imported the v7 support library in my main project and also in the test project as libraries...
Redness asked 9/4, 2015 at 10:11
4
Solved
I'm using Jenkins for my Android continuous integration. I have some isolated, independent Robotium UI tests that currently take 12 minutes to run serially against a single emulator. Can anybody re...
Dari asked 20/7, 2014 at 0:51
1 Next >
© 2022 - 2024 — McMap. All rights reserved.