2,168 questions
5
votes
2
answers
274
views
Android Instrumentation test : Run button icon is not appearing for custom buildType & classes not getting resolved
I'm trying to run instrumentation tests but
Classes are not getting resolved, getting Cannot find declaration to go to
Run button icon is not appearing for @Test functions so not able to run tests
...
1
vote
0
answers
106
views
Trying to run a Journeys Test Suite results in com.android.tools.journeys.testengine.robo.platform.JourneyExecutionException
Sign out of Android Studio Otter 3
Kill and relaunch Android Studio
Sign into my account in Android Studio
Run a previously working Journeys test suite
Result:
com.android.tools.journeys.testengine....
0
votes
1
answer
143
views
Patrol Flutter integration tests show "0 tests ran" on BrowserStack but pass locally
I'm trying to run Patrol integration tests on BrowserStack, but test discovery fails with "0 tests ran" even though the same tests pass locally on an emulator.
Environment
Flutter 3.38.4
...
0
votes
0
answers
34
views
How to test Android app with Entra ID login (Espresso) and verify data saving on server?
I am developing an Android app that uses Microsoft Entra ID login for authentication.
After a successful login, the app fetches some user data and also allows saving additional data to the server.
I ...
0
votes
0
answers
37
views
Testing warm start deeplinks using ActivityScenario
I'm trying to switch from the deprecated ActivityTestRule to ActivityScenarioRule but facing an issue with some of the tests. I found out that I need to move from startActivity to ActivityScenario....
0
votes
0
answers
55
views
Jacoco report execution error for Android kotlin based project
I am trying to generate Jacoco report for Android kotlin based project. I am using Android Emulator for running androidTests and generate ec file for coverage. But facing following issue all the time.
...
1
vote
0
answers
42
views
How to test toast in Android Instrumented Test with Compose?
I want to write instrumented tests for Android UI's toasts. But it seems my codes are not working. It can't catch the toast when it's actually displayed on phone. I think possibly issue with my toast ...
2
votes
0
answers
166
views
java.lang.IllegalStateException: Expected `pm dump-profiles` stdout to be either black or saved to '/data/misc/profman/com.app.myapp-primary.prof.txt'
I am using a baseline profile for my app, and it works well when using a benchmark test for measuring performance, but when I try to run the baseline profile generator then it run the specified path ...
3
votes
1
answer
537
views
Execution Failed for Task :app:connectedDebugAndroidTest – Android Test Issue
I'm encountering a problem while running my Android instrumented tests, and after trying multiple solutions, I still haven't been able to resolve it.
Here's the error message I'm getting:
[Incubating] ...
1
vote
1
answer
161
views
Jetpack Compose test fails with "Compose did not get idle after 1610148 attempts" when running all tests together, but passes when run individually
I'm testing a DocumentCheckLoadingScreen composable using Jetpack Compose and Robolectric, and encountering a strange issue.
The test works perfectly fine while running in isolation, but fails with ...
0
votes
1
answer
174
views
kotlin.test.BeforeTest is not resolved
After updating Android libraries (including Kotlin) I found that @BeforeTest became unresolved (@Before is resolved, it belongs to org.junit).
import org.junit.Before
import org.junit.Test
import org....
0
votes
0
answers
54
views
InputConnection Support on Android 9+
I feel a little lost. I've created a subclass of TextureView which should support text input via keyboard. I've tested my code on physical device with Android 12 and Emulator and it works fine. But, ...
0
votes
1
answer
162
views
In which package are androidx.test.core.app.DeviceCapture.takeScreenshot or androidx.test.espresso.screenshot.captureToBitmap located
I'm trying to update my screenshot routine used in the instrumentation tests of multiple projects using the new suggested method. Which is, of course, more complicated then the pervious version.
There ...
0
votes
1
answer
195
views
java.lang.IllegalStateException: Cannot move to state "RESUMED" since the Activity has been destroyed already
I have updated my test cases dependencies from this to this(as given below in code snippet ), since then I am facing this error of java.lang.NullPointerException: Cannot run onActivity since Activity ...
0
votes
2
answers
77
views
Unable to Run Kaspresso Sample: Execution failed for task ':samples:kaspresso-sample:connectedDebugAndroidTest'
I am trying to run the official Kaspresso sample project from the GitHub repository: Kaspresso on GitHub. However, when I attempt to execute the sample tests, I encounter the following error:
...