This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRA746: Android CTS : com.android.cts.net.hostside.VpnTest fails with error "Received unexpected reply"

Part Number: DRA746

Hi All,

com.android.cts.net.hostside.VpnTest [testAppDisallowed()] fails with error "Received unexpected reply". I've attached device_logcat and host logcat. Please help me out to find solution.

10-06 15:50:36 I/TestInvocation: Invocation was started with cmd: cts -c com.android.cts.net.HostsideNetworkTests -m testVpn
10-06 15:50:36 D/BackgroundDeviceAction: Sleep for 5000 before starting logcat for 1101800802B800E2.
10-06 15:50:36 I/TestInvocation: Starting invocation for 'cts' on build '3993898' on device 1101800802B800E2
10-06 15:50:36 I/FileSystemLogSaver: Using log file directory /tmp/3993898/cts/inv_8720733622823293170
10-06 15:50:36 I/1101800802B800E2: Created result dir 2017.10.06_15.50.36
10-06 15:50:37 D/RunUtil: run interrupt allowed: true
10-06 15:50:37 D/CtsPreconditionsApp.apk: Uploading CtsPreconditionsApp.apk onto device '1101800802B800E2'
10-06 15:50:37 D/Device: Uploading file onto device '1101800802B800E2'
10-06 15:50:38 D/InstrumentationTest: Collecting test info for com.android.cts.preconditions on device 1101800802B800E2
10-06 15:50:38 I/RemoteAndroidTest: Running am instrument -w -r  -e log true -e timeout_msec 300000 com.android.cts.preconditions/android.support.test.runner.AndroidJUnitRunner on xxxxxx-gminfo3-1101800802B800E2
10-06 15:50:39 I/RemoteAndroidTest: Running am instrument -w -r  -e log false -e timeout_msec 300000 com.android.cts.preconditions/android.support.test.runner.AndroidJUnitRunner on xxxxxx-gminfo3-1101800802B800E2
10-06 15:50:40 D/TestDevice: Uninstalling com.android.cts.preconditions
10-06 15:50:41 D/BackgroundDeviceAction: Starting logcat for 1101800802B800E2.
10-06 15:50:48 I/CtsTest: ABIs: [armeabi-v7a]
10-06 15:50:50 I/CtsTest: Executing CTS test class com.android.cts.net.HostsideNetworkTests
10-06 15:50:50 D/TestPackageDef: Creating host test for CtsHostsideNetworkTests
10-06 15:50:50 D/TestDeviceSetup.apk: Uploading TestDeviceSetup.apk onto device '1101800802B800E2'
10-06 15:50:50 D/Device: Uploading file onto device '1101800802B800E2'
10-06 15:50:51 I/RemoteAndroidTest: Running am instrument -w -r  -e timeout_msec 300000 android.tests.devicesetup/android.tests.getinfo.DeviceInfoInstrument on xxxxxx-gminfo3-1101800802B800E2
10-06 15:50:55 I/1101800802B800E2: Collecting device info
10-06 15:50:55 D/TestDevice: Uninstalling android.tests.devicesetup
10-06 15:50:56 D/CtsDeviceInfo.apk: Uploading CtsDeviceInfo.apk onto device '1101800802B800E2'
10-06 15:50:56 D/Device: Uploading file onto device '1101800802B800E2'
10-06 15:50:57 I/RemoteAndroidTest: Running am instrument -w -r  -e timeout_msec 300000 com.android.compatibility.common.deviceinfo/com.android.compatibility.common.deviceinfo.DeviceInfoInstrument on xxxxxx-gminfo3-1101800802B800E2
10-06 15:50:59 I/1101800802B800E2: Collecting extended device info
10-06 15:50:59 D/TestDevice: Uninstalling com.android.compatibility.common.deviceinfo
10-06 15:51:00 E/DeviceInfoCollector: Failed to run adb -s 1101800802B800E2 pull /sdcard/device-info-files /home/nprakash/SANDESH/Sandesh Android CTS/android-cts/tools/./../../android-cts/repository/results/2017.10.06_15.50.36/device-info-files
10-06 15:51:00 I/CtsTest: Start test run of 1 packages, containing 1 tests
10-06 15:51:00 I/1101800802B800E2: -----------------------------------------
10-06 15:51:00 I/1101800802B800E2: Test package armeabi-v7a android.net.hostsidenetwork started
10-06 15:51:00 I/1101800802B800E2: -----------------------------------------
10-06 15:51:00 I/JarHostTest: Running android.net.hostsidenetwork test package from jar, contains 1 tests.
10-06 15:51:00 D/ResultFilter: Skipping reporting unknown test run android.net.hostsidenetwork
10-06 15:51:00 D/DeviceTestCase: Running com.android.cts.net.HostsideNetworkTests#testVpn()
10-06 15:51:00 D/TestDevice: Uninstalling com.android.cts.net.hostside
10-06 15:51:01 D/CtsHostsideNetworkTestsApp.apk: Uploading CtsHostsideNetworkTestsApp.apk onto device '1101800802B800E2'
10-06 15:51:01 D/Device: Uploading file onto device '1101800802B800E2'
10-06 15:51:02 I/RemoteAndroidTest: Running am instrument -w -r  com.android.cts.net.hostside/android.support.test.runner.AndroidJUnitRunner on xxxxxx-gminfo3-1101800802B800E2
10-06 15:51:29 D/TestDevice: Uninstalling com.android.cts.net.hostside
10-06 15:51:30 I/TestPackageResult: Test metrics:{}
10-06 15:51:30 I/TestPackageResult: Test metrics:{}
10-06 15:51:30 I/1101800802B800E2: com.android.cts.net.HostsideNetworkTests#testVpn FAIL 
java.lang.AssertionError: on-device tests failed:
com.android.cts.net.hostside.VpnTest#testAppDisallowed:
junit.framework.AssertionFailedError: Received unexpected reply
at junit.framework.Assert.fail(Assert.java:50)
at com.android.cts.net.hostside.VpnTest.checkUdpEcho(VpnTest.java:436)
at com.android.cts.net.hostside.VpnTest.checkNoTrafficOnVpn(VpnTest.java:453)
at com.android.cts.net.hostside.VpnTest.testAppDisallowed(VpnTest.java:486)
at java.lang.reflect.Method.invoke(Native Method)
at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:115)
at android.support.test.internal.runner.junit3.AndroidTestResult.runProtected(AndroidTestResult.java:77)
at junit.framework.TestResult.run(TestResult.java:118)
at android.support.test.internal.runner.junit3.AndroidTestResult.run(AndroidTestResult.java:55)
at junit.framework.TestCase.run(TestCase.java:124)
at android.support.test.internal.runner.junit3.NonLeakyTestSuite$NonLeakyTest.run(NonLeakyTestSuite.java:63)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at android.support.test.internal.runner.junit3.DelegatingTestSuite.run(DelegatingTestSuite.java:103)
at android.support.test.internal.runner.junit3.AndroidTestSuite.run(AndroidTestSuite.java:69)
at android.support.test.internal.runner.junit3.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:54)
at android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:228)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1879)

	at com.android.cts.net.HostsideNetworkTests.runDeviceTests(HostsideNetworkTests.java:102)
	at com.android.cts.net.HostsideNetworkTests.testVpn(HostsideNetworkTests.java:74)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at com.android.tradefed.testtype.DeviceTestResult$1.protect(DeviceTestResult.java:81)
	at com.android.tradefed.testtype.DeviceTestResult.runProtected(DeviceTestResult.java:56)
	at com.android.tradefed.testtype.DeviceTestResult.run(DeviceTestResult.java:85)
	at junit.framework.TestCase.run(TestCase.java:124)
	at com.android.tradefed.testtype.DeviceTestCase.run(DeviceTestCase.java:117)
	at com.android.cts.tradefed.testtype.JarHostTest$TestRunnable.run(JarHostTest.java:248)
	at com.android.tradefed.util.RunUtil$RunnableNotifier.run(RunUtil.java:378)

10-06 15:51:30 D/RunUtil: run interrupt allowed: false
device_logcat.txt

Regards,

Gangadhar