I've working with Espresso automation that is following the cucumber BDD testing approach. Espresso test runs by generating two apk, one is actual application apk and another one is test-apk that has test script. The bot app get installed in mobile device and runs the test. Now the issue is that plugin/format option in runner class fail to generate test result, but its failed due storage access to store the test reports, i've enable the storage permission, but still the issue is happening.
E/FirebaseInstanceId: Topic sync or token retrieval failed on hard failure exceptions: AUTHENTICATION_FAILED. Won't retry the operation.
E/AndroidRuntime: FATAL EXCEPTION: Instr: com.example cucumber.runner.CucumberJUnitRunner
cucumber.runtime.CucumberException: java.io.IOException: Failed to create directory /storage/1001-3707/cucumber1
at cucumber.runtime.formatter.PluginFactory.create(PluginFactory.java:89)
at cucumber.runtime.RuntimeOptions.getPlugins(RuntimeOptions.java:245)
at cucumber.runtime.RuntimeOptions$1.invoke(RuntimeOptions.java:291)
at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
at $Proxy10.stepDefinition(Unknown Source)
at cucumber.runtime.RuntimeGlue.reportStepDefinitions(RuntimeGlue.java:92)
at cucumber.runtime.android.CucumberExecutor.execute(CucumberExecutor.java:109)
at cucumber.api.android.CucumberInstrumentationCore.start(CucumberInstrumentationCore.java:88)
at com.example.cucumber.runner.CucumberJUnitRunner.onStart(CucumberJUnitRunner.java:27)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2189)
It will be much helpful, if got solution. Thanks in advance