The Android test project crashes with the error "Test run failed: instrument breakthrough due to process failure."

My problem seems a little different than here. Test run failed: instrumental run failed due to "Process Failure". when testing a few Android actions
I followed the steps given in the PDF . I created the test project "TestAndroidCalculatorBlackbox" (do we need two projects, one test and one main project, maybe this may be the reason, because in the Robotium link "Getting Started" they want us to create projects for Notepad),
and added jars robotium-solo-5.0.1.jar, robotium-solo-1.6.0.jarto get rid of the red lines of errors below the solo.function and jay.way package.
I am attaching a screenshot with the error: Project tree and error screen shoty AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.testcalculator"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="8" />

    <instrumentation
        android:name="android.test.InstrumentationTestRunner"
        android:targetPackage="com.testcalculator" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" android:debuggable="true">
        <uses-library android:name="android.test.runner" />
    </application>

</manifest>

and I added the package to the list of tools:

 c:\> adb shell pm list instrumentation
instrumentation:PACKAGE.test.test/android.test.InstrumentationTestRunner (target=PACKAGE)
instrumentation:PACKAGE.test.test.test.test.test.test/android.test.InstrumentationTestRunner (target=PACKAGE.test.test)
instrumentation:com.example.android.apis/.app.LocalSampleInstrumentation (target=com.example.android.apis)
>> instrumentation:com.testcalculator/android.test.InstrumentationTestRunner (target=com.testcalculator) <<
+19
5
  1. robotium. robotium-solo-1.6.0.jar . , .

  2. ? , . , .

  3. APK , . com.testcalculator, - . , , .

  4. , LogCat.

  5. , :

    http://developer.android.com/tools/testing/testing_android.html https://code.google.com/p/robotium/w/list

+8

, Androidx , - testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner".

.

+59

, androidx. LogCat , , - RxJava.

companion object {
    @get:ClassRule @JvmStatic
    val testSchedulerRule = RxImmediateSchedulerRule()
}
0

StrictMode, AndroidJUnitRunner:

D/StrictMode: StrictMode policy violation: android.os.strictmode.UntaggedSocketViolation: [...]
W/System.err: StrictMode VmPolicy violation with POLICY_DEATH; shutting down.

detectUntaggedSockets() Espresso . , , .

0

All Articles