Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

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 ...
Vikas Sharma's user avatar
0 votes
0 answers
27 views

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....
iamkaan's user avatar
  • 1,515
0 votes
0 answers
45 views

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. ...
Gaurav Rawal's user avatar
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
1 vote
0 answers
124 views

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 ...
Hafizur Rahman's user avatar
1 vote
1 answer
253 views

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] ...
Abdallah_Alqiran's user avatar
1 vote
1 answer
146 views

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 ...
ANiket Indulkar's user avatar
0 votes
0 answers
32 views

I am new to instrumented tests and I am not able to have my very first test class to run. It is failing with this error: java.lang.AssertionError: Activity never becomes requested state "[...
xerez's user avatar
  • 89
0 votes
1 answer
124 views

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....
CoolMind's user avatar
  • 29.2k
0 votes
0 answers
51 views

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, ...
Genealogy's user avatar
0 votes
0 answers
33 views

When I upgrade the Espresso Accessibility from 3.3.0 to 3.4.0 and higher, I get the following error which makes the test unable to launch the app: SSLHandshakeException: Certificate transparency ...
Vadym's user avatar
  • 441
0 votes
1 answer
122 views

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 ...
Martin's user avatar
  • 11.9k
0 votes
1 answer
166 views

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 ...
Sopnil.Shinde's user avatar
0 votes
2 answers
57 views

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: ...
pawelnbd1992's user avatar
2 votes
1 answer
304 views

I'm working on an Android project where I'm using Hilt for dependency injection and have recently enabled KSP (Kotlin Symbol Processing) to replace KAPT (Kotlin Annotation Processing Tool). My setup ...
Waheed Shah's user avatar
2 votes
0 answers
66 views

I’m working on generating baseline profiles for key features in my application, such as Listing and Product Detail, which are widely used and important to users. However, these features are accessible ...
beigirad's user avatar
  • 5,882
0 votes
0 answers
140 views

Problem Description: I'm encountering an intermittent issue while writing a unit test for fetching data using Paging3 and Room in an Android application. The test utilizes kotlinx.coroutines.test for ...
kareem mohamed's user avatar
2 votes
1 answer
164 views

I'm working on unit tests for my Android app. My app has two flavors: "flavor 1" and "flavor 2", configured in default.gradle. Tests common to both are in test and I also have ...
Barry Fruitman's user avatar
1 vote
0 answers
143 views

I wrote a Kotlin code and I want to write unit tests for it. But I found that the unit test code I wrote still cannot cover 100% branch coverage. What should I do it? kotlin code: class MyRepository @...
pnkj's user avatar
  • 528
1 vote
2 answers
129 views

I have an app where I have 2 screens: NavHost( navController = navController, startDestination = UserListScreen ) { composable<UserListScreen> { UserListScreen( ...
Always Learner's user avatar
0 votes
1 answer
51 views

By default, the targetSdk of the test apk generated to run androidTest on a library is the minSdk. Is there a way to explicitly set the targetSdk for the generated androidTest.apk to something ...
ben75's user avatar
  • 28.8k
1 vote
2 answers
613 views

I've seen a few things now where you are trying to inject a viewModel using hilt navigation and it is giving errors. I'm using Hilt Navigation with Compose and I'm having problems with doing UI tests. ...
Kristy Welsh's user avatar
  • 8,449
0 votes
1 answer
81 views

Some background: My tests are using Kaspresso Running under Robolectic. I have Junit 5 installed, the test are Junit4 with Junit5's vintage support. All the screens have viewModels. the viewModels ...
johngray1965's user avatar
0 votes
1 answer
64 views

I have a fragment whose instance of ViewModel is provided by a component, scoped to the navigation graph of Main Activity. The Dagger app component was injected into the single Main Activity and ...
MajinKenn's user avatar
  • 109
3 votes
0 answers
175 views

In my viewmodel I get a Flow<PagingData> by calling the use case in charge of doing it, and then caching it, as recommend it by android developer's guide, like this: val bestRatedRepos: Flow<...
alGhul7's user avatar
  • 163
2 votes
1 answer
124 views

For an instrumented androidTest test, I need to click the ALLOW "button" as popped up by the system when the app starts on a device running Android 8 (API 26): (Note: on Android 14 (API 34) ...
sfinja's user avatar
  • 883
2 votes
0 answers
163 views

Description Fail to run basic test example package ........ import androidx.compose.foundation.background import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout....
dr.s's user avatar
  • 81
2 votes
1 answer
170 views

The formal Android Developers documentation provides an enlightening introduction to the Fundamentals of testing Android apps. I managed to successfully create 3 different types of test setups in ...
sfinja's user avatar
  • 883
1 vote
0 answers
117 views

I have the following kotlin code val TAG = Logging.tag<MyClass>() @Before fun setUp() { MockKAnnotations.init(this, relaxUnitFun = true) activitySwitchManagerUtil = ...
enjoinslip's user avatar
8 votes
2 answers
2k views

I'm working on an Android project that uses Type Safety Compose Navigation (androidx.navigation:navigation-compose:2.8.0-beta05). I’m trying to create a test to verify a value passed through ...
Paulo Henrique's user avatar
0 votes
1 answer
208 views

In my android application which build in flutter , integrated inApp purchase and written Integration test , and added it with github action test. Main problem is when emulator created on runnedd i am ...
Manish Sharma's user avatar
1 vote
0 answers
143 views

I am trying to test a Main Activity class that is @AndroidEntryPoint using Hilt Testing in my Android application. The PermissionHelper class is defined as follows: public class PermissionHelper { ...
Nadin Martini's user avatar
1 vote
0 answers
286 views

I am trying to test an Android app built with Kotlin and Jetpack compose for configuration changes like switching to LANDSCAPE/PORTRAIT mode. When I set the orientation to Landscape/Portrait, I see ...
Saral's user avatar
  • 45
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
0 votes
0 answers
253 views

My app recently enabled the R8. My app can run fine when R8 is enabled. The UI Test can run when R8 is disabled, but when enabled, I got the "Caused by: java.lang.ClassNotFoundException: Didn't ...
Khoa Chau's user avatar
0 votes
1 answer
119 views

I want to start using Gradle-managed devices to test my Android app with the following configuration in my build.gradle file. testOptions { animationsDisabled = true managedDevices { ...
flauschtrud's user avatar
0 votes
1 answer
319 views

I'm trying to test a composable using .testTag that sits at the leaf level of the tree given the Composables call structure. The code is in the style of: Top level Composable @Composable fun ...
Alexandru Gheorghe's user avatar
1 vote
0 answers
25 views

when i try to call frankfurterApi.convert with test scope, the test instantly gets terminated(println("here2") doesn't get called), but with runBlocking everything works good, just like with ...
Yauheni Mokich's user avatar
0 votes
0 answers
183 views

I'm trying to make a image comparison with appium images plugin. The thing is that I now that the partial image I'm checking with the actual device screenshot should have multiple coincidences. As far ...
Beñat Garrido's user avatar
0 votes
0 answers
687 views

I'm setting up an androidTest to run a click test to make sure the login flow is always working. The test is done in terms of opening the screen, press login button, enter email/password and then the ...
Erazx's user avatar
  • 71
0 votes
0 answers
93 views

I'm debugging a video encoder app and need to check the produced file on my laptop, not in the emulator. Currently, I'm saving the resulting file to the temporary folder on the Android device, then I ...
Ivan Nikitin's user avatar
  • 4,193
0 votes
1 answer
50 views

I'm testing a Realm database in an Android app using Kotlin coroutines. I have a ConnectionsRepository with an isEmpty() method, and I'm writing a unit test that asserts behavior before and after ...
Morozov's user avatar
  • 5,290
1 vote
1 answer
46 views

I tried to mock the following using Matcher<Intent> on Android Espresso: Intent { act=android.intent.action.CHOOSER (has extras) } handling packages:[[android, com.android.systemui]], extras: [...
cprogrammer's user avatar
0 votes
1 answer
172 views

I want to dump the window hierarchy and read from the gradle managed device the file but I keep getting File issues with writing it. It should output it to the directory app/build/outputs/...
JPM's user avatar
  • 9,365
1 vote
1 answer
140 views

I am a newbie to android testing and I have observer both of these classes being suggested when I declare a class with @RunWith() annotation. I searched for more documentation but there does not seem ...
Purple6666's user avatar
2 votes
0 answers
153 views

Following this documentation to get multi-module test reports for instrumented tests in a single HTML page, how to use it when using Kotlin DSL with Version Catalog? So far none of these approach work ...
Bitwise DEVS's user avatar
  • 3,851
0 votes
0 answers
742 views

I'm trying to run android tests from the terminal(gradlew connectedAndroidTest), all tests run and pass successfully, but at the end of the i'm filing with an errorTest run failed to complete. ...
Nurakhmet Zunun's user avatar
0 votes
1 answer
79 views

Is it possible to run an instrumented test in an Android module that has no activity but uses AppCompat dependencies? I am attempting to run a simple test but only works if moved to app module. Util ...
Bitwise DEVS's user avatar
  • 3,851
5 votes
3 answers
2k views

The "Record espresso test" option is greyed out in Android Studio. What are possible reasons for this? I have installed the Espresso test dependencies and I have an emulator running.
HPage's user avatar
  • 1,533
2 votes
0 answers
1k views

I have a project and when I try to run the main or the test directories I have no problems with the gradle build. But now when I try to run an android test I get this error: Directory 'C:\Users...' ...
archviz_fan's user avatar

1
2 3 4 5
44