Hi,
Thanks for the answer. It works now, but I am given an empty report. Do you know what may cause this?
The file is created on the device, but it is empty.
Thanks,
Oana
On Friday, 6 December 2013 09:08:55 UTC, Frieder Bluemle wrote:Hi, access to /data/data/ requires a rooted device or you have to run the command using "run-as your.package.name", or an emulator.You can try to write the reports to the sdcard instead like this:@CucumberOptions(format = {"pretty", "html:/sdcard/android.test/cucumber-html", "json:/sdcard/android.test/report.json"}, features = "features")adb pull /sdcard/android.test
On Thursday, December 5, 2013 8:09:38 AM UTC-8, Oana Rusu wrote:Hello,
I am trying to get Cucumber reports, but I get a message with permission denied.
In my Manifest file I have:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
and in my class I have:
@RunWith (Cucumber.class)
@CucumberOptions(format = {"pretty", "html:/data/data/android.test/cucumber-html", "json:/data/data/android.test/report.json"}, features = "features")
public class RunTestAT {
}
When I try to run the tests I get:
FileNotFound :data/data/android.test/report.json open failed: EACCES (Permission denied).
Can you help me get reports for my tests?
Thanks,
Oana
Thanks for this. For the moment for me it seems to happen all the time. No letter how the test ends, I always have a blank file as the report.
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.