Issue I am making tests using Android UI automator FW. I am trying to detect memory leak during device orientation change using following code: InstrumentationRegistry.getInstrumentation().getUiAutomation() .setRotation(orientation); It changes device orientation, but my questions is: What is a proper way (except
Continue readingTag: automated-tests
Is it possible to do automated testing with detox outside of the target application?
Issue I have built a react-native application and am trying to build a few specific end-to-end tests on the android side. For this, I have setup detox. Unfortunately, to test properly, I need to see how the application responds when
Continue readingCan I make UI test for Android Studio IDE plugin?
Issue I want to create UI automation test for an android studio ide plugin. I searched this question. I have found this https://github.com/JetBrains/intellij-ui-test-robot repo. There is an example plugin project and ui test example for this plugin project. We can
Continue readingDocker GitLab Error running Android Emulator: Cannot decide host bitness. 32 bits assumed
Issue I am trying to automate Android Builds and Tests. The instrumentation test is not working because I get the following error while starting the android emulator in the Docker Runner: Running with gitlab-ci-multi-runner 9.4.2 (6d06f2e) … Using Docker executor
Continue readingInstrumentation run failed due to 'Process crashed.'
Issue I wanted to run the following test: package com.xxx.yyy; import android.content.Context; import androidx.test.InstrumentationRegistry; import androidx.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href=”http://d.android.com/tools/testing”>Testing documentation</a>
Continue readingHow to correctly set up UiAutomatorViewer to inspect elements for testing Android apps with Appium?
Issue When running uiautomatorviewer, I am getting the following NullPointerException error: I have installed and set up Appium following the setup process and set up environment variables for ANDROID_HOME and the Android SDK. The uiautomatorviewer command is using a Path
Continue readingWhat is difference between Selenium and Appium?
Issue I can not see the exact difference between Selenium and Appium. Both of these server and framework is it right? But I see lots of codes in github, when use appium, but the sample code contains of only selenium
Continue readingHow to mock a class of a library used by the app during instrumented test?
Issue I am working on an Android library and I am writing an instrumented test for it using UI Automator and Mockk. The library has a class called InstallManager which will install stuff on the device. I want the InstallManager
Continue readingRun Android instrumented tests fail
Issue I tried to implement some unit and instrumented tests for my Android application (Java), my unit tests is working fine but instrumented tests are failing: @RunWith(AndroidJUnit4.class) @LargeTest public class ExampleInstrumentedTest { @Rule public IntentsTestRule<MainActivity> mActivityRule = new IntentsTestRule<>(MainActivity.class); @Test
Continue readingHow can I follow Flutter UI Android Studio test execution on device?
Issue I wrote a Flutter Widget plugin with user interface automated testing using Android Studio based on Flutter documentation. Tests execute properly but are quite abstract to write without following what happens on the device UI. All I see is
Continue reading