Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
47 views

I am trying to run very basic Android instrumented test, but it fails with: Caused by: org.gradle.api.GradleException: There were failing tests. See the report at: file:///Users/someuser/projects/...
Konrad's user avatar
  • 1
1 vote
0 answers
29 views

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 ...
jaynampan's user avatar
0 votes
0 answers
35 views

I created a working android app using a flutter inAppWebView. Is it possible to perform an instrumentation test with firebase test lab? Basically I need to fill input texts, click buttons, download ...
Fabio's user avatar
  • 1
1 vote
0 answers
163 views

I'm trying to run instrumented tests in my Android project using Hilt for dependency injection. However, the test run fails with the following error: Test run failed to complete. Instrumentation run ...
Suraj Bahadur's user avatar
0 votes
0 answers
38 views

I have the following problem: What I want to do is test the drag and drop functionality with instrumentation tests in android jetpack compose. I have simplified the problem once and added a very small ...
Greg's user avatar
  • 1
0 votes
0 answers
18 views

Android Studio; Jetpack Compose Title. When writing tests, autocompletion won't work. Only after writing out Composables/Functions I can import them and everything works. Still no autocompletion is ...
pmb's user avatar
  • 1
0 votes
1 answer
38 views

I am testing an Android app using Espresso, and I have an activity that should only be displayed in portrait mode. To enforce this, I programmatically lock the activity in portrait mode when it is ...
Mr T's user avatar
  • 123
0 votes
1 answer
25 views

Is it possible to change the report name to include the timestamp on Android instrumented tests? I couldnt' find any documentation on this nor do i know where to begin investigating to be completely ...
M Rajoy's user avatar
  • 4,144
0 votes
1 answer
58 views

I have a complex project where version for org.jetbrains.kotlinx:kotlinx-coroutines-android is forced to 1.6.4. I have used Jetpack composables for my UI screens. I want to write Instrumented Tests ...
Sarfaraz's user avatar
  • 345
0 votes
1 answer
76 views

I'm running end-to-end tests on my Flutter app's Android version using the Patrol package. When I run these tests locally, the app requests permissions from the user (specifically for Bluetooth and ...
Sevastyan Savanyuk's user avatar
0 votes
1 answer
51 views

I have an android project with instrument tests. I am trying to run a custom gradle task immediately after connectedAndroidTest. I want this custom task to run irrespective of the connectedAndroidTest ...
Pranay.Karani's user avatar
1 vote
0 answers
176 views

My instrumentation test is not executed in the device after the test and app install. The test sometimes keep "building" for long times +15min Here is the logcat with warnings and info ...
user avatar
1 vote
0 answers
44 views

Is there any documentation stating FTL installs the app with the -g flag, meaning manifest permissions are automatically granted? I cannot find in my digging. Thanks! I looked into firebase test lab ...
rdlc's user avatar
  • 41
0 votes
0 answers
99 views

I’m Trying to Intercept Some Methods Using the Byte-Buddy Android Gradle Plugin I want to intercept some methods using the Byte-Buddy Android Gradle plugin. Here are the versions I am using: • Java ...
Engin Kadir Şahin's user avatar
1 vote
0 answers
79 views

After running ./gradlew connectedAndroidTest and removing androidTest directory and the any required setup with instrumented test from my app module build.gradle.kts, the task :app:...
Bitwise DEVS's user avatar
  • 3,851
2 votes
3 answers
607 views

The app supports 2 locales. During instrumentation or UI test, I want to test with a specific language (such as EN). Referring 6629458, I made a function for changing the locale in kotlin: private fun ...
ca250802's user avatar
  • 802
4 votes
1 answer
392 views

I updated these implementations in app/build.gradle from 1.0.0 to 1.1.1: implementation "androidx.datastore:datastore-preferences:$androidXDatastore" implementation "androidx.datastore:...
kou's user avatar
  • 61
1 vote
0 answers
42 views

I can get multiple apks for different ABIs of my app when I add this to build.gradle: android { splits { abi { enable true universalApk true } } } as ...
LLL's user avatar
  • 1,927
1 vote
1 answer
724 views

I have setup integration tests for firebase using guide. I am running the same tests at local using following command: flutter build apk --debug --flavor dev ./gradlew app:...
Vishnu's user avatar
  • 2,217
0 votes
1 answer
178 views

In my flutter app I did all the integration steps to run a test lab test I created MainActivityTest.java, and updated the build.gradle with the test dependencies I created the integration test ...
Reham Al-Ra'i's user avatar
1 vote
2 answers
344 views

I have some startup initializers defined in my manifest file. <meta-data android:name="com.myapp.MyInitializer" android:value="androidx.startup" /> That initializer is ...
lostintranslation's user avatar
0 votes
1 answer
124 views

I've been facing an issue when trying to run instrumented tests for a fragment. With the code below, the test starts but looks like it never launches the fragment, gets stuck on loading. I need to ...
AndroidDev's user avatar
1 vote
2 answers
302 views

I've developed an Espresso instrumentation test for an app built with React Native. The test involves a "Login with Google" button, which initiates an OAuth flow. On a local device or ...
DebugDynamo's user avatar
0 votes
1 answer
468 views

I have followed guide to run tests at local as well Firebase test lab.I am using following command to run at local: flutter build apk --debug ...
Vishnu's user avatar
  • 2,217
2 votes
1 answer
111 views

I have a multi-module app and recently, I moved the instrumented tests to a single and separate module. My setup seems fine since I can build, run unit tests and also instrumented tests. I just ...
guipivoto's user avatar
  • 18.7k
-1 votes
1 answer
110 views

I'm trying to run all my espresso tests on multiple devices simultaneously using adb shell am instrument command. Wondering if there is a way. I'm not trying to distribute my tests across devices, i ...
Madhu Pudota's user avatar
1 vote
1 answer
1k views

I want to instrument a Java program on my Android device via a Frida-Gadget but I am failing to get it to work. Here are the steps i took. First of all here is the code of a simple Java program: ...
mmm's user avatar
  • 21
1 vote
1 answer
2k views

I'm working on Android instrumentation tests with MockWebServer of Square. Here are the codes that I'm trying to run. However, I'm getting error from Okhttp client, when I ran the test. I've added ...
tugceaktepe's user avatar
2 votes
0 answers
188 views

I a have multi module android app. I need to write some instrumentation test for my app but only instrumentation test from app module are working. These tests run fine and either pass or fail but ...
SM2A's user avatar
  • 553
3 votes
0 answers
1k views

I am running into the following exception when running a test for a composable that injects a hilt view model, eg: @Composable fun MyScreen( viewModel: MyViewModel = hiltViewModel() ) { } ...
lostintranslation's user avatar
0 votes
1 answer
226 views

I'm getting the following Hilt error when I try to use a TestCase module to provide mocks for my instrumentation testing. Here is the error [Hilt] public final class TestModules { ^ @...
user1743524's user avatar
5 votes
1 answer
986 views

I've been trying to nail down a particularly nasty crash during my tests that occur when setting up/using Dispatchers.Main value. I see this issue about once every 10 or so runs. Example stack trace: ...
Zach's user avatar
  • 4,109
3 votes
0 answers
744 views

Issue: I am using Github Actions for CI and after pushing the code into Git CI workflow runs and showing me an error on FCMService file. Previously there were no error was showing on this file before ...
Dinesh Sarma's user avatar
3 votes
0 answers
143 views

Google didn't help and I don't think there is a straightforward way to do this with android instrumentation tests class TestWithActivity { @get:Rule val composeRule: TestActivityRule = ...
xxfast's user avatar
  • 737
1 vote
1 answer
283 views

I'm trying to use Testcontainers in my Android instrumentation tests because I want to start a webserver before the tests which my app is using. The problem is that all code that is executed in the ...
fauess's user avatar
  • 11
2 votes
0 answers
208 views

So my setup is that I initialize all the viewModels on MainActivity then use activityViewModels to the Fragments that don't need their own instance of the viewModels. Then I wanted to create an ...
rminaj's user avatar
  • 605
4 votes
1 answer
2k views

I implemented custom simple splash screen with compose navigation. To navigate to main screen after short period of time I used LaunchedEffect with delay inside. It works fine. But in UI test the ...
Denis Elkin's user avatar
12 votes
2 answers
5k views

I'm starting to implement instrumentation testing for my company to increase our code quality and speed of deployment. I'm rewriting a module of our application and I'm trying to implement TDD ...
Shindra's user avatar
  • 95
2 votes
2 answers
465 views

I have a test apk being built, and I'd like that test apk to be able to read some configuration values from an external file, rather than having to compile that configuration into the apk file. I have ...
Mark's user avatar
  • 2,582
0 votes
1 answer
257 views

I have a MainActivity with a button that will launch the native Camera Activity via Intent(MediaStore.ACTION_IMAGE_CAPTURE). I would like to write an Android UI test that will: Confirm we are on the ...
kc_dev's user avatar
  • 830
1 vote
0 answers
179 views

The aim is to create end-to-end tests for a native Android app, that allows us to validate the "happy path" and alleviate our QA burden of manually carrying out these tasks. In the project, ...
Skj's user avatar
  • 101
1 vote
0 answers
32 views

**Below is the class. As soon as the SOUT prints within a second it completes. Tested in debug mode and same. Logcat shows that process is ended. No Exception is observed. Code compiles without any ...
Hemanth's user avatar
  • 11
0 votes
2 answers
683 views

When I try to run the ExampleInstrumentedTest on my Android Studio project, it builds fine, installs the test and then it is stuck on "Connected to process ####..." and no test results are ...
Kahan Bhalani's user avatar
0 votes
1 answer
349 views

I'm trying to use the Spoon plugin for my Instrumentation Tests, but I am unable to proceed with a Gradle error unable to resolve dependency Failed to resolve: com.squareup.spoon:spoon-client:2.0.0-...
Zerosero's user avatar
  • 343
3 votes
0 answers
453 views

I have defined these into my build.gradle, to enable Orchestrator in my Android Instrumented tests: defaultConfig { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ...
Baterka's user avatar
  • 3,812
2 votes
1 answer
673 views

When I run instrumentation tests in Firebase Test Lab, the system dialogs asking the user to grant permissions don't come up, as if they were approved without the need for user action. For example ...
Crocodile's user avatar
  • 5,905
0 votes
1 answer
712 views

Since some time, when I run an instrumentation test on a device (emulator) and try to start another test on a second device in parallel, I get the following exception: FAILURE: Build failed with an ...
Aorlinn's user avatar
  • 788
3 votes
0 answers
80 views

I used test puchase ids such as "android.test.purchased" for my instrumentation tests. When I last run these tests they failed on every device, as the dialog does not show any "Purchase ...
Aorlinn's user avatar
  • 788
2 votes
2 answers
902 views

I am using Datadog to track user activity in my app. Now I need to instrument webviews. After initializing datadog's sdk , its documentation says that I have to call the following code snippet: ...
emanoellucas's user avatar
1 vote
1 answer
335 views

I am having problem trying to initialize my WorkerGetData class for instrumentation testing. I have done the following: removed the default work initializer in manifest file. added configuration ...
mars8's user avatar
  • 1,346

1
2 3 4 5
11