RE: [Cucumber] Re: [Cucumber-JVM] Get cucumber reports for Android tests

128 views
Skip to first unread message

Oana Rusu

unread,
Dec 27, 2013, 11:12:47 AM12/27/13
to Jy Yang, cu...@googlegroups.com
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.

Thanks, oana

From: Jy Yang
Sent: 27/12/2013 15:45
To: cu...@googlegroups.com
Subject: [Cucumber] Re: [Cucumber-JVM] Get cucumber reports for Android tests

It's a bug of cucumber android...when there's error during test execution, sometimes the test app ends before it writes the ending parts of the report file. As a result, they are not formatted well. For JSON report, it only flush to the file right before all test finishes, so if your test app ends due to error before that, it has nothing. But this is not always the case. In fact this rarely happens to me, so I am not sure what's the reliable way to reproduce this. If you can find it and post on the forum, it will help them fix the problem.

Oana Rusu於 2013年12月27日星期五UTC+8下午7時45分27秒寫道:
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

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to a topic in the Google Groups "Cukes" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cukes/q7O1fe95A2g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

aslak hellesoy

unread,
Dec 27, 2013, 11:38:41 AM12/27/13
to Cucumber Users, Jy Yang
On Fri, Dec 27, 2013 at 4:12 PM, Oana Rusu <oana.r...@gmail.com> wrote:
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.


There is a pending bugfix here:


Aslak
 
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.
Reply all
Reply to author
Forward
0 new messages