Testrunner Read error for GDSL file : EACCES (Permission denied)

Example :

  • java.lang.Exception: Error reading test file /sdcard/greenspector/testssuites/suite1/script.testgb 

  • Caused by: java.io.FileNotFoundException: /sdcard/greenspector/testssuites/suite1/script.testgb open failed: EACCES (Permission denied) 

  • Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied) 

On some phones, the Greenspector application does not acquire the correct rights to read files from the sdcard or the Greenspector application has lost its rights.

To solve this problem, try to use the command :

testrunner cleandevice

Then launch your test.

If you have the same problem, go to the phone in settings / apps, choose the Greenspector application, in Permissions / Files and media, choose 'Allow management of all files'. Do the same for the application com.greenspector.testbench.launcher.android.test