Discussion:
[Cucumber:11018] How to get Junit report working in cucumber jvm
akanksha
2012-04-16 11:36:40 UTC
Permalink
Hi ,
I am migrating my project from Cuke4Duke to cucumber JVM

What command can i give in the build file( ant) so that i can get a
console output which tells me the details of

Scenarios passed, failed and skipped

Something like this

[java] 459 scenarios (11 failed, 448 passed)
[java] 1650 steps (11 failed, 8 skipped, 1631 passed)
[java] 76m56.856s

Also i want a junit report. How can i generate that

I have given the following commands in the build file , but it does
not work

<arg value="--format"/>
<arg value="junit:output"/>
<arg value="out"/>
<arg value="${basedir}/target/junit-report"/>
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset dir="target/junit-report">
<include name="TEST-*.xml"/>
</fileset>
<report format="noframes" todir="target/junit-report/html"/>
</junitreport>


Thanks
Akanksha
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
aslak hellesoy
2012-04-16 11:54:58 UTC
Permalink
Post by akanksha
Hi ,
I am migrating my project from Cuke4Duke to cucumber JVM
What command can i give in the build file( ant) so that i can get a
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
    [java] 1650 steps (11 failed, 8 skipped, 1631 passed)
    [java] 76m56.856s
None yet: https://github.com/cucumber/cucumber-jvm/issues/195
Post by akanksha
Also i want a junit report. How can i generate that
I have given the following commands in the build file , but it does
not work
"it does not work" usually doesn't provide enough information to help anyone.
Post by akanksha
<arg value="--format"/>
               <arg value="junit:output"/>
               <arg value="out"/>
               <arg value="${basedir}/target/junit-report"/>
               <arg value="features"/>
       </java>
       <junitreport todir="target/junit-report">
                               <fileset dir="target/junit-report">
                                       <include name="TEST-*.xml"/>
                               </fileset>
                               <report format="noframes" todir="target/junit-report/html"/>
       </junitreport>
Try this:

<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>

Aslak
Post by akanksha
Thanks
Akanksha
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to cukes+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
akanksha
2012-04-17 05:46:58 UTC
Permalink
Hi Aslak,

I tried writing this way
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>

but it still does not work.
The report that gets generated does not have any data

The format is generated but there is no data

A summary table as below gets generated but has no data

Summary
Tests Failures Errors Success rate Time
0 0 0 NaN 0.000
Note: failures are anticipated and checked for with assertions while
errors are unanticipated.
Hi ,
I am migrating my project from Cuke4Duke tocucumberJVM
What command can i give in the build file( ant) so that i cangeta
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
    [java] 1650 steps (11 failed, 8 skipped, 1631 passed)
    [java] 76m56.856s
None yet:https://github.com/cucumber/cucumber-jvm/issues/195
Also i want ajunitreport. How can i generate that
I have given the following commands in the build file , but it does
not work
"it does not work" usually doesn't provide enough information to help anyone.
<arg value="--format"/>
               <arg value="junit:output"/>
               <arg value="out"/>
               <arg value="${basedir}/target/junit-report"/>
               <arg value="features"/>
       </java>
       <junitreport todir="target/junit-report">
                               <fileset dir="target/junit-report">
                                       <include name="TEST-*.xml"/>
                               </fileset>
                               <reportformat="noframes" todir="target/junit-report/html"/>
       </junitreport>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
Aslak
Thanks
Akanksha
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to cukes+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
aslak hellesoy
2012-04-17 06:33:51 UTC
Permalink
Post by akanksha
Hi Aslak,
I tried writing this way
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
but it still does not work.
The report that gets generated does not have any data
2 questions for you:

1) You should get an xml file per feature. Do you get that? Can you
share some of your XML files online in a gist or pastie?

2) What is the output when you run with --format progress instead. Can
we see it please?

Aslak
Post by akanksha
The format is generated but there is no data
A summary table as below  gets generated but has no data
Summary
Tests   Failures        Errors  Success rate    Time
0                0                       0        NaN                    0.000
Note: failures are anticipated and checked for with assertions while
errors are unanticipated.
Hi ,
I am migrating my project from Cuke4Duke tocucumberJVM
What command can i give in the build file( ant) so that i cangeta
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
    [java] 1650 steps (11 failed, 8 skipped, 1631 passed)
    [java] 76m56.856s
None yet:https://github.com/cucumber/cucumber-jvm/issues/195
Also i want ajunitreport. How can i generate that
I have given the following commands in the build file , but it does
not work
"it does not work" usually doesn't provide enough information to help anyone.
<arg value="--format"/>
               <arg value="junit:output"/>
               <arg value="out"/>
               <arg value="${basedir}/target/junit-report"/>
               <arg value="features"/>
       </java>
       <junitreport todir="target/junit-report">
                               <fileset dir="target/junit-report">
                                       <include name="TEST-*.xml"/>
                               </fileset>
                               <reportformat="noframes" todir="target/junit-report/html"/>
       </junitreport>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
Aslak
Thanks
Akanksha
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to cukes+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
akanksha
2012-04-27 12:34:15 UTC
Permalink
Hi Aslak,

I am getting a blank xml file.
It just has the suite information as below


<?xml version="1.0" encoding="UTF-8" ?>
<testsuites />

On using --format progress - i get the same output

below is my build.xml file

<project name="cukes-demo" basedir="." default="runcukes">
<property name="repo" value="https://oss.sonatype.org/content/
repositories/releases"/>
<property name="cucumber-jvm.version" value="1.0.2"/>
<property name="cucumber-html.version" value="0.2.1"/>
<property name="gherkin.version" value="2.9.3"/>
<property name="test.classes" value="${basedir}/target/test-classes"/
<property name="jars" value="lib"/>
<property name="dotgem.parent" value="${basedir}/lib"/>

<target name="download">
<mkdir dir="${jars}"/>
<get src="${repo}/info/cukes/cucumber-core/${cucumber-
jvm.version}/cucumber-core-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-core-${cucumber-jvm.version}.jar"/
<get src="${repo}/info/cukes/cucumber-java/${cucumber-
jvm.version}/cucumber-java-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-java-${cucumber-jvm.version}.jar"/
<get src="${repo}/info/cukes/cucumber-junit/${cucumber-
jvm.version}/cucumber-junit-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-junit-${cucumber-jvm.version}.jar"/
<get src="${repo}/info/cukes/gherkin/${gherkin.version}/
gherkin-${gherkin.version}.jar"
dest="${jars}/gherkin-${gherkin.version}.jar"/>
<get src="${repo}/info/cukes/cucumber-html/${cucumber-
html.version}/cucumber-html-${cucumber-html.version}.jar"
dest="${jars}/cucumber-html-${cucumber-
html.version}.jar"/>
</target>

<target name="clean" description="Delete all generated artifacts">
<delete dir="${basedir}/target" failonerror="false"/>
<!-- Necessary for our Eclipse project which points to the same
output folder -->
<mkdir dir="${test.classes}"/>
</target>
<target name="classpath" depends="clean">
<path id="classpath">
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</path>
</target>

<!--<target name="compile" depends="classpath">-->
<!--<mkdir dir="target/classes"/>-->
<!--<javac srcdir="src/main/java" destdir="target/classes"
classpathref="classpath" includeantruntime="false"/>-->
<!--</target>-->

<!--<target name="compile" depends="classpath">
<mkdir dir="target/test-classes"/>
<javac srcdir="src" destdir="target/test-classes"
classpathref="classpath" includeantruntime="false"/>
</target>-->

<target name="compile" depends="clean" description="Compile test
classes">
<copy todir="${test.classes}" overwrite="true">
<fileset dir="src">
<include name="**/*.properties"/>
</fileset>
</copy>
<javac srcdir="src" destdir="${test.classes}" debug="true"
debuglevel="lines,source">
<classpath>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>

<target name="runcukes" depends="compile">
<mkdir dir="${basedir}/target/junit-report"/>
<property file = "suite_execution.properties"/>
<echo taskname="waitfor" message="${executeTags}" />
<java classname="cucumber.cli.Main" fork="true">
<classpath>
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</classpath>
<arg value="--require"/>
<arg value="${test.classes}"/>
<arg value="--glue"/>
<arg value="com"/>
<arg value="--color"/>
<arg value="--quiet"/>
<arg value="--tags"/>
<arg value="${IgnoreTags}"/>
<arg value="--tags"/>
<arg value="${executeTags}"/>
<arg value="format"/>
<arg value="progress"/>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<!--<arg value="out"/>
<arg value="${basedir}/target/junit-report"/>-->
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset dir="target/junit-report">
<include name="TEST-*.xml"/>
</fileset>
<report format="noframes" todir="target/junit-report/html"/>
</junitreport>
</target>


</project>


Is there any other method to generate a report where i can get the
total number of scenarios passed and failed.
I am able to create a html report but it does not have a summary, I
need a summary

Thanks,
Akanksha
Post by akanksha
Hi Aslak,
I tried writing this way
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
but it still does not work.
Thereportthat gets generated does not have any data
1) You shouldgetan xml file per feature. Do yougetthat? Can you
share some of your XML files online in a gist or pastie?
2) What is the output when you run with --format progress instead. Can
we see it please?
Aslak
Post by akanksha
The format is generated but there is no data
A summary table as below  gets generated but has no data
Summary
Tests   Failures        Errors  Success rate    Time
0                0                       0        NaN                    0.000
Note: failures are anticipated and checked for with assertions while
errors are unanticipated.
Hi ,
I am migrating my project from Cuke4Duke tocucumberJVM
What command can i give in the build file( ant) so that i cangeta
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
    [java] 1650 steps (11 failed, 8 skipped, 1631 passed)
    [java] 76m56.856s
None yet:https://github.com/cucumber/cucumber-jvm/issues/195
Also i want ajunitreport. How can i generate that
I have given the following commands in the build file , but it does
not work
"it does not work" usually doesn't provide enough information to help anyone.
<arg value="--format"/>
               <arg value="junit:output"/>
               <arg value="out"/>
               <arg value="${basedir}/target/junit-report"/>
               <arg value="features"/>
       </java>
       <junitreport todir="target/junit-report">
                               <fileset dir="target/junit-report">
                                       <include name="TEST-*.xml"/>
                               </fileset>
                               <reportformat="noframes" todir="target/junit-report/html"/>
       </junitreport>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
Aslak
Thanks
Akanksha
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en.
-- There are two rules:

1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style

You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org To unsubscribe from this group, send email to cukes+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
akanksha
2012-05-02 16:26:02 UTC
Permalink
Hi,

I could get a proper xml generated
I could also get a junit report

My java code is very simple
It has a normal assert statement..

If the result is pass i get the junit report
but if the assert fails i do not get the junit report i only get the
xml

Can you tell me where is the error ?

Following is my build file


<target name="runcukes" depends="compile">
<mkdir dir="${basedir}/target/junit-report"/>
<property file = "suite_execution.properties"/>
<java classname="cucumber.cli.Main" fork="true">
<classpath>
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</classpath>
<arg value="--require"/>
<arg value="${test.classes}"/>
<arg value="--glue"/>
<arg value="com"/>
<arg value="--color"/>
<arg value="--quiet"/>
<arg value="--tags"/>
<arg value="${IgnoreTags}"/>
<arg value="--tags"/>
<arg value="${executeTags}"/>
<arg value="format"/>
<arg value="progress"/>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report/
report.xml"/>
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset dir="target/junit-report">
<include name="report.xml"/>
</fileset>
<report format="noframes"
todir="target/junit-report/html"/>
</junitreport>
</target>
Post by akanksha
Hi Aslak,
I am getting a blank xml file.
It just has the suite information  as below
<?xml version="1.0" encoding="UTF-8" ?>
  <testsuites />
On using --format progress - i get the same output
below is my build.xml file
<project name="cukes-demo" basedir="." default="runcukes">
    <property name="repo" value="https://oss.sonatype.org/content/
repositories/releases"/>
    <property name="cucumber-jvm.version" value="1.0.2"/>
         <property name="cucumber-html.version" value="0.2.1"/>
    <property name="gherkin.version" value="2.9.3"/>
        <property name="test.classes" value="${basedir}/target/test-classes"/
    <property name="jars" value="lib"/>
        <property name="dotgem.parent" value="${basedir}/lib"/>
    <target name="download">
        <mkdir dir="${jars}"/>
        <get src="${repo}/info/cukes/cucumber-core/${cucumber-
jvm.version}/cucumber-core-${cucumber-jvm.version}.jar"
             dest="${jars}/cucumber-core-${cucumber-jvm.version}.jar"/
        <get src="${repo}/info/cukes/cucumber-java/${cucumber-
jvm.version}/cucumber-java-${cucumber-jvm.version}.jar"
             dest="${jars}/cucumber-java-${cucumber-jvm.version}.jar"/
        <get src="${repo}/info/cukes/cucumber-junit/${cucumber-
jvm.version}/cucumber-junit-${cucumber-jvm.version}.jar"
             dest="${jars}/cucumber-junit-${cucumber-jvm.version}.jar"/
        <get src="${repo}/info/cukes/gherkin/${gherkin.version}/
gherkin-${gherkin.version}.jar"
             dest="${jars}/gherkin-${gherkin.version}.jar"/>
        <get src="${repo}/info/cukes/cucumber-html/${cucumber-
html.version}/cucumber-html-${cucumber-html.version}.jar"
                     dest="${jars}/cucumber-html-${cucumber-
html.version}.jar"/>
    </target>
        <target name="clean" description="Delete all generated artifacts">
                        <delete dir="${basedir}/target" failonerror="false"/>
                        <!-- Necessary for our Eclipse project which points to the same
output folder -->
                        <mkdir dir="${test.classes}"/>
        </target>
    <target name="classpath" depends="clean">
        <path id="classpath">
            <fileset dir="${jars}">
                <include name="**/*.jar"/>
            </fileset>
            <!--<pathelement location="target/classes"/>-->
            <pathelement location="target/test-classes"/>
        </path>
    </target>
    <!--<target name="compile" depends="classpath">-->
        <!--<mkdir dir="target/classes"/>-->
        <!--<javac srcdir="src/main/java" destdir="target/classes"
classpathref="classpath" includeantruntime="false"/>-->
    <!--</target>-->
    <!--<target name="compile" depends="classpath">
        <mkdir dir="target/test-classes"/>
        <javac srcdir="src" destdir="target/test-classes"
classpathref="classpath" includeantruntime="false"/>
    </target>-->
        <target name="compile" depends="clean" description="Compile test
classes">
                        <copy todir="${test.classes}" overwrite="true">
                                <fileset dir="src">
                                        <include name="**/*.properties"/>
                                </fileset>
                        </copy>
                        <javac srcdir="src" destdir="${test.classes}" debug="true"
debuglevel="lines,source">
                                <classpath>
                                        <fileset dir="lib">
                                                <include name="**/*.jar"/>
                                        </fileset>
                                </classpath>
                        </javac>
                </target>
    <target name="runcukes" depends="compile">
        <mkdir dir="${basedir}/target/junit-report"/>
        <property file = "suite_execution.properties"/>
        <echo taskname="waitfor" message="${executeTags}" />
        <java classname="cucumber.cli.Main" fork="true">
            <classpath>
                <fileset dir="${jars}">
                    <include name="**/*.jar"/>
                </fileset>
                <!--<pathelement location="target/classes"/>-->
                <pathelement location="target/test-classes"/>
            </classpath>
                <arg value="--require"/>
                <arg value="${test.classes}"/>
            <arg value="--glue"/>
            <arg value="com"/>
                <arg value="--color"/>
                <arg value="--quiet"/>
                <arg value="--tags"/>
                <arg value="${IgnoreTags}"/>
                <arg value="--tags"/>
                <arg value="${executeTags}"/>
                <arg value="format"/>
            <arg value="progress"/>
                <arg value="--format"/>
                <arg value="junit:${basedir}/target/junit-report"/>
                <!--<arg value="out"/>
                <arg value="${basedir}/target/junit-report"/>-->
                <arg value="features"/>
        </java>
        <junitreport todir="target/junit-report">
                                <fileset dir="target/junit-report">
                                        <include name="TEST-*.xml"/>
                                </fileset>
                                <reportformat="noframes" todir="target/junit-report/html"/>
        </junitreport>
    </target>
</project>
Is there any other method to generate areportwhere i can get the
total number of scenarios passed and failed.
I am able to create a htmlreportbut it does not have a summary, I
need a summary
Thanks,
Akanksha
Post by akanksha
Hi Aslak,
I tried writing this way
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
but it still does not work.
Thereportthat gets generated does not have any data
1) You shouldgetan xml file per feature. Do yougetthat? Can you
share some of your XML files online in a gist or pastie?
2) What is the output when you run with --format progress instead. Can
we see it please?
Aslak
Post by akanksha
The format is generated but there is no data
A summary table as below  gets generated but has no data
Summary
Tests   Failures        Errors  Success rate    Time
0                0                       0        NaN                    0.000
Note: failures are anticipated and checked for with assertions while
errors are unanticipated.
Hi ,
I am migrating my project from Cuke4Duke tocucumberJVM
What command can i give in the build file( ant) so that i cangeta
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
    [java] 1650 steps (11 failed, 8 skipped, 1631 passed)
    [java] 76m56.856s
None yet:https://github.com/cucumber/cucumber-jvm/issues/195
Also i want ajunitreport. How can i generate that
I have given the following commands in the build file , but it does
not work
"it does not work" usually doesn't provide enough information to help anyone.
<arg value="--format"/>
               <arg value="junit:output"/>
               <arg value="out"/>
               <arg value="${basedir}/target/junit-report"/>
               <arg value="features"/>
       </java>
       <junitreport todir="target/junit-report">
                               <fileset dir="target/junit-report">
                                       <include name="TEST-*.xml"/>
                               </fileset>
                               <reportformat="noframes" todir="target/junit-report/html"/>
       </junitreport>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
Aslak
Thanks
Akanksha
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en.
-- There are two rules:

1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style

You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org To unsubscribe from this group, send email to cukes+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
aslak hellesoy
2012-05-03 00:29:05 UTC
Permalink
Post by akanksha
Hi,
I could get a proper xml generated
I could also get a junit report
My java code is very simple
It has a normal assert statement..
If the result is pass i get the junit report
but if the assert fails i do not get the junit report i only get the
xml
Can you tell me where is the error ?
Your question is Ant related and not Cucumber related.

Cucumber's exit status is 1 if a scenario fails, and this will only
fail the <java> task that launched it if failonerror is set to true,
causing your next task (<junitreport>) to not be executed.

However, the default value of failonerror is false, so it should run
<junitreport> regardless of exit status. I'd add some <echo>
statements to debug it.

If you can't figure it out, try out
https://github.com/cucumber/cucumber-jvm/blob/v1.0.4/examples/java-helloworld/build.xml#L42-75
or ask on the Ant mailing list.

Aslak
Post by akanksha
Following is my build file
 <target name="runcukes" depends="compile">
       <mkdir dir="${basedir}/target/junit-report"/>
       <property file = "suite_execution.properties"/>
            <java classname="cucumber.cli.Main" fork="true">
           <classpath>
               <fileset dir="${jars}">
                   <include name="**/*.jar"/>
               </fileset>
               <!--<pathelement location="target/classes"/>-->
               <pathelement location="target/test-classes"/>
           </classpath>
               <arg value="--require"/>
               <arg value="${test.classes}"/>
           <arg value="--glue"/>
           <arg value="com"/>
               <arg value="--color"/>
               <arg value="--quiet"/>
               <arg value="--tags"/>
               <arg value="${IgnoreTags}"/>
               <arg value="--tags"/>
               <arg value="${executeTags}"/>
               <arg value="format"/>
           <arg value="progress"/>
               <arg value="--format"/>
               <arg value="junit:${basedir}/target/junit-report/
report.xml"/>
              <arg value="features"/>
       </java>
       <junitreport todir="target/junit-report">
                               <fileset dir="target/junit-report">
                                       <include name="report.xml"/>
                               </fileset>
                               <report format="noframes"
todir="target/junit-report/html"/>
       </junitreport>
   </target>
Post by akanksha
Hi Aslak,
I am getting a blank xml file.
It just has the suite information  as below
<?xml version="1.0" encoding="UTF-8" ?>
  <testsuites />
On using --format progress - i get the same output
below is my build.xml file
<project name="cukes-demo" basedir="." default="runcukes">
    <property name="repo" value="https://oss.sonatype.org/content/
repositories/releases"/>
    <property name="cucumber-jvm.version" value="1.0.2"/>
         <property name="cucumber-html.version" value="0.2.1"/>
    <property name="gherkin.version" value="2.9.3"/>
        <property name="test.classes" value="${basedir}/target/test-classes"/
    <property name="jars" value="lib"/>
        <property name="dotgem.parent" value="${basedir}/lib"/>
    <target name="download">
        <mkdir dir="${jars}"/>
        <get src="${repo}/info/cukes/cucumber-core/${cucumber-
jvm.version}/cucumber-core-${cucumber-jvm.version}.jar"
             dest="${jars}/cucumber-core-${cucumber-jvm.version}.jar"/
        <get src="${repo}/info/cukes/cucumber-java/${cucumber-
jvm.version}/cucumber-java-${cucumber-jvm.version}.jar"
             dest="${jars}/cucumber-java-${cucumber-jvm.version}.jar"/
        <get src="${repo}/info/cukes/cucumber-junit/${cucumber-
jvm.version}/cucumber-junit-${cucumber-jvm.version}.jar"
             dest="${jars}/cucumber-junit-${cucumber-jvm.version}.jar"/
        <get src="${repo}/info/cukes/gherkin/${gherkin.version}/
gherkin-${gherkin.version}.jar"
             dest="${jars}/gherkin-${gherkin.version}.jar"/>
        <get src="${repo}/info/cukes/cucumber-html/${cucumber-
html.version}/cucumber-html-${cucumber-html.version}.jar"
                     dest="${jars}/cucumber-html-${cucumber-
html.version}.jar"/>
    </target>
        <target name="clean" description="Delete all generated artifacts">
                        <delete dir="${basedir}/target" failonerror="false"/>
                        <!-- Necessary for our Eclipse project which points to the same
output folder -->
                        <mkdir dir="${test.classes}"/>
        </target>
    <target name="classpath" depends="clean">
        <path id="classpath">
            <fileset dir="${jars}">
                <include name="**/*.jar"/>
            </fileset>
            <!--<pathelement location="target/classes"/>-->
            <pathelement location="target/test-classes"/>
        </path>
    </target>
    <!--<target name="compile" depends="classpath">-->
        <!--<mkdir dir="target/classes"/>-->
        <!--<javac srcdir="src/main/java" destdir="target/classes"
classpathref="classpath" includeantruntime="false"/>-->
    <!--</target>-->
    <!--<target name="compile" depends="classpath">
        <mkdir dir="target/test-classes"/>
        <javac srcdir="src" destdir="target/test-classes"
classpathref="classpath" includeantruntime="false"/>
    </target>-->
        <target name="compile" depends="clean" description="Compile test
classes">
                        <copy todir="${test.classes}" overwrite="true">
                                <fileset dir="src">
                                        <include name="**/*.properties"/>
                                </fileset>
                        </copy>
                        <javac srcdir="src" destdir="${test.classes}" debug="true"
debuglevel="lines,source">
                                <classpath>
                                        <fileset dir="lib">
                                                <include name="**/*.jar"/>
                                        </fileset>
                                </classpath>
                        </javac>
                </target>
    <target name="runcukes" depends="compile">
        <mkdir dir="${basedir}/target/junit-report"/>
        <property file = "suite_execution.properties"/>
        <echo taskname="waitfor" message="${executeTags}" />
        <java classname="cucumber.cli.Main" fork="true">
            <classpath>
                <fileset dir="${jars}">
                    <include name="**/*.jar"/>
                </fileset>
                <!--<pathelement location="target/classes"/>-->
                <pathelement location="target/test-classes"/>
            </classpath>
                <arg value="--require"/>
                <arg value="${test.classes}"/>
            <arg value="--glue"/>
            <arg value="com"/>
                <arg value="--color"/>
                <arg value="--quiet"/>
                <arg value="--tags"/>
                <arg value="${IgnoreTags}"/>
                <arg value="--tags"/>
                <arg value="${executeTags}"/>
                <arg value="format"/>
            <arg value="progress"/>
                <arg value="--format"/>
                <arg value="junit:${basedir}/target/junit-report"/>
                <!--<arg value="out"/>
                <arg value="${basedir}/target/junit-report"/>-->
                <arg value="features"/>
        </java>
        <junitreport todir="target/junit-report">
                                <fileset dir="target/junit-report">
                                        <include name="TEST-*.xml"/>
                                </fileset>
                                <reportformat="noframes" todir="target/junit-report/html"/>
        </junitreport>
    </target>
</project>
Is there any other method to generate areportwhere i can get the
total number of scenarios passed and failed.
I am able to create a htmlreportbut it does not have a summary, I
need a summary
Thanks,
Akanksha
Post by akanksha
Hi Aslak,
I tried writing this way
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
but it still does not work.
Thereportthat gets generated does not have any data
1) You shouldgetan xml file per feature. Do yougetthat? Can you
share some of your XML files online in a gist or pastie?
2) What is the output when you run with --format progress instead. Can
we see it please?
Aslak
Post by akanksha
The format is generated but there is no data
A summary table as below  gets generated but has no data
Summary
Tests   Failures        Errors  Success rate    Time
0                0                       0        NaN                    0.000
Note: failures are anticipated and checked for with assertions while
errors are unanticipated.
Hi ,
I am migrating my project from Cuke4Duke tocucumberJVM
What command can i give in the build file( ant) so that i cangeta
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
    [java] 1650 steps (11 failed, 8 skipped, 1631 passed)
    [java] 76m56.856s
None yet:https://github.com/cucumber/cucumber-jvm/issues/195
Also i want ajunitreport. How can i generate that
I have given the following commands in the build file , but it does
not work
"it does not work" usually doesn't provide enough information to help anyone.
<arg value="--format"/>
               <arg value="junit:output"/>
               <arg value="out"/>
               <arg value="${basedir}/target/junit-report"/>
               <arg value="features"/>
       </java>
       <junitreport todir="target/junit-report">
                               <fileset dir="target/junit-report">
                                       <include name="TEST-*.xml"/>
                               </fileset>
                               <reportformat="noframes" todir="target/junit-report/html"/>
       </junitreport>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
Aslak
Thanks
Akanksha
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group athttp://groups.google.com/group/cukes?hl=en.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
-- There are two rules:

1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style

You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org To unsubscribe from this group, send email to cukes+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
Madhu
2012-05-09 16:36:39 UTC
Permalink
Hi,

Can someone please look into this?

Even i am facing same issue , html report are not getting generated.

Tried executing the scripts with Build.xml

I have (jdk1.6.0_32) installed....
Windows XP

[junitreport] Processing
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml to
C:\cukes-demo\target\junit-report\html\junit-noframes.html
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl
[junitreport] : Error! The first argument to the non-static Java function
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml

XML gets generated and displays following
<?xml version="1.0" encoding="UTF-8"?><testsuite failed="0" tests="2">
<testcase classname="firsttest" name="(1)Verify that test gets executed
correctly" time="536">
<system-out><![CDATA[Given I've logged in as a USer in
Site...........................................passed
When I Navigate to Home
page..........................................................passed
Then it should display Welcome
text....................................passed
]]></system-out>
</testcase>
</testsuite>
Post by aslak hellesoy
Post by akanksha
Hi,
I could get a proper xml generated
I could also get a junit report
My java code is very simple
It has a normal assert statement..
If the result is pass i get the junit report
but if the assert fails i do not get the junit report i only get the
xml
Can you tell me where is the error ?
Your question is Ant related and not Cucumber related.
Cucumber's exit status is 1 if a scenario fails, and this will only
fail the <java> task that launched it if failonerror is set to true,
causing your next task (<junitreport>) to not be executed.
However, the default value of failonerror is false, so it should run
<junitreport> regardless of exit status. I'd add some <echo>
statements to debug it.
If you can't figure it out, try out
https://github.com/cucumber/cucumber-jvm/blob/v1.0.4/examples/java-helloworld/build.xml#L42-75
or ask on the Ant mailing list.
Aslak
Post by akanksha
Following is my build file
<target name="runcukes" depends="compile">
<mkdir dir="${basedir}/target/junit-report"/>
<property file = "suite_execution.properties"/>
<java classname="cucumber.cli.Main" fork="true">
<classpath>
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</classpath>
<arg value="--require"/>
<arg value="${test.classes}"/>
<arg value="--glue"/>
<arg value="com"/>
<arg value="--color"/>
<arg value="--quiet"/>
<arg value="--tags"/>
<arg value="${IgnoreTags}"/>
<arg value="--tags"/>
<arg value="${executeTags}"/>
<arg value="format"/>
<arg value="progress"/>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report/
report.xml"/>
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset dir="target/junit-report">
<include name="report.xml"/>
</fileset>
<report format="noframes"
todir="target/junit-report/html"/>
</junitreport>
</target>
Post by akanksha
Hi Aslak,
I am getting a blank xml file.
It just has the suite information as below
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites />
On using --format progress - i get the same output
below is my build.xml file
<project name="cukes-demo" basedir="." default="runcukes">
<property name="repo" value="https://oss.sonatype.org/content/
repositories/releases"/>
<property name="cucumber-jvm.version" value="1.0.2"/>
<property name="cucumber-html.version" value="0.2.1"/>
<property name="gherkin.version" value="2.9.3"/>
<property name="test.classes"
value="${basedir}/target/test-classes"/
Post by akanksha
Post by akanksha
<property name="jars" value="lib"/>
<property name="dotgem.parent" value="${basedir}/lib"/>
<target name="download">
<mkdir dir="${jars}"/>
<get src="${repo}/info/cukes/cucumber-core/${cucumber-
jvm.version}/cucumber-core-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-core-${cucumber-jvm.version}.jar"/
<get src="${repo}/info/cukes/cucumber-java/${cucumber-
jvm.version}/cucumber-java-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-java-${cucumber-jvm.version}.jar"/
<get src="${repo}/info/cukes/cucumber-junit/${cucumber-
jvm.version}/cucumber-junit-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-junit-${cucumber-jvm.version}.jar"/
<get src="${repo}/info/cukes/gherkin/${gherkin.version}/
gherkin-${gherkin.version}.jar"
dest="${jars}/gherkin-${gherkin.version}.jar"/>
<get src="${repo}/info/cukes/cucumber-html/${cucumber-
html.version}/cucumber-html-${cucumber-html.version}.jar"
dest="${jars}/cucumber-html-${cucumber-
html.version}.jar"/>
</target>
<target name="clean" description="Delete all generated
artifacts">
Post by akanksha
Post by akanksha
<delete dir="${basedir}/target"
failonerror="false"/>
Post by akanksha
Post by akanksha
<!-- Necessary for our Eclipse project which
points to the same
Post by akanksha
Post by akanksha
output folder -->
<mkdir dir="${test.classes}"/>
</target>
<target name="classpath" depends="clean">
<path id="classpath">
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</path>
</target>
<!--<target name="compile" depends="classpath">-->
<!--<mkdir dir="target/classes"/>-->
<!--<javac srcdir="src/main/java" destdir="target/classes"
classpathref="classpath" includeantruntime="false"/>-->
<!--</target>-->
<!--<target name="compile" depends="classpath">
<mkdir dir="target/test-classes"/>
<javac srcdir="src" destdir="target/test-classes"
classpathref="classpath" includeantruntime="false"/>
</target>-->
<target name="compile" depends="clean" description="Compile
test
Post by akanksha
Post by akanksha
classes">
<copy todir="${test.classes}" overwrite="true">
<fileset dir="src">
<include
name="**/*.properties"/>
Post by akanksha
Post by akanksha
</fileset>
</copy>
<javac srcdir="src" destdir="${test.classes}"
debug="true"
Post by akanksha
Post by akanksha
debuglevel="lines,source">
<classpath>
<fileset dir="lib">
<include
name="**/*.jar"/>
Post by akanksha
Post by akanksha
</fileset>
</classpath>
</javac>
</target>
<target name="runcukes" depends="compile">
<mkdir dir="${basedir}/target/junit-report"/>
<property file = "suite_execution.properties"/>
<echo taskname="waitfor" message="${executeTags}" />
<java classname="cucumber.cli.Main" fork="true">
<classpath>
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</classpath>
<arg value="--require"/>
<arg value="${test.classes}"/>
<arg value="--glue"/>
<arg value="com"/>
<arg value="--color"/>
<arg value="--quiet"/>
<arg value="--tags"/>
<arg value="${IgnoreTags}"/>
<arg value="--tags"/>
<arg value="${executeTags}"/>
<arg value="format"/>
<arg value="progress"/>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<!--<arg value="out"/>
<arg value="${basedir}/target/junit-report"/>-->
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset dir="target/junit-report">
<include name="TEST-*.xml"/>
</fileset>
<reportformat="noframes"
todir="target/junit-report/html"/>
Post by akanksha
Post by akanksha
</junitreport>
</target>
</project>
Is there any other method to generate areportwhere i can get the
total number of scenarios passed and failed.
I am able to create a htmlreportbut it does not have a summary, I
need a summary
Thanks,
Akanksha
Post by akanksha
Hi Aslak,
I tried writing this way
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
but it still does not work.
Thereportthat gets generated does not have any data
1) You shouldgetan xml file per feature. Do yougetthat? Can you
share some of your XML files online in a gist or pastie?
2) What is the output when you run with --format progress instead.
Can
Post by akanksha
Post by akanksha
we see it please?
Aslak
Post by akanksha
The format is generated but there is no data
A summary table as below gets generated but has no data
Summary
Tests Failures Errors Success rate Time
0 0 0 NaN
0.000
Post by akanksha
Post by akanksha
Post by akanksha
Note: failures are anticipated and checked for with assertions
while
Post by akanksha
Post by akanksha
Post by akanksha
errors are unanticipated.
Hi ,
I am migrating my project from Cuke4Duke tocucumberJVM
What command can i give in the build file( ant) so that i
cangeta
Post by akanksha
Post by akanksha
Post by akanksha
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
[java] 1650 steps (11 failed, 8 skipped, 1631 passed)
[java] 76m56.856s
None yet:https://github.com/cucumber/cucumber-jvm/issues/195
Also i want ajunitreport. How can i generate that
I have given the following commands in the build file , but it
does
Post by akanksha
Post by akanksha
Post by akanksha
not work
"it does not work" usually doesn't provide enough information to
help anyone.
Post by akanksha
Post by akanksha
Post by akanksha
<arg value="--format"/>
<arg value="junit:output"/>
<arg value="out"/>
<arg value="${basedir}/target/junit-report"/>
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset
dir="target/junit-report">
Post by akanksha
Post by akanksha
Post by akanksha
<include
name="TEST-*.xml"/>
Post by akanksha
Post by akanksha
Post by akanksha
</fileset>
<reportformat="noframes"
todir="target/junit-report/html"/>
Post by akanksha
Post by akanksha
Post by akanksha
</junitreport>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
Aslak
Thanks
Akanksha
--
You received this message because you are subscribed to the
Google Groups "Cukes" group.
Post by akanksha
Post by akanksha
Post by akanksha
To unsubscribe from this group, send email to
For more options, visit this group athttp://
groups.google.com/group/cukes?hl=en.
Post by akanksha
Post by akanksha
Post by akanksha
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
Post by akanksha
Post by akanksha
Post by akanksha
To unsubscribe from this group, send email to
For more options, visit this group athttp://
groups.google.com/group/cukes?hl=en.
Post by akanksha
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
Post by akanksha
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
Post by akanksha
You received this message because you are subscribed to the Google
Groups Cukes group. To post to this group, send email to
https://groups.google.com/d/forum/cukes?hl=en
-- There are two rules:

1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style

You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org To unsubscribe from this group, send email to cukes+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
aslak hellesoy
2012-05-09 16:47:14 UTC
Permalink
Post by Madhu
Hi,
Can someone please look into this?
Step one would be for you to explain how others can do what you're
doing. We don't have your source code.

If you clone the cucumber-jvm github repo - can you run the
examples/java-helloworld example successfully?

Aslak
Post by Madhu
Even i am facing same issue , html report are not getting generated.
Tried executing the scripts with Build.xml
I have (jdk1.6.0_32) installed....
Windows XP
[junitreport] Processing
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml to
C:\cukes-demo\target\junit-report\html\junit-noframes.html
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl
[junitreport] : Error! The first argument to the non-static Java function
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml
XML gets generated and displays following
<?xml version="1.0" encoding="UTF-8"?><testsuite failed="0" tests="2">
<testcase classname="firsttest" name="(1)Verify that test gets executed
correctly" time="536">
<system-out><![CDATA[Given I've logged in as a USer in
Site...........................................passed
When I Navigate to Home
page..........................................................passed
Then it should display Welcome
text....................................passed
]]></system-out>
</testcase>
</testsuite>
Post by aslak hellesoy
Post by akanksha
Hi,
I could get a proper xml generated
I could also get a junit report
My java code is very simple
It has a normal assert statement..
If the result is pass i get the junit report
but if the assert fails i do not get the junit report i only get the
xml
Can you tell me where is the error ?
Your question is Ant related and not Cucumber related.
Cucumber's exit status is 1 if a scenario fails, and this will only
fail the <java> task that launched it if failonerror is set to true,
causing your next task (<junitreport>) to not be executed.
However, the default value of failonerror is false, so it should run
<junitreport> regardless of exit status. I'd add some <echo>
statements to debug it.
If you can't figure it out, try out
https://github.com/cucumber/cucumber-jvm/blob/v1.0.4/examples/java-helloworld/build.xml#L42-75
or ask on the Ant mailing list.
Aslak
Post by akanksha
Following is my build file
 <target name="runcukes" depends="compile">
       <mkdir dir="${basedir}/target/junit-report"/>
       <property file = "suite_execution.properties"/>
            <java classname="cucumber.cli.Main" fork="true">
           <classpath>
               <fileset dir="${jars}">
                   <include name="**/*.jar"/>
               </fileset>
               <!--<pathelement location="target/classes"/>-->
               <pathelement location="target/test-classes"/>
           </classpath>
               <arg value="--require"/>
               <arg value="${test.classes}"/>
           <arg value="--glue"/>
           <arg value="com"/>
               <arg value="--color"/>
               <arg value="--quiet"/>
               <arg value="--tags"/>
               <arg value="${IgnoreTags}"/>
               <arg value="--tags"/>
               <arg value="${executeTags}"/>
               <arg value="format"/>
           <arg value="progress"/>
               <arg value="--format"/>
               <arg value="junit:${basedir}/target/junit-report/
report.xml"/>
              <arg value="features"/>
       </java>
       <junitreport todir="target/junit-report">
                               <fileset dir="target/junit-report">
                                       <include name="report.xml"/>
                               </fileset>
                               <report format="noframes"
todir="target/junit-report/html"/>
       </junitreport>
   </target>
Post by akanksha
Hi Aslak,
I am getting a blank xml file.
It just has the suite information  as below
<?xml version="1.0" encoding="UTF-8" ?>
  <testsuites />
On using --format progress - i get the same output
below is my build.xml file
<project name="cukes-demo" basedir="." default="runcukes">
    <property name="repo" value="https://oss.sonatype.org/content/
repositories/releases"/>
    <property name="cucumber-jvm.version" value="1.0.2"/>
         <property name="cucumber-html.version" value="0.2.1"/>
    <property name="gherkin.version" value="2.9.3"/>
        <property name="test.classes"
value="${basedir}/target/test-classes"/
    <property name="jars" value="lib"/>
        <property name="dotgem.parent" value="${basedir}/lib"/>
    <target name="download">
        <mkdir dir="${jars}"/>
        <get src="${repo}/info/cukes/cucumber-core/${cucumber-
jvm.version}/cucumber-core-${cucumber-jvm.version}.jar"
             dest="${jars}/cucumber-core-${cucumber-jvm.version}.jar"/
        <get src="${repo}/info/cukes/cucumber-java/${cucumber-
jvm.version}/cucumber-java-${cucumber-jvm.version}.jar"
             dest="${jars}/cucumber-java-${cucumber-jvm.version}.jar"/
        <get src="${repo}/info/cukes/cucumber-junit/${cucumber-
jvm.version}/cucumber-junit-${cucumber-jvm.version}.jar"
             dest="${jars}/cucumber-junit-${cucumber-jvm.version}.jar"/
        <get src="${repo}/info/cukes/gherkin/${gherkin.version}/
gherkin-${gherkin.version}.jar"
             dest="${jars}/gherkin-${gherkin.version}.jar"/>
        <get src="${repo}/info/cukes/cucumber-html/${cucumber-
html.version}/cucumber-html-${cucumber-html.version}.jar"
                     dest="${jars}/cucumber-html-${cucumber-
html.version}.jar"/>
    </target>
        <target name="clean" description="Delete all generated artifacts">
                        <delete dir="${basedir}/target"
failonerror="false"/>
                        <!-- Necessary for our Eclipse project which
points to the same
output folder -->
                        <mkdir dir="${test.classes}"/>
        </target>
    <target name="classpath" depends="clean">
        <path id="classpath">
            <fileset dir="${jars}">
                <include name="**/*.jar"/>
            </fileset>
            <!--<pathelement location="target/classes"/>-->
            <pathelement location="target/test-classes"/>
        </path>
    </target>
    <!--<target name="compile" depends="classpath">-->
        <!--<mkdir dir="target/classes"/>-->
        <!--<javac srcdir="src/main/java" destdir="target/classes"
classpathref="classpath" includeantruntime="false"/>-->
    <!--</target>-->
    <!--<target name="compile" depends="classpath">
        <mkdir dir="target/test-classes"/>
        <javac srcdir="src" destdir="target/test-classes"
classpathref="classpath" includeantruntime="false"/>
    </target>-->
        <target name="compile" depends="clean" description="Compile test
classes">
                        <copy todir="${test.classes}" overwrite="true">
                                <fileset dir="src">
                                        <include
name="**/*.properties"/>
                                </fileset>
                        </copy>
                        <javac srcdir="src" destdir="${test.classes}"
debug="true"
debuglevel="lines,source">
                                <classpath>
                                        <fileset dir="lib">
                                                <include
name="**/*.jar"/>
                                        </fileset>
                                </classpath>
                        </javac>
                </target>
    <target name="runcukes" depends="compile">
        <mkdir dir="${basedir}/target/junit-report"/>
        <property file = "suite_execution.properties"/>
        <echo taskname="waitfor" message="${executeTags}" />
        <java classname="cucumber.cli.Main" fork="true">
            <classpath>
                <fileset dir="${jars}">
                    <include name="**/*.jar"/>
                </fileset>
                <!--<pathelement location="target/classes"/>-->
                <pathelement location="target/test-classes"/>
            </classpath>
                <arg value="--require"/>
                <arg value="${test.classes}"/>
            <arg value="--glue"/>
            <arg value="com"/>
                <arg value="--color"/>
                <arg value="--quiet"/>
                <arg value="--tags"/>
                <arg value="${IgnoreTags}"/>
                <arg value="--tags"/>
                <arg value="${executeTags}"/>
                <arg value="format"/>
            <arg value="progress"/>
                <arg value="--format"/>
                <arg value="junit:${basedir}/target/junit-report"/>
                <!--<arg value="out"/>
                <arg value="${basedir}/target/junit-report"/>-->
                <arg value="features"/>
        </java>
        <junitreport todir="target/junit-report">
                                <fileset dir="target/junit-report">
                                        <include name="TEST-*.xml"/>
                                </fileset>
                                <reportformat="noframes"
todir="target/junit-report/html"/>
        </junitreport>
    </target>
</project>
Is there any other method to generate areportwhere i can get the
total number of scenarios passed and failed.
I am able to create a htmlreportbut it does not have a summary, I
need a summary
Thanks,
Akanksha
Post by akanksha
Hi Aslak,
I tried writing this way
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
but it still does not work.
Thereportthat gets generated does not have any data
1) You shouldgetan xml file per feature. Do yougetthat? Can you
share some of your XML files online in a gist or pastie?
2) What is the output when you run with --format progress instead. Can
we see it please?
Aslak
Post by akanksha
The format is generated but there is no data
A summary table as below  gets generated but has no data
Summary
Tests   Failures        Errors  Success rate    Time
0                0                       0        NaN
     0.000
Note: failures are anticipated and checked for with assertions while
errors are unanticipated.
On Mon, Apr 16, 2012 at 12:36 PM, akanksha
Hi ,
I am migrating my project from Cuke4Duke tocucumberJVM
What command can i give in the build file( ant) so that i cangeta
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
    [java] 1650 steps (11 failed, 8 skipped, 1631 passed)
    [java] 76m56.856s
None yet:https://github.com/cucumber/cucumber-jvm/issues/195
Also i want ajunitreport. How can i generate that
I have given the following commands in the build file , but it does
not work
"it does not work" usually doesn't provide enough information to
help anyone.
<arg value="--format"/>
               <arg value="junit:output"/>
               <arg value="out"/>
               <arg value="${basedir}/target/junit-report"/>
               <arg value="features"/>
       </java>
       <junitreport todir="target/junit-report">
                               <fileset
dir="target/junit-report">
                                       <include
name="TEST-*.xml"/>
                               </fileset>
                               <reportformat="noframes"
todir="target/junit-report/html"/>
       </junitreport>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
Aslak
Thanks
Akanksha
--
You received this message because you are subscribed to the
Google Groups "Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google
Groups Cukes group. To post to this group, send email to
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people
to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
unsubscribe from this group, send email to
https://groups.google.com/d/forum/cukes?hl=en
-- There are two rules:

1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style

You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org To unsubscribe from this group, send email to cukes+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
Madhuri Sanap
2012-05-09 17:30:56 UTC
Permalink
Yes, I executed java-helloworld example but i am still facing the same
issue.

Is it ANT org.apache.ant_1.7.1 causing the issue?

[junitreport] Processing
C:\java-helloworld\target\junit-report\TESTS-TestSuites.xml to
C:\DOCUME~1\sangm9\LOCALS~1\Temp\null1952421358
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] : Error! The first argument to the non-static Java function
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\java-helloworld\target\junit-report\TESTS-TestSuites.xml

Regards,
Madhuri S,
Post by aslak hellesoy
Post by Madhu
Hi,
Can someone please look into this?
Step one would be for you to explain how others can do what you're
doing. We don't have your source code.
If you clone the cucumber-jvm github repo - can you run the
examples/java-helloworld example successfully?
Aslak
Post by Madhu
Even i am facing same issue , html report are not getting generated.
Tried executing the scripts with Build.xml
I have (jdk1.6.0_32) installed....
Windows XP
[junitreport] Processing
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml to
C:\cukes-demo\target\junit-report\html\junit-noframes.html
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl
Post by Madhu
[junitreport] : Error! The first argument to the non-static Java function
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml
XML gets generated and displays following
<?xml version="1.0" encoding="UTF-8"?><testsuite failed="0" tests="2">
<testcase classname="firsttest" name="(1)Verify that test gets executed
correctly" time="536">
<system-out><![CDATA[Given I've logged in as a USer in
Site...........................................passed
When I Navigate to Home
page..........................................................passed
Then it should display Welcome
text....................................passed
]]></system-out>
</testcase>
</testsuite>
Post by aslak hellesoy
Post by akanksha
Hi,
I could get a proper xml generated
I could also get a junit report
My java code is very simple
It has a normal assert statement..
If the result is pass i get the junit report
but if the assert fails i do not get the junit report i only get the
xml
Can you tell me where is the error ?
Your question is Ant related and not Cucumber related.
Cucumber's exit status is 1 if a scenario fails, and this will only
fail the <java> task that launched it if failonerror is set to true,
causing your next task (<junitreport>) to not be executed.
However, the default value of failonerror is false, so it should run
<junitreport> regardless of exit status. I'd add some <echo>
statements to debug it.
If you can't figure it out, try out
https://github.com/cucumber/cucumber-jvm/blob/v1.0.4/examples/java-helloworld/build.xml#L42-75
Post by Madhu
Post by aslak hellesoy
or ask on the Ant mailing list.
Aslak
Post by akanksha
Following is my build file
<target name="runcukes" depends="compile">
<mkdir dir="${basedir}/target/junit-report"/>
<property file = "suite_execution.properties"/>
<java classname="cucumber.cli.Main" fork="true">
<classpath>
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</classpath>
<arg value="--require"/>
<arg value="${test.classes}"/>
<arg value="--glue"/>
<arg value="com"/>
<arg value="--color"/>
<arg value="--quiet"/>
<arg value="--tags"/>
<arg value="${IgnoreTags}"/>
<arg value="--tags"/>
<arg value="${executeTags}"/>
<arg value="format"/>
<arg value="progress"/>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report/
report.xml"/>
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset dir="target/junit-report">
<include name="report.xml"/>
</fileset>
<report format="noframes"
todir="target/junit-report/html"/>
</junitreport>
</target>
Post by akanksha
Hi Aslak,
I am getting a blank xml file.
It just has the suite information as below
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites />
On using --format progress - i get the same output
below is my build.xml file
<project name="cukes-demo" basedir="." default="runcukes">
<property name="repo" value="https://oss.sonatype.org/content/
repositories/releases"/>
<property name="cucumber-jvm.version" value="1.0.2"/>
<property name="cucumber-html.version" value="0.2.1"/>
<property name="gherkin.version" value="2.9.3"/>
<property name="test.classes"
value="${basedir}/target/test-classes"/
<property name="jars" value="lib"/>
<property name="dotgem.parent" value="${basedir}/lib"/>
<target name="download">
<mkdir dir="${jars}"/>
<get src="${repo}/info/cukes/cucumber-core/${cucumber-
jvm.version}/cucumber-core-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-core-${cucumber-jvm.version}.jar"/
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
<get src="${repo}/info/cukes/cucumber-java/${cucumber-
jvm.version}/cucumber-java-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-java-${cucumber-jvm.version}.jar"/
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
<get src="${repo}/info/cukes/cucumber-junit/${cucumber-
jvm.version}/cucumber-junit-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-junit-${cucumber-jvm.version}.jar"/
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
<get src="${repo}/info/cukes/gherkin/${gherkin.version}/
gherkin-${gherkin.version}.jar"
dest="${jars}/gherkin-${gherkin.version}.jar"/>
<get src="${repo}/info/cukes/cucumber-html/${cucumber-
html.version}/cucumber-html-${cucumber-html.version}.jar"
dest="${jars}/cucumber-html-${cucumber-
html.version}.jar"/>
</target>
<target name="clean" description="Delete all generated artifacts">
<delete dir="${basedir}/target"
failonerror="false"/>
<!-- Necessary for our Eclipse project which
points to the same
output folder -->
<mkdir dir="${test.classes}"/>
</target>
<target name="classpath" depends="clean">
<path id="classpath">
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</path>
</target>
<!--<target name="compile" depends="classpath">-->
<!--<mkdir dir="target/classes"/>-->
<!--<javac srcdir="src/main/java" destdir="target/classes"
classpathref="classpath" includeantruntime="false"/>-->
<!--</target>-->
<!--<target name="compile" depends="classpath">
<mkdir dir="target/test-classes"/>
<javac srcdir="src" destdir="target/test-classes"
classpathref="classpath" includeantruntime="false"/>
</target>-->
<target name="compile" depends="clean" description="Compile test
classes">
<copy todir="${test.classes}"
overwrite="true">
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
<fileset dir="src">
<include
name="**/*.properties"/>
</fileset>
</copy>
<javac srcdir="src" destdir="${test.classes}"
debug="true"
debuglevel="lines,source">
<classpath>
<fileset dir="lib">
<include
name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="runcukes" depends="compile">
<mkdir dir="${basedir}/target/junit-report"/>
<property file = "suite_execution.properties"/>
<echo taskname="waitfor" message="${executeTags}" />
<java classname="cucumber.cli.Main" fork="true">
<classpath>
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</classpath>
<arg value="--require"/>
<arg value="${test.classes}"/>
<arg value="--glue"/>
<arg value="com"/>
<arg value="--color"/>
<arg value="--quiet"/>
<arg value="--tags"/>
<arg value="${IgnoreTags}"/>
<arg value="--tags"/>
<arg value="${executeTags}"/>
<arg value="format"/>
<arg value="progress"/>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<!--<arg value="out"/>
<arg value="${basedir}/target/junit-report"/>-->
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset dir="target/junit-report">
<include name="TEST-*.xml"/>
</fileset>
<reportformat="noframes"
todir="target/junit-report/html"/>
</junitreport>
</target>
</project>
Is there any other method to generate areportwhere i can get the
total number of scenarios passed and failed.
I am able to create a htmlreportbut it does not have a summary, I
need a summary
Thanks,
Akanksha
Post by akanksha
Hi Aslak,
I tried writing this way
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
but it still does not work.
Thereportthat gets generated does not have any data
1) You shouldgetan xml file per feature. Do yougetthat? Can you
share some of your XML files online in a gist or pastie?
2) What is the output when you run with --format progress instead. Can
we see it please?
Aslak
Post by akanksha
The format is generated but there is no data
A summary table as below gets generated but has no data
Summary
Tests Failures Errors Success rate Time
0 0 0 NaN
0.000
Note: failures are anticipated and checked for with assertions while
errors are unanticipated.
On Mon, Apr 16, 2012 at 12:36 PM, akanksha
Hi ,
I am migrating my project from Cuke4Duke tocucumberJVM
What command can i give in the build file( ant) so that i cangeta
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
[java] 1650 steps (11 failed, 8 skipped, 1631 passed)
[java] 76m56.856s
None yet:https://github.com/cucumber/cucumber-jvm/issues/195
Also i want ajunitreport. How can i generate that
I have given the following commands in the build file , but it
does
not work
"it does not work" usually doesn't provide enough information to
help anyone.
<arg value="--format"/>
<arg value="junit:output"/>
<arg value="out"/>
<arg value="${basedir}/target/junit-report"/>
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset
dir="target/junit-report">
<include
name="TEST-*.xml"/>
</fileset>
<reportformat="noframes"
todir="target/junit-report/html"/>
</junitreport>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
Aslak
Thanks
Akanksha
--
You received this message because you are subscribed to the
Google Groups "Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the
Google
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
Groups "Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google
Groups Cukes group. To post to this group, send email to
group at
Post by Madhu
Post by aslak hellesoy
Post by akanksha
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people
Post by Madhu
to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
To
Post by Madhu
unsubscribe from this group, send email to
at
Post by Madhu
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group, send email to
https://groups.google.com/d/forum/cukes?hl=en
--
Regards,
Madhuri S.

-- There are two rules:

1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style

You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org To unsubscribe from this group, send email to cukes+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
Madhuri Sanap
2012-05-09 17:33:05 UTC
Permalink
Attached files for reference
Post by Madhuri Sanap
Yes, I executed java-helloworld example but i am still facing the same
issue.
Is it ANT org.apache.ant_1.7.1 causing the issue?
[junitreport] Processing
C:\java-helloworld\target\junit-report\TESTS-TestSuites.xml to
C:\DOCUME~1\sangm9\LOCALS~1\Temp\null1952421358
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] : Error! The first argument to the non-static Java function
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\java-helloworld\target\junit-report\TESTS-TestSuites.xml
Regards,
Madhuri S,
Post by aslak hellesoy
Post by Madhu
Hi,
Can someone please look into this?
Step one would be for you to explain how others can do what you're
doing. We don't have your source code.
If you clone the cucumber-jvm github repo - can you run the
examples/java-helloworld example successfully?
Aslak
Post by Madhu
Even i am facing same issue , html report are not getting generated.
Tried executing the scripts with Build.xml
I have (jdk1.6.0_32) installed....
Windows XP
[junitreport] Processing
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml to
C:\cukes-demo\target\junit-report\html\junit-noframes.html
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl
Post by Madhu
[junitreport] : Error! The first argument to the non-static Java
function
Post by Madhu
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml
XML gets generated and displays following
<?xml version="1.0" encoding="UTF-8"?><testsuite failed="0" tests="2">
<testcase classname="firsttest" name="(1)Verify that test gets executed
correctly" time="536">
<system-out><![CDATA[Given I've logged in as a USer in
Site...........................................passed
When I Navigate to Home
page..........................................................passed
Then it should display Welcome
text....................................passed
]]></system-out>
</testcase>
</testsuite>
Post by aslak hellesoy
Post by akanksha
Hi,
I could get a proper xml generated
I could also get a junit report
My java code is very simple
It has a normal assert statement..
If the result is pass i get the junit report
but if the assert fails i do not get the junit report i only get the
xml
Can you tell me where is the error ?
Your question is Ant related and not Cucumber related.
Cucumber's exit status is 1 if a scenario fails, and this will only
fail the <java> task that launched it if failonerror is set to true,
causing your next task (<junitreport>) to not be executed.
However, the default value of failonerror is false, so it should run
<junitreport> regardless of exit status. I'd add some <echo>
statements to debug it.
If you can't figure it out, try out
https://github.com/cucumber/cucumber-jvm/blob/v1.0.4/examples/java-helloworld/build.xml#L42-75
Post by Madhu
Post by aslak hellesoy
or ask on the Ant mailing list.
Aslak
Post by akanksha
Following is my build file
<target name="runcukes" depends="compile">
<mkdir dir="${basedir}/target/junit-report"/>
<property file = "suite_execution.properties"/>
<java classname="cucumber.cli.Main" fork="true">
<classpath>
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</classpath>
<arg value="--require"/>
<arg value="${test.classes}"/>
<arg value="--glue"/>
<arg value="com"/>
<arg value="--color"/>
<arg value="--quiet"/>
<arg value="--tags"/>
<arg value="${IgnoreTags}"/>
<arg value="--tags"/>
<arg value="${executeTags}"/>
<arg value="format"/>
<arg value="progress"/>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report/
report.xml"/>
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset dir="target/junit-report">
<include name="report.xml"/>
</fileset>
<report format="noframes"
todir="target/junit-report/html"/>
</junitreport>
</target>
Post by akanksha
Hi Aslak,
I am getting a blank xml file.
It just has the suite information as below
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites />
On using --format progress - i get the same output
below is my build.xml file
<project name="cukes-demo" basedir="." default="runcukes">
<property name="repo" value="https://oss.sonatype.org/content/
repositories/releases"/>
<property name="cucumber-jvm.version" value="1.0.2"/>
<property name="cucumber-html.version" value="0.2.1"/>
<property name="gherkin.version" value="2.9.3"/>
<property name="test.classes"
value="${basedir}/target/test-classes"/
<property name="jars" value="lib"/>
<property name="dotgem.parent" value="${basedir}/lib"/>
<target name="download">
<mkdir dir="${jars}"/>
<get src="${repo}/info/cukes/cucumber-core/${cucumber-
jvm.version}/cucumber-core-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-core-${cucumber-jvm.version}.jar"/
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
<get src="${repo}/info/cukes/cucumber-java/${cucumber-
jvm.version}/cucumber-java-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-java-${cucumber-jvm.version}.jar"/
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
<get src="${repo}/info/cukes/cucumber-junit/${cucumber-
jvm.version}/cucumber-junit-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-junit-${cucumber-jvm.version}.jar"/
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
<get src="${repo}/info/cukes/gherkin/${gherkin.version}/
gherkin-${gherkin.version}.jar"
dest="${jars}/gherkin-${gherkin.version}.jar"/>
<get src="${repo}/info/cukes/cucumber-html/${cucumber-
html.version}/cucumber-html-${cucumber-html.version}.jar"
dest="${jars}/cucumber-html-${cucumber-
html.version}.jar"/>
</target>
<target name="clean" description="Delete all generated artifacts">
<delete dir="${basedir}/target"
failonerror="false"/>
<!-- Necessary for our Eclipse project which
points to the same
output folder -->
<mkdir dir="${test.classes}"/>
</target>
<target name="classpath" depends="clean">
<path id="classpath">
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</path>
</target>
<!--<target name="compile" depends="classpath">-->
<!--<mkdir dir="target/classes"/>-->
<!--<javac srcdir="src/main/java" destdir="target/classes"
classpathref="classpath" includeantruntime="false"/>-->
<!--</target>-->
<!--<target name="compile" depends="classpath">
<mkdir dir="target/test-classes"/>
<javac srcdir="src" destdir="target/test-classes"
classpathref="classpath" includeantruntime="false"/>
</target>-->
<target name="compile" depends="clean" description="Compile test
classes">
<copy todir="${test.classes}"
overwrite="true">
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
<fileset dir="src">
<include
name="**/*.properties"/>
</fileset>
</copy>
<javac srcdir="src"
destdir="${test.classes}"
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
debug="true"
debuglevel="lines,source">
<classpath>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="runcukes" depends="compile">
<mkdir dir="${basedir}/target/junit-report"/>
<property file = "suite_execution.properties"/>
<echo taskname="waitfor" message="${executeTags}" />
<java classname="cucumber.cli.Main" fork="true">
<classpath>
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</classpath>
<arg value="--require"/>
<arg value="${test.classes}"/>
<arg value="--glue"/>
<arg value="com"/>
<arg value="--color"/>
<arg value="--quiet"/>
<arg value="--tags"/>
<arg value="${IgnoreTags}"/>
<arg value="--tags"/>
<arg value="${executeTags}"/>
<arg value="format"/>
<arg value="progress"/>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<!--<arg value="out"/>
<arg value="${basedir}/target/junit-report"/>-->
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset dir="target/junit-report">
<include name="TEST-*.xml"/>
</fileset>
<reportformat="noframes"
todir="target/junit-report/html"/>
</junitreport>
</target>
</project>
Is there any other method to generate areportwhere i can get the
total number of scenarios passed and failed.
I am able to create a htmlreportbut it does not have a summary, I
need a summary
Thanks,
Akanksha
Post by akanksha
Hi Aslak,
I tried writing this way
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
but it still does not work.
Thereportthat gets generated does not have any data
1) You shouldgetan xml file per feature. Do yougetthat? Can you
share some of your XML files online in a gist or pastie?
2) What is the output when you run with --format progress instead. Can
we see it please?
Aslak
Post by akanksha
The format is generated but there is no data
A summary table as below gets generated but has no data
Summary
Tests Failures Errors Success rate Time
0 0 0 NaN
0.000
Note: failures are anticipated and checked for with assertions while
errors are unanticipated.
On Mon, Apr 16, 2012 at 12:36 PM, akanksha
Hi ,
I am migrating my project from Cuke4Duke tocucumberJVM
What command can i give in the build file( ant) so that i
cangeta
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
[java] 1650 steps (11 failed, 8 skipped, 1631 passed)
[java] 76m56.856s
None yet:https://github.com/cucumber/cucumber-jvm/issues/195
Also i want ajunitreport. How can i generate that
I have given the following commands in the build file , but
it
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
does
not work
"it does not work" usually doesn't provide enough information
to
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
help anyone.
<arg value="--format"/>
<arg value="junit:output"/>
<arg value="out"/>
<arg value="${basedir}/target/junit-report"/>
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset
dir="target/junit-report">
<include
name="TEST-*.xml"/>
</fileset>
<reportformat="noframes"
todir="target/junit-report/html"/>
</junitreport>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
Aslak
Thanks
Akanksha
--
You received this message because you are subscribed to the
Google Groups "Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the
Google
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
Groups "Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google
Groups Cukes group. To post to this group, send email to
to
group at
Post by Madhu
Post by aslak hellesoy
Post by akanksha
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people
Post by Madhu
to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google
Groups
Post by Madhu
Cukes group. To post to this group, send email to
unsubscribe from this group, send email to
at
Post by Madhu
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group, send email to
at https://groups.google.com/d/forum/cukes?hl=en
--
Regards,
Madhuri S.
--
Regards,
Madhuri S.

-- There are two rules:

1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style

You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org To unsubscribe from this group, send email to cukes+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
aslak hellesoy
2012-05-09 17:49:52 UTC
Permalink
Post by Madhuri Sanap
Attached files for reference
Yes, I executed  java-helloworld example but i am still facing the same
issue.
Is it ANT org.apache.ant_1.7.1 causing the issue?
Most likely. I'm on Ant 1.8.2 (preinstalled on OS X Lion) and
everything works fine here.

Aslak
Post by Madhuri Sanap
[junitreport] Processing
C:\java-helloworld\target\junit-report\TESTS-TestSuites.xml to
C:\DOCUME~1\sangm9\LOCALS~1\Temp\null1952421358
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] : Error! The first argument to the non-static Java function
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\java-helloworld\target\junit-report\TESTS-TestSuites.xml
Regards,
Madhuri S,
Post by aslak hellesoy
Post by Madhu
Hi,
Can someone please look into this?
Step one would be for you to explain how others can do what you're
doing. We don't have your source code.
If you clone the cucumber-jvm github repo - can you run the
examples/java-helloworld example successfully?
Aslak
Post by Madhu
Even i am facing same issue , html report are not getting generated.
Tried executing the scripts with Build.xml
I have (jdk1.6.0_32) installed....
Windows XP
[junitreport] Processing
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml to
C:\cukes-demo\target\junit-report\html\junit-noframes.html
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl
[junitreport] : Error! The first argument to the non-static Java function
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml
XML gets generated and displays following
<?xml version="1.0" encoding="UTF-8"?><testsuite failed="0" tests="2">
<testcase classname="firsttest" name="(1)Verify that test gets executed
correctly" time="536">
<system-out><![CDATA[Given I've logged in as a USer in
Site...........................................passed
When I Navigate to Home
page..........................................................passed
Then it should display Welcome
text....................................passed
]]></system-out>
</testcase>
</testsuite>
Post by aslak hellesoy
Post by akanksha
Hi,
I could get a proper xml generated
I could also get a junit report
My java code is very simple
It has a normal assert statement..
If the result is pass i get the junit report
but if the assert fails i do not get the junit report i only get the
xml
Can you tell me where is the error ?
Your question is Ant related and not Cucumber related.
Cucumber's exit status is 1 if a scenario fails, and this will only
fail the <java> task that launched it if failonerror is set to true,
causing your next task (<junitreport>) to not be executed.
However, the default value of failonerror is false, so it should run
<junitreport> regardless of exit status. I'd add some <echo>
statements to debug it.
If you can't figure it out, try out
https://github.com/cucumber/cucumber-jvm/blob/v1.0.4/examples/java-helloworld/build.xml#L42-75
or ask on the Ant mailing list.
Aslak
Post by akanksha
Following is my build file
 <target name="runcukes" depends="compile">
       <mkdir dir="${basedir}/target/junit-report"/>
       <property file = "suite_execution.properties"/>
            <java classname="cucumber.cli.Main" fork="true">
           <classpath>
               <fileset dir="${jars}">
                   <include name="**/*.jar"/>
               </fileset>
               <!--<pathelement location="target/classes"/>-->
               <pathelement location="target/test-classes"/>
           </classpath>
               <arg value="--require"/>
               <arg value="${test.classes}"/>
           <arg value="--glue"/>
           <arg value="com"/>
               <arg value="--color"/>
               <arg value="--quiet"/>
               <arg value="--tags"/>
               <arg value="${IgnoreTags}"/>
               <arg value="--tags"/>
               <arg value="${executeTags}"/>
               <arg value="format"/>
           <arg value="progress"/>
               <arg value="--format"/>
               <arg value="junit:${basedir}/target/junit-report/
report.xml"/>
              <arg value="features"/>
       </java>
       <junitreport todir="target/junit-report">
                               <fileset dir="target/junit-report">
                                       <include name="report.xml"/>
                               </fileset>
                               <report format="noframes"
todir="target/junit-report/html"/>
       </junitreport>
   </target>
Post by akanksha
Hi Aslak,
I am getting a blank xml file.
It just has the suite information  as below
<?xml version="1.0" encoding="UTF-8" ?>
  <testsuites />
On using --format progress - i get the same output
below is my build.xml file
<project name="cukes-demo" basedir="." default="runcukes">
    <property name="repo" value="https://oss.sonatype.org/content/
repositories/releases"/>
    <property name="cucumber-jvm.version" value="1.0.2"/>
         <property name="cucumber-html.version" value="0.2.1"/>
    <property name="gherkin.version" value="2.9.3"/>
        <property name="test.classes"
value="${basedir}/target/test-classes"/
    <property name="jars" value="lib"/>
        <property name="dotgem.parent" value="${basedir}/lib"/>
    <target name="download">
        <mkdir dir="${jars}"/>
        <get src="${repo}/info/cukes/cucumber-core/${cucumber-
jvm.version}/cucumber-core-${cucumber-jvm.version}.jar"
 dest="${jars}/cucumber-core-${cucumber-jvm.version}.jar"/
        <get src="${repo}/info/cukes/cucumber-java/${cucumber-
jvm.version}/cucumber-java-${cucumber-jvm.version}.jar"
 dest="${jars}/cucumber-java-${cucumber-jvm.version}.jar"/
        <get src="${repo}/info/cukes/cucumber-junit/${cucumber-
jvm.version}/cucumber-junit-${cucumber-jvm.version}.jar"
 dest="${jars}/cucumber-junit-${cucumber-jvm.version}.jar"/
        <get src="${repo}/info/cukes/gherkin/${gherkin.version}/
gherkin-${gherkin.version}.jar"
             dest="${jars}/gherkin-${gherkin.version}.jar"/>
        <get src="${repo}/info/cukes/cucumber-html/${cucumber-
html.version}/cucumber-html-${cucumber-html.version}.jar"
                     dest="${jars}/cucumber-html-${cucumber-
html.version}.jar"/>
    </target>
        <target name="clean" description="Delete all generated
artifacts">
                        <delete dir="${basedir}/target"
failonerror="false"/>
                        <!-- Necessary for our Eclipse project
which
points to the same
output folder -->
                        <mkdir dir="${test.classes}"/>
        </target>
    <target name="classpath" depends="clean">
        <path id="classpath">
            <fileset dir="${jars}">
                <include name="**/*.jar"/>
            </fileset>
            <!--<pathelement location="target/classes"/>-->
            <pathelement location="target/test-classes"/>
        </path>
    </target>
    <!--<target name="compile" depends="classpath">-->
        <!--<mkdir dir="target/classes"/>-->
        <!--<javac srcdir="src/main/java" destdir="target/classes"
classpathref="classpath" includeantruntime="false"/>-->
    <!--</target>-->
    <!--<target name="compile" depends="classpath">
        <mkdir dir="target/test-classes"/>
        <javac srcdir="src" destdir="target/test-classes"
classpathref="classpath" includeantruntime="false"/>
    </target>-->
        <target name="compile" depends="clean" description="Compile
test
classes">
                        <copy todir="${test.classes}"
overwrite="true">
                                <fileset dir="src">
                                        <include
name="**/*.properties"/>
                                </fileset>
                        </copy>
                        <javac srcdir="src"
destdir="${test.classes}"
debug="true"
debuglevel="lines,source">
                                <classpath>
                                        <fileset dir="lib">
                                                <include
name="**/*.jar"/>
                                        </fileset>
                                </classpath>
                        </javac>
                </target>
    <target name="runcukes" depends="compile">
        <mkdir dir="${basedir}/target/junit-report"/>
        <property file = "suite_execution.properties"/>
        <echo taskname="waitfor" message="${executeTags}" />
        <java classname="cucumber.cli.Main" fork="true">
            <classpath>
                <fileset dir="${jars}">
                    <include name="**/*.jar"/>
                </fileset>
                <!--<pathelement location="target/classes"/>-->
                <pathelement location="target/test-classes"/>
            </classpath>
                <arg value="--require"/>
                <arg value="${test.classes}"/>
            <arg value="--glue"/>
            <arg value="com"/>
                <arg value="--color"/>
                <arg value="--quiet"/>
                <arg value="--tags"/>
                <arg value="${IgnoreTags}"/>
                <arg value="--tags"/>
                <arg value="${executeTags}"/>
                <arg value="format"/>
            <arg value="progress"/>
                <arg value="--format"/>
                <arg value="junit:${basedir}/target/junit-report"/>
                <!--<arg value="out"/>
                <arg value="${basedir}/target/junit-report"/>-->
                <arg value="features"/>
        </java>
        <junitreport todir="target/junit-report">
                                <fileset dir="target/junit-report">
                                        <include
name="TEST-*.xml"/>
                                </fileset>
                                <reportformat="noframes"
todir="target/junit-report/html"/>
        </junitreport>
    </target>
</project>
Is there any other method to generate areportwhere i can get the
total number of scenarios passed and failed.
I am able to create a htmlreportbut it does not have a summary, I
need a summary
Thanks,
Akanksha
On Tue, Apr 17, 2012 at 6:46 AM, akanksha
Post by akanksha
Hi Aslak,
I tried writing this way
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
but it still does not work.
Thereportthat gets generated does not have any data
1) You shouldgetan xml file per feature. Do yougetthat? Can you
share some of your XML files online in a gist or pastie?
2) What is the output when you run with --format progress instead.
Can
we see it please?
Aslak
Post by akanksha
The format is generated but there is no data
A summary table as below  gets generated but has no data
Summary
Tests   Failures        Errors  Success rate    Time
0                0                       0        NaN
     0.000
Note: failures are anticipated and checked for with assertions
while
errors are unanticipated.
On Mon, Apr 16, 2012 at 12:36 PM, akanksha
Hi ,
I am migrating my project from Cuke4Duke tocucumberJVM
What command can i give in the build file( ant) so that i
cangeta
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
    [java] 1650 steps (11 failed, 8 skipped, 1631 passed)
    [java] 76m56.856s
None yet:https://github.com/cucumber/cucumber-jvm/issues/195
Also i want ajunitreport. How can i generate that
I have given the following commands in the build file , but
it
does
not work
"it does not work" usually doesn't provide enough information to
help anyone.
<arg value="--format"/>
               <arg value="junit:output"/>
               <arg value="out"/>
               <arg value="${basedir}/target/junit-report"/>
               <arg value="features"/>
       </java>
       <junitreport todir="target/junit-report">
                               <fileset
dir="target/junit-report">
                                       <include
name="TEST-*.xml"/>
                               </fileset>
                               <reportformat="noframes"
todir="target/junit-report/html"/>
       </junitreport>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
Aslak
Thanks
Akanksha
--
You received this message because you are subscribed to the
Google Groups "Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the Google
Groups "Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google
Groups Cukes group. To post to this group, send email to
to
group at
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people
to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
Cukes group. To post to this group, send email to
unsubscribe from this group, send email to
at
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
unsubscribe from this group, send email to
https://groups.google.com/d/forum/cukes?hl=en
--
Regards,
Madhuri S.
--
Regards,
Madhuri S.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people
to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
unsubscribe from this group, send email to
https://groups.google.com/d/forum/cukes?hl=en
-- There are two rules:

1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style

You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org To unsubscribe from this group, send email to cukes+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
Madhuri Sanap
2012-05-09 18:09:25 UTC
Permalink
Also can you please let me know the Eclipse that you are using to execute
build.xml

Because org.apache.ant_1.7.1.v20100518-1145 is internal plugin of Eclipse.
Post by aslak hellesoy
Post by Madhuri Sanap
Attached files for reference
Post by Madhuri Sanap
Yes, I executed java-helloworld example but i am still facing the same
issue.
Is it ANT org.apache.ant_1.7.1 causing the issue?
Most likely. I'm on Ant 1.8.2 (preinstalled on OS X Lion) and
everything works fine here.
Aslak
Post by Madhuri Sanap
Post by Madhuri Sanap
[junitreport] Processing
C:\java-helloworld\target\junit-report\TESTS-TestSuites.xml to
C:\DOCUME~1\sangm9\LOCALS~1\Temp\null1952421358
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
Post by Madhuri Sanap
Post by Madhuri Sanap
[junitreport] : Error! The first argument to the non-static Java
function
Post by Madhuri Sanap
Post by Madhuri Sanap
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\java-helloworld\target\junit-report\TESTS-TestSuites.xml
Regards,
Madhuri S,
On Wed, May 9, 2012 at 9:47 AM, aslak hellesoy <
Post by aslak hellesoy
Post by Madhu
Hi,
Can someone please look into this?
Step one would be for you to explain how others can do what you're
doing. We don't have your source code.
If you clone the cucumber-jvm github repo - can you run the
examples/java-helloworld example successfully?
Aslak
Post by Madhu
Even i am facing same issue , html report are not getting generated.
Tried executing the scripts with Build.xml
I have (jdk1.6.0_32) installed....
Windows XP
[junitreport] Processing
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml to
C:\cukes-demo\target\junit-report\html\junit-noframes.html
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
[junitreport] : Error! The first argument to the non-static Java function
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to
'reference'.
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml
XML gets generated and displays following
<?xml version="1.0" encoding="UTF-8"?><testsuite failed="0"
tests="2">
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
<testcase classname="firsttest" name="(1)Verify that test gets
executed
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
correctly" time="536">
<system-out><![CDATA[Given I've logged in as a USer in
Site...........................................passed
When I Navigate to Home
page..........................................................passed
Then it should display Welcome
text....................................passed
]]></system-out>
</testcase>
</testsuite>
Post by aslak hellesoy
Post by akanksha
Hi,
I could get a proper xml generated
I could also get a junit report
My java code is very simple
It has a normal assert statement..
If the result is pass i get the junit report
but if the assert fails i do not get the junit report i only get
the
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
xml
Can you tell me where is the error ?
Your question is Ant related and not Cucumber related.
Cucumber's exit status is 1 if a scenario fails, and this will only
fail the <java> task that launched it if failonerror is set to true,
causing your next task (<junitreport>) to not be executed.
However, the default value of failonerror is false, so it should run
<junitreport> regardless of exit status. I'd add some <echo>
statements to debug it.
If you can't figure it out, try out
https://github.com/cucumber/cucumber-jvm/blob/v1.0.4/examples/java-helloworld/build.xml#L42-75
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
or ask on the Ant mailing list.
Aslak
Post by akanksha
Following is my build file
<target name="runcukes" depends="compile">
<mkdir dir="${basedir}/target/junit-report"/>
<property file = "suite_execution.properties"/>
<java classname="cucumber.cli.Main" fork="true">
<classpath>
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</classpath>
<arg value="--require"/>
<arg value="${test.classes}"/>
<arg value="--glue"/>
<arg value="com"/>
<arg value="--color"/>
<arg value="--quiet"/>
<arg value="--tags"/>
<arg value="${IgnoreTags}"/>
<arg value="--tags"/>
<arg value="${executeTags}"/>
<arg value="format"/>
<arg value="progress"/>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report/
report.xml"/>
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset dir="target/junit-report">
<include
name="report.xml"/>
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
</fileset>
<report format="noframes"
todir="target/junit-report/html"/>
</junitreport>
</target>
Post by akanksha
Hi Aslak,
I am getting a blank xml file.
It just has the suite information as below
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites />
On using --format progress - i get the same output
below is my build.xml file
<project name="cukes-demo" basedir="." default="runcukes">
<property name="repo" value="
https://oss.sonatype.org/content/
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
repositories/releases"/>
<property name="cucumber-jvm.version" value="1.0.2"/>
<property name="cucumber-html.version" value="0.2.1"/>
<property name="gherkin.version" value="2.9.3"/>
<property name="test.classes"
value="${basedir}/target/test-classes"/
<property name="jars" value="lib"/>
<property name="dotgem.parent" value="${basedir}/lib"/>
<target name="download">
<mkdir dir="${jars}"/>
<get src="${repo}/info/cukes/cucumber-core/${cucumber-
jvm.version}/cucumber-core-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-core-${cucumber-jvm.version}.jar"/
<get src="${repo}/info/cukes/cucumber-java/${cucumber-
jvm.version}/cucumber-java-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-java-${cucumber-jvm.version}.jar"/
<get src="${repo}/info/cukes/cucumber-junit/${cucumber-
jvm.version}/cucumber-junit-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-junit-${cucumber-jvm.version}.jar"/
<get src="${repo}/info/cukes/gherkin/${gherkin.version}/
gherkin-${gherkin.version}.jar"
dest="${jars}/gherkin-${gherkin.version}.jar"/>
<get src="${repo}/info/cukes/cucumber-html/${cucumber-
html.version}/cucumber-html-${cucumber-html.version}.jar"
dest="${jars}/cucumber-html-${cucumber-
html.version}.jar"/>
</target>
<target name="clean" description="Delete all generated
artifacts">
<delete dir="${basedir}/target"
failonerror="false"/>
<!-- Necessary for our Eclipse project which
points to the same
output folder -->
<mkdir dir="${test.classes}"/>
</target>
<target name="classpath" depends="clean">
<path id="classpath">
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</path>
</target>
<!--<target name="compile" depends="classpath">-->
<!--<mkdir dir="target/classes"/>-->
<!--<javac srcdir="src/main/java"
destdir="target/classes"
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
classpathref="classpath" includeantruntime="false"/>-->
<!--</target>-->
<!--<target name="compile" depends="classpath">
<mkdir dir="target/test-classes"/>
<javac srcdir="src" destdir="target/test-classes"
classpathref="classpath" includeantruntime="false"/>
</target>-->
<target name="compile" depends="clean"
description="Compile
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
test
classes">
<copy todir="${test.classes}" overwrite="true">
<fileset dir="src">
<include
name="**/*.properties"/>
</fileset>
</copy>
<javac srcdir="src"
destdir="${test.classes}"
debug="true"
debuglevel="lines,source">
<classpath>
<fileset dir="lib">
<include
name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="runcukes" depends="compile">
<mkdir dir="${basedir}/target/junit-report"/>
<property file = "suite_execution.properties"/>
<echo taskname="waitfor" message="${executeTags}" />
<java classname="cucumber.cli.Main" fork="true">
<classpath>
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</classpath>
<arg value="--require"/>
<arg value="${test.classes}"/>
<arg value="--glue"/>
<arg value="com"/>
<arg value="--color"/>
<arg value="--quiet"/>
<arg value="--tags"/>
<arg value="${IgnoreTags}"/>
<arg value="--tags"/>
<arg value="${executeTags}"/>
<arg value="format"/>
<arg value="progress"/>
<arg value="--format"/>
<arg
value="junit:${basedir}/target/junit-report"/>
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
<!--<arg value="out"/>
<arg value="${basedir}/target/junit-report"/>-->
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset
dir="target/junit-report">
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
<include
name="TEST-*.xml"/>
</fileset>
<reportformat="noframes"
todir="target/junit-report/html"/>
</junitreport>
</target>
</project>
Is there any other method to generate areportwhere i can get the
total number of scenarios passed and failed.
I am able to create a htmlreportbut it does not have a summary, I
need a summary
Thanks,
Akanksha
On Tue, Apr 17, 2012 at 6:46 AM, akanksha
Post by akanksha
Hi Aslak,
I tried writing this way
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
but it still does not work.
Thereportthat gets generated does not have any data
1) You shouldgetan xml file per feature. Do yougetthat? Can you
share some of your XML files online in a gist or pastie?
2) What is the output when you run with --format progress instead.
Can
we see it please?
Aslak
Post by akanksha
The format is generated but there is no data
A summary table as below gets generated but has no data
Summary
Tests Failures Errors Success rate Time
0 0 0 NaN
0.000
Note: failures are anticipated and checked for with
assertions
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
while
errors are unanticipated.
On Mon, Apr 16, 2012 at 12:36 PM, akanksha
Hi ,
I am migrating my project from Cuke4Duke tocucumberJVM
What command can i give in the build file( ant) so that i
cangeta
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
[java] 1650 steps (11 failed, 8 skipped, 1631 passed)
[java] 76m56.856s
https://github.com/cucumber/cucumber-jvm/issues/195
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
Also i want ajunitreport. How can i generate that
I have given the following commands in the build file ,
but
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
it
does
not work
"it does not work" usually doesn't provide enough
information
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
to
help anyone.
<arg value="--format"/>
<arg value="junit:output"/>
<arg value="out"/>
<arg
value="${basedir}/target/junit-report"/>
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset
dir="target/junit-report">
<include
name="TEST-*.xml"/>
</fileset>
<reportformat="noframes"
todir="target/junit-report/html"/>
</junitreport>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
Aslak
Thanks
Akanksha
--
You received this message because you are subscribed to
the
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
Google Groups "Cukes" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the
Google
Groups "Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This
allows
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google
Groups Cukes group. To post to this group, send email to
email
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
to
group at
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people
to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
Cukes group. To post to this group, send email to
unsubscribe from this group, send email to
group
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
at
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google
Groups
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Cukes group. To post to this group, send email to
unsubscribe from this group, send email to
group at
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
https://groups.google.com/d/forum/cukes?hl=en
--
Regards,
Madhuri S.
--
Regards,
Madhuri S.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people
Post by Madhuri Sanap
to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
To
Post by Madhuri Sanap
unsubscribe from this group, send email to
at
Post by Madhuri Sanap
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group, send email to
https://groups.google.com/d/forum/cukes?hl=en
--
Regards,
Madhuri S.

-- There are two rules:

1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style

You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org To unsubscribe from this group, send email to cukes+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
Madhuri Sanap
2012-05-09 18:22:05 UTC
Permalink
I am still facing issues when executed with eclipse indigo and with
ANT org.apache.ant_1.8.2.v20120109-1030.
Post by Madhuri Sanap
Also can you please let me know the Eclipse that you are using to execute
build.xml
Because org.apache.ant_1.7.1.v20100518-1145 is internal plugin of Eclipse.
Post by aslak hellesoy
Post by Madhuri Sanap
Attached files for reference
Post by Madhuri Sanap
Yes, I executed java-helloworld example but i am still facing the same
issue.
Is it ANT org.apache.ant_1.7.1 causing the issue?
Most likely. I'm on Ant 1.8.2 (preinstalled on OS X Lion) and
everything works fine here.
Aslak
Post by Madhuri Sanap
Post by Madhuri Sanap
[junitreport] Processing
C:\java-helloworld\target\junit-report\TESTS-TestSuites.xml to
C:\DOCUME~1\sangm9\LOCALS~1\Temp\null1952421358
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
Post by Madhuri Sanap
Post by Madhuri Sanap
[junitreport] : Error! The first argument to the non-static Java
function
Post by Madhuri Sanap
Post by Madhuri Sanap
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\java-helloworld\target\junit-report\TESTS-TestSuites.xml
Regards,
Madhuri S,
On Wed, May 9, 2012 at 9:47 AM, aslak hellesoy <
Post by aslak hellesoy
Post by Madhu
Hi,
Can someone please look into this?
Step one would be for you to explain how others can do what you're
doing. We don't have your source code.
If you clone the cucumber-jvm github repo - can you run the
examples/java-helloworld example successfully?
Aslak
Post by Madhu
Even i am facing same issue , html report are not getting generated.
Tried executing the scripts with Build.xml
I have (jdk1.6.0_32) installed....
Windows XP
[junitreport] Processing
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml to
C:\cukes-demo\target\junit-report\html\junit-noframes.html
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
[junitreport] : Error! The first argument to the non-static Java function
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to
'reference'.
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml
XML gets generated and displays following
<?xml version="1.0" encoding="UTF-8"?><testsuite failed="0"
tests="2">
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
<testcase classname="firsttest" name="(1)Verify that test gets
executed
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
correctly" time="536">
<system-out><![CDATA[Given I've logged in as a USer in
Site...........................................passed
When I Navigate to Home
page..........................................................passed
Then it should display Welcome
text....................................passed
]]></system-out>
</testcase>
</testsuite>
Post by aslak hellesoy
Post by akanksha
Hi,
I could get a proper xml generated
I could also get a junit report
My java code is very simple
It has a normal assert statement..
If the result is pass i get the junit report
but if the assert fails i do not get the junit report i only get
the
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
xml
Can you tell me where is the error ?
Your question is Ant related and not Cucumber related.
Cucumber's exit status is 1 if a scenario fails, and this will only
fail the <java> task that launched it if failonerror is set to
true,
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
causing your next task (<junitreport>) to not be executed.
However, the default value of failonerror is false, so it should
run
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
<junitreport> regardless of exit status. I'd add some <echo>
statements to debug it.
If you can't figure it out, try out
https://github.com/cucumber/cucumber-jvm/blob/v1.0.4/examples/java-helloworld/build.xml#L42-75
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
or ask on the Ant mailing list.
Aslak
Post by akanksha
Following is my build file
<target name="runcukes" depends="compile">
<mkdir dir="${basedir}/target/junit-report"/>
<property file = "suite_execution.properties"/>
<java classname="cucumber.cli.Main" fork="true">
<classpath>
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</classpath>
<arg value="--require"/>
<arg value="${test.classes}"/>
<arg value="--glue"/>
<arg value="com"/>
<arg value="--color"/>
<arg value="--quiet"/>
<arg value="--tags"/>
<arg value="${IgnoreTags}"/>
<arg value="--tags"/>
<arg value="${executeTags}"/>
<arg value="format"/>
<arg value="progress"/>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report/
report.xml"/>
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset
dir="target/junit-report">
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
<include
name="report.xml"/>
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
</fileset>
<report format="noframes"
todir="target/junit-report/html"/>
</junitreport>
</target>
Post by akanksha
Hi Aslak,
I am getting a blank xml file.
It just has the suite information as below
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites />
On using --format progress - i get the same output
below is my build.xml file
<project name="cukes-demo" basedir="." default="runcukes">
<property name="repo" value="
https://oss.sonatype.org/content/
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
repositories/releases"/>
<property name="cucumber-jvm.version" value="1.0.2"/>
<property name="cucumber-html.version" value="0.2.1"/>
<property name="gherkin.version" value="2.9.3"/>
<property name="test.classes"
value="${basedir}/target/test-classes"/
<property name="jars" value="lib"/>
<property name="dotgem.parent" value="${basedir}/lib"/>
<target name="download">
<mkdir dir="${jars}"/>
<get src="${repo}/info/cukes/cucumber-core/${cucumber-
jvm.version}/cucumber-core-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-core-${cucumber-jvm.version}.jar"/
<get src="${repo}/info/cukes/cucumber-java/${cucumber-
jvm.version}/cucumber-java-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-java-${cucumber-jvm.version}.jar"/
<get src="${repo}/info/cukes/cucumber-junit/${cucumber-
jvm.version}/cucumber-junit-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-junit-${cucumber-jvm.version}.jar"/
<get src="${repo}/info/cukes/gherkin/${gherkin.version}/
gherkin-${gherkin.version}.jar"
dest="${jars}/gherkin-${gherkin.version}.jar"/>
<get src="${repo}/info/cukes/cucumber-html/${cucumber-
html.version}/cucumber-html-${cucumber-html.version}.jar"
dest="${jars}/cucumber-html-${cucumber-
html.version}.jar"/>
</target>
<target name="clean" description="Delete all generated
artifacts">
<delete dir="${basedir}/target"
failonerror="false"/>
<!-- Necessary for our Eclipse project which
points to the same
output folder -->
<mkdir dir="${test.classes}"/>
</target>
<target name="classpath" depends="clean">
<path id="classpath">
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</path>
</target>
<!--<target name="compile" depends="classpath">-->
<!--<mkdir dir="target/classes"/>-->
<!--<javac srcdir="src/main/java"
destdir="target/classes"
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
classpathref="classpath" includeantruntime="false"/>-->
<!--</target>-->
<!--<target name="compile" depends="classpath">
<mkdir dir="target/test-classes"/>
<javac srcdir="src" destdir="target/test-classes"
classpathref="classpath" includeantruntime="false"/>
</target>-->
<target name="compile" depends="clean"
description="Compile
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
test
classes">
<copy todir="${test.classes}"
overwrite="true">
<fileset dir="src">
<include
name="**/*.properties"/>
</fileset>
</copy>
<javac srcdir="src"
destdir="${test.classes}"
debug="true"
debuglevel="lines,source">
<classpath>
<fileset dir="lib">
<include
name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="runcukes" depends="compile">
<mkdir dir="${basedir}/target/junit-report"/>
<property file = "suite_execution.properties"/>
<echo taskname="waitfor" message="${executeTags}" />
<java classname="cucumber.cli.Main" fork="true">
<classpath>
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</classpath>
<arg value="--require"/>
<arg value="${test.classes}"/>
<arg value="--glue"/>
<arg value="com"/>
<arg value="--color"/>
<arg value="--quiet"/>
<arg value="--tags"/>
<arg value="${IgnoreTags}"/>
<arg value="--tags"/>
<arg value="${executeTags}"/>
<arg value="format"/>
<arg value="progress"/>
<arg value="--format"/>
<arg
value="junit:${basedir}/target/junit-report"/>
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
<!--<arg value="out"/>
<arg value="${basedir}/target/junit-report"/>-->
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset
dir="target/junit-report">
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
<include
name="TEST-*.xml"/>
</fileset>
<reportformat="noframes"
todir="target/junit-report/html"/>
</junitreport>
</target>
</project>
Is there any other method to generate areportwhere i can get the
total number of scenarios passed and failed.
I am able to create a htmlreportbut it does not have a summary,
I
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
need a summary
Thanks,
Akanksha
On Tue, Apr 17, 2012 at 6:46 AM, akanksha
Post by akanksha
Hi Aslak,
I tried writing this way
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
but it still does not work.
Thereportthat gets generated does not have any data
1) You shouldgetan xml file per feature. Do yougetthat? Can
you
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
share some of your XML files online in a gist or pastie?
2) What is the output when you run with --format progress
instead.
Can
we see it please?
Aslak
Post by akanksha
The format is generated but there is no data
A summary table as below gets generated but has no data
Summary
Tests Failures Errors Success rate Time
0 0 0 NaN
0.000
Note: failures are anticipated and checked for with
assertions
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
while
errors are unanticipated.
On Apr 16, 4:54 pm, aslak hellesoy <
On Mon, Apr 16, 2012 at 12:36 PM, akanksha
Hi ,
I am migrating my project from Cuke4Duke tocucumberJVM
What command can i give in the build file( ant) so that i
cangeta
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
[java] 1650 steps (11 failed, 8 skipped, 1631 passed)
[java] 76m56.856s
https://github.com/cucumber/cucumber-jvm/issues/195
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
Also i want ajunitreport. How can i generate that
I have given the following commands in the build file ,
but
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
it
does
not work
"it does not work" usually doesn't provide enough
information
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
to
help anyone.
<arg value="--format"/>
<arg value="junit:output"/>
<arg value="out"/>
<arg
value="${basedir}/target/junit-report"/>
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset
dir="target/junit-report">
<include
name="TEST-*.xml"/>
</fileset>
<reportformat="noframes"
todir="target/junit-report/html"/>
</junitreport>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
Aslak
Thanks
Akanksha
--
You received this message because you are subscribed to
the
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
Google Groups "Cukes" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the
Google
Groups "Cukes" group.
.
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Post by akanksha
Post by akanksha
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This
allows
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the
Google
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
Groups Cukes group. To post to this group, send email to
email
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by aslak hellesoy
Post by akanksha
to
group at
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people
to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
Cukes group. To post to this group, send email to
unsubscribe from this group, send email to
group
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
at
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google
Groups
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Cukes group. To post to this group, send email to
unsubscribe from this group, send email to
group at
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
https://groups.google.com/d/forum/cukes?hl=en
--
Regards,
Madhuri S.
--
Regards,
Madhuri S.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people
Post by Madhuri Sanap
to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google
Groups
Post by Madhuri Sanap
Cukes group. To post to this group, send email to
unsubscribe from this group, send email to
at
Post by Madhuri Sanap
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group, send email to
at https://groups.google.com/d/forum/cukes?hl=en
--
Regards,
Madhuri S.
--
Regards,
Madhuri S.

-- There are two rules:

1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style

You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org To unsubscribe from this group, send email to cukes+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
aslak hellesoy
2012-05-09 18:33:58 UTC
Permalink
Post by Madhuri Sanap
I am still facing issues when executed with eclipse indigo and with
ANT org.apache.ant_1.8.2.v20120109-1030.
And the problem you are facing has to do with Ant's JunitReport task,
running in Eclipse.

None of this is Cucumber related, so please ask on the Ant and/or
Eclipse forums/mailing lists.
Post by Madhuri Sanap
Post by Madhuri Sanap
Also can you please let me know the Eclipse that you are using to execute
build.xml
I'm not using Eclipse - I'm running it from the command line.

Please let us know if it works from the command line. Instructions for
how to run it:
https://github.com/cucumber/cucumber-jvm/tree/master/examples/java-helloworld
Post by Madhuri Sanap
Post by Madhuri Sanap
Because org.apache.ant_1.7.1.v20100518-1145 is internal plugin of Eclipse.
Post by aslak hellesoy
Post by Madhuri Sanap
Attached files for reference
On Wed, May 9, 2012 at 10:30 AM, Madhuri Sanap
Yes, I executed  java-helloworld example but i am still facing the same
issue.
Is it ANT org.apache.ant_1.7.1 causing the issue?
Most likely. I'm on Ant 1.8.2 (preinstalled on OS X Lion) and
everything works fine here.
Aslak
Post by Madhuri Sanap
[junitreport] Processing
C:\java-helloworld\target\junit-report\TESTS-TestSuites.xml to
C:\DOCUME~1\sangm9\LOCALS~1\Temp\null1952421358
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] : Error! The first argument to the non-static Java function
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\java-helloworld\target\junit-report\TESTS-TestSuites.xml
Regards,
Madhuri S,
On Wed, May 9, 2012 at 9:47 AM, aslak hellesoy
Post by aslak hellesoy
Post by Madhu
Hi,
Can someone please look into this?
Step one would be for you to explain how others can do what you're
doing. We don't have your source code.
If you clone the cucumber-jvm github repo - can you run the
examples/java-helloworld example successfully?
Aslak
Post by Madhu
Even i am facing same issue , html report are not getting generated.
Tried executing the scripts with Build.xml
I have (jdk1.6.0_32) installed....
Windows XP
[junitreport] Processing
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml to
C:\cukes-demo\target\junit-report\html\junit-noframes.html
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl
[junitreport] : Error! The first argument to the non-static Java function
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml
XML gets generated and displays following
<?xml version="1.0" encoding="UTF-8"?><testsuite failed="0" tests="2">
<testcase classname="firsttest" name="(1)Verify that test gets executed
correctly" time="536">
<system-out><![CDATA[Given I've logged in as a USer in
Site...........................................passed
When I Navigate to Home
page..........................................................passed
Then it should display Welcome
text....................................passed
]]></system-out>
</testcase>
</testsuite>
Post by aslak hellesoy
Post by akanksha
Hi,
I could get a proper xml generated
I could also get a junit report
My java code is very simple
It has a normal assert statement..
If the result is pass i get the junit report
but if the assert fails i do not get the junit report i only get the
xml
Can you tell me where is the error ?
Your question is Ant related and not Cucumber related.
Cucumber's exit status is 1 if a scenario fails, and this will only
fail the <java> task that launched it if failonerror is set to true,
causing your next task (<junitreport>) to not be executed.
However, the default value of failonerror is false, so it should run
<junitreport> regardless of exit status. I'd add some <echo>
statements to debug it.
If you can't figure it out, try out
https://github.com/cucumber/cucumber-jvm/blob/v1.0.4/examples/java-helloworld/build.xml#L42-75
or ask on the Ant mailing list.
Aslak
Post by akanksha
Following is my build file
 <target name="runcukes" depends="compile">
       <mkdir dir="${basedir}/target/junit-report"/>
       <property file = "suite_execution.properties"/>
            <java classname="cucumber.cli.Main" fork="true">
           <classpath>
               <fileset dir="${jars}">
                   <include name="**/*.jar"/>
               </fileset>
               <!--<pathelement location="target/classes"/>-->
               <pathelement location="target/test-classes"/>
           </classpath>
               <arg value="--require"/>
               <arg value="${test.classes}"/>
           <arg value="--glue"/>
           <arg value="com"/>
               <arg value="--color"/>
               <arg value="--quiet"/>
               <arg value="--tags"/>
               <arg value="${IgnoreTags}"/>
               <arg value="--tags"/>
               <arg value="${executeTags}"/>
               <arg value="format"/>
           <arg value="progress"/>
               <arg value="--format"/>
               <arg value="junit:${basedir}/target/junit-report/
report.xml"/>
              <arg value="features"/>
       </java>
       <junitreport todir="target/junit-report">
                               <fileset
dir="target/junit-report">
                                       <include
name="report.xml"/>
                               </fileset>
                               <report format="noframes"
todir="target/junit-report/html"/>
       </junitreport>
   </target>
Post by akanksha
Hi Aslak,
I am getting a blank xml file.
It just has the suite information  as below
<?xml version="1.0" encoding="UTF-8" ?>
  <testsuites />
On using --format progress - i get the same output
below is my build.xml file
<project name="cukes-demo" basedir="." default="runcukes">
    <property name="repo"
value="https://oss.sonatype.org/content/
repositories/releases"/>
    <property name="cucumber-jvm.version" value="1.0.2"/>
         <property name="cucumber-html.version" value="0.2.1"/>
    <property name="gherkin.version" value="2.9.3"/>
        <property name="test.classes"
value="${basedir}/target/test-classes"/
    <property name="jars" value="lib"/>
        <property name="dotgem.parent" value="${basedir}/lib"/>
    <target name="download">
        <mkdir dir="${jars}"/>
        <get src="${repo}/info/cukes/cucumber-core/${cucumber-
jvm.version}/cucumber-core-${cucumber-jvm.version}.jar"
 dest="${jars}/cucumber-core-${cucumber-jvm.version}.jar"/
        <get src="${repo}/info/cukes/cucumber-java/${cucumber-
jvm.version}/cucumber-java-${cucumber-jvm.version}.jar"
 dest="${jars}/cucumber-java-${cucumber-jvm.version}.jar"/
        <get src="${repo}/info/cukes/cucumber-junit/${cucumber-
jvm.version}/cucumber-junit-${cucumber-jvm.version}.jar"
 dest="${jars}/cucumber-junit-${cucumber-jvm.version}.jar"/
        <get
src="${repo}/info/cukes/gherkin/${gherkin.version}/
gherkin-${gherkin.version}.jar"
             dest="${jars}/gherkin-${gherkin.version}.jar"/>
        <get src="${repo}/info/cukes/cucumber-html/${cucumber-
html.version}/cucumber-html-${cucumber-html.version}.jar"
                     dest="${jars}/cucumber-html-${cucumber-
html.version}.jar"/>
    </target>
        <target name="clean" description="Delete all generated
artifacts">
                        <delete dir="${basedir}/target"
failonerror="false"/>
                        <!-- Necessary for our Eclipse project
which
points to the same
output folder -->
                        <mkdir dir="${test.classes}"/>
        </target>
    <target name="classpath" depends="clean">
        <path id="classpath">
            <fileset dir="${jars}">
                <include name="**/*.jar"/>
            </fileset>
            <!--<pathelement location="target/classes"/>-->
            <pathelement location="target/test-classes"/>
        </path>
    </target>
    <!--<target name="compile" depends="classpath">-->
        <!--<mkdir dir="target/classes"/>-->
        <!--<javac srcdir="src/main/java"
destdir="target/classes"
classpathref="classpath" includeantruntime="false"/>-->
    <!--</target>-->
    <!--<target name="compile" depends="classpath">
        <mkdir dir="target/test-classes"/>
        <javac srcdir="src" destdir="target/test-classes"
classpathref="classpath" includeantruntime="false"/>
    </target>-->
        <target name="compile" depends="clean"
description="Compile
test
classes">
                        <copy todir="${test.classes}"
overwrite="true">
                                <fileset dir="src">
                                        <include
name="**/*.properties"/>
                                </fileset>
                        </copy>
                        <javac srcdir="src"
destdir="${test.classes}"
debug="true"
debuglevel="lines,source">
                                <classpath>
                                        <fileset dir="lib">
                                                <include
name="**/*.jar"/>
                                        </fileset>
                                </classpath>
                        </javac>
                </target>
    <target name="runcukes" depends="compile">
        <mkdir dir="${basedir}/target/junit-report"/>
        <property file = "suite_execution.properties"/>
        <echo taskname="waitfor" message="${executeTags}" />
        <java classname="cucumber.cli.Main" fork="true">
            <classpath>
                <fileset dir="${jars}">
                    <include name="**/*.jar"/>
                </fileset>
                <!--<pathelement location="target/classes"/>-->
                <pathelement location="target/test-classes"/>
            </classpath>
                <arg value="--require"/>
                <arg value="${test.classes}"/>
            <arg value="--glue"/>
            <arg value="com"/>
                <arg value="--color"/>
                <arg value="--quiet"/>
                <arg value="--tags"/>
                <arg value="${IgnoreTags}"/>
                <arg value="--tags"/>
                <arg value="${executeTags}"/>
                <arg value="format"/>
            <arg value="progress"/>
                <arg value="--format"/>
                <arg
value="junit:${basedir}/target/junit-report"/>
                <!--<arg value="out"/>
                <arg
value="${basedir}/target/junit-report"/>-->
                <arg value="features"/>
        </java>
        <junitreport todir="target/junit-report">
                                <fileset
dir="target/junit-report">
                                        <include
name="TEST-*.xml"/>
                                </fileset>
                                <reportformat="noframes"
todir="target/junit-report/html"/>
        </junitreport>
    </target>
</project>
Is there any other method to generate areportwhere i can get the
total number of scenarios passed and failed.
I am able to create a htmlreportbut it does not have a summary, I
need a summary
Thanks,
Akanksha
On Tue, Apr 17, 2012 at 6:46 AM, akanksha
Post by akanksha
Hi Aslak,
I tried writing this way
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
but it still does not work.
Thereportthat gets generated does not have any data
1) You shouldgetan xml file per feature. Do yougetthat? Can you
share some of your XML files online in a gist or pastie?
2) What is the output when you run with --format progress
instead.
Can
we see it please?
Aslak
Post by akanksha
The format is generated but there is no data
A summary table as below  gets generated but has no data
Summary
Tests   Failures        Errors  Success rate    Time
0                0                       0        NaN
     0.000
Note: failures are anticipated and checked for with
assertions
while
errors are unanticipated.
On Apr 16, 4:54 pm, aslak hellesoy
On Mon, Apr 16, 2012 at 12:36 PM, akanksha
Hi ,
I am migrating my project from Cuke4Duke tocucumberJVM
What command can i give in the build file( ant) so that
i
cangeta
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
    [java] 1650 steps (11 failed, 8 skipped, 1631
passed)
    [java] 76m56.856s
None
yet:https://github.com/cucumber/cucumber-jvm/issues/195
Also i want ajunitreport. How can i generate that
I have given the following commands in the build file ,
but
it
does
not work
"it does not work" usually doesn't provide enough
information
to
help anyone.
<arg value="--format"/>
               <arg value="junit:output"/>
               <arg value="out"/>
               <arg
value="${basedir}/target/junit-report"/>
               <arg value="features"/>
       </java>
       <junitreport todir="target/junit-report">
                               <fileset
dir="target/junit-report">
                                       <include
name="TEST-*.xml"/>
                               </fileset>
                               <reportformat="noframes"
todir="target/junit-report/html"/>
       </junitreport>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
Aslak
Thanks
Akanksha
--
You received this message because you are subscribed to
the
Google Groups "Cukes" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the
Google
Groups "Cukes" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google
Groups Cukes group. To post to this group, send email to
email
to
group at
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people
to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
Cukes group. To post to this group, send email to
unsubscribe from this group, send email to
group
at
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
Cukes group. To post to this group, send email to
unsubscribe from this group, send email to
group at
https://groups.google.com/d/forum/cukes?hl=en
--
Regards,
Madhuri S.
--
Regards,
Madhuri S.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people
to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
Cukes group. To post to this group, send email to
unsubscribe from this group, send email to
at
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
unsubscribe from this group, send email to
https://groups.google.com/d/forum/cukes?hl=en
--
Regards,
Madhuri S.
--
Regards,
Madhuri S.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people
to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
unsubscribe from this group, send email to
https://groups.google.com/d/forum/cukes?hl=en
-- There are two rules:

1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style

You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org To unsubscribe from this group, send email to cukes+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
Madhuri Sanap
2012-05-09 18:40:27 UTC
Permalink
Thank You, it works Gr8 ..... when executed from command prompt.

It doesn't work when executed from eclipse
Post by aslak hellesoy
Post by Madhuri Sanap
I am still facing issues when executed with eclipse indigo and with
ANT org.apache.ant_1.8.2.v20120109-1030.
And the problem you are facing has to do with Ant's JunitReport task,
running in Eclipse.
None of this is Cucumber related, so please ask on the Ant and/or
Eclipse forums/mailing lists.
Post by Madhuri Sanap
Post by Madhuri Sanap
Also can you please let me know the Eclipse that you are using to
execute
Post by Madhuri Sanap
Post by Madhuri Sanap
build.xml
I'm not using Eclipse - I'm running it from the command line.
Please let us know if it works from the command line. Instructions for
https://github.com/cucumber/cucumber-jvm/tree/master/examples/java-helloworld
Post by Madhuri Sanap
Post by Madhuri Sanap
Because org.apache.ant_1.7.1.v20100518-1145 is internal plugin of
Eclipse.
Post by Madhuri Sanap
Post by Madhuri Sanap
On Wed, May 9, 2012 at 10:49 AM, aslak hellesoy <
On Wed, May 9, 2012 at 12:33 PM, Madhuri Sanap <
Post by Madhuri Sanap
Attached files for reference
On Wed, May 9, 2012 at 10:30 AM, Madhuri Sanap
Post by Madhuri Sanap
Yes, I executed java-helloworld example but i am still facing the same
issue.
Is it ANT org.apache.ant_1.7.1 causing the issue?
Most likely. I'm on Ant 1.8.2 (preinstalled on OS X Lion) and
everything works fine here.
Aslak
Post by Madhuri Sanap
Post by Madhuri Sanap
[junitreport] Processing
C:\java-helloworld\target\junit-report\TESTS-TestSuites.xml to
C:\DOCUME~1\sangm9\LOCALS~1\Temp\null1952421358
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
[junitreport] : Error! The first argument to the non-static Java function
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to
'reference'.
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\java-helloworld\target\junit-report\TESTS-TestSuites.xml
Regards,
Madhuri S,
On Wed, May 9, 2012 at 9:47 AM, aslak hellesoy
Post by aslak hellesoy
Post by Madhu
Hi,
Can someone please look into this?
Step one would be for you to explain how others can do what you're
doing. We don't have your source code.
If you clone the cucumber-jvm github repo - can you run the
examples/java-helloworld example successfully?
Aslak
Post by Madhu
Even i am facing same issue , html report are not getting generated.
Tried executing the scripts with Build.xml
I have (jdk1.6.0_32) installed....
Windows XP
[junitreport] Processing
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml to
C:\cukes-demo\target\junit-report\html\junit-noframes.html
[junitreport] Loading stylesheet
jar:file:/C:/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
[junitreport] : Error! The first argument to the non-static Java
function
'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process
C:\cukes-demo\target\junit-report\TESTS-TestSuites.xml
XML gets generated and displays following
<?xml version="1.0" encoding="UTF-8"?><testsuite failed="0" tests="2">
<testcase classname="firsttest" name="(1)Verify that test gets executed
correctly" time="536">
<system-out><![CDATA[Given I've logged in as a USer in
Site...........................................passed
When I Navigate to Home
page..........................................................passed
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Then it should display Welcome
text....................................passed
]]></system-out>
</testcase>
</testsuite>
On Wed, May 2, 2012 at 11:26 AM, akanksha <
Post by akanksha
Hi,
I could get a proper xml generated
I could also get a junit report
My java code is very simple
It has a normal assert statement..
If the result is pass i get the junit report
but if the assert fails i do not get the junit report i only
get
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
the
xml
Can you tell me where is the error ?
Your question is Ant related and not Cucumber related.
Cucumber's exit status is 1 if a scenario fails, and this will only
fail the <java> task that launched it if failonerror is set to true,
causing your next task (<junitreport>) to not be executed.
However, the default value of failonerror is false, so it should run
<junitreport> regardless of exit status. I'd add some <echo>
statements to debug it.
If you can't figure it out, try out
https://github.com/cucumber/cucumber-jvm/blob/v1.0.4/examples/java-helloworld/build.xml#L42-75
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
or ask on the Ant mailing list.
Aslak
Post by akanksha
Following is my build file
<target name="runcukes" depends="compile">
<mkdir dir="${basedir}/target/junit-report"/>
<property file = "suite_execution.properties"/>
<java classname="cucumber.cli.Main" fork="true">
<classpath>
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</classpath>
<arg value="--require"/>
<arg value="${test.classes}"/>
<arg value="--glue"/>
<arg value="com"/>
<arg value="--color"/>
<arg value="--quiet"/>
<arg value="--tags"/>
<arg value="${IgnoreTags}"/>
<arg value="--tags"/>
<arg value="${executeTags}"/>
<arg value="format"/>
<arg value="progress"/>
<arg value="--format"/>
<arg
value="junit:${basedir}/target/junit-report/
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
report.xml"/>
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset
dir="target/junit-report">
<include
name="report.xml"/>
</fileset>
<report format="noframes"
todir="target/junit-report/html"/>
</junitreport>
</target>
Post by akanksha
Hi Aslak,
I am getting a blank xml file.
It just has the suite information as below
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites />
On using --format progress - i get the same output
below is my build.xml file
<project name="cukes-demo" basedir="." default="runcukes">
<property name="repo"
value="https://oss.sonatype.org/content/
repositories/releases"/>
<property name="cucumber-jvm.version" value="1.0.2"/>
<property name="cucumber-html.version"
value="0.2.1"/>
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
Post by akanksha
<property name="gherkin.version" value="2.9.3"/>
<property name="test.classes"
value="${basedir}/target/test-classes"/
<property name="jars" value="lib"/>
<property name="dotgem.parent"
value="${basedir}/lib"/>
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
Post by akanksha
<target name="download">
<mkdir dir="${jars}"/>
<get
src="${repo}/info/cukes/cucumber-core/${cucumber-
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
Post by akanksha
jvm.version}/cucumber-core-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-core-${cucumber-jvm.version}.jar"/
<get
src="${repo}/info/cukes/cucumber-java/${cucumber-
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
Post by akanksha
jvm.version}/cucumber-java-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-java-${cucumber-jvm.version}.jar"/
<get
src="${repo}/info/cukes/cucumber-junit/${cucumber-
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
Post by akanksha
jvm.version}/cucumber-junit-${cucumber-jvm.version}.jar"
dest="${jars}/cucumber-junit-${cucumber-jvm.version}.jar"/
<get
src="${repo}/info/cukes/gherkin/${gherkin.version}/
gherkin-${gherkin.version}.jar"
dest="${jars}/gherkin-${gherkin.version}.jar"/>
<get
src="${repo}/info/cukes/cucumber-html/${cucumber-
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
Post by akanksha
html.version}/cucumber-html-${cucumber-html.version}.jar"
dest="${jars}/cucumber-html-${cucumber-
html.version}.jar"/>
</target>
<target name="clean" description="Delete all
generated
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
Post by akanksha
artifacts">
<delete dir="${basedir}/target"
failonerror="false"/>
<!-- Necessary for our Eclipse
project
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
Post by akanksha
which
points to the same
output folder -->
<mkdir dir="${test.classes}"/>
</target>
<target name="classpath" depends="clean">
<path id="classpath">
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement location="target/classes"/>-->
<pathelement location="target/test-classes"/>
</path>
</target>
<!--<target name="compile" depends="classpath">-->
<!--<mkdir dir="target/classes"/>-->
<!--<javac srcdir="src/main/java"
destdir="target/classes"
classpathref="classpath" includeantruntime="false"/>-->
<!--</target>-->
<!--<target name="compile" depends="classpath">
<mkdir dir="target/test-classes"/>
<javac srcdir="src" destdir="target/test-classes"
classpathref="classpath" includeantruntime="false"/>
</target>-->
<target name="compile" depends="clean"
description="Compile
test
classes">
<copy todir="${test.classes}"
overwrite="true">
<fileset dir="src">
<include
name="**/*.properties"/>
</fileset>
</copy>
<javac srcdir="src"
destdir="${test.classes}"
debug="true"
debuglevel="lines,source">
<classpath>
<fileset dir="lib">
<include
name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="runcukes" depends="compile">
<mkdir dir="${basedir}/target/junit-report"/>
<property file = "suite_execution.properties"/>
<echo taskname="waitfor" message="${executeTags}" />
<java classname="cucumber.cli.Main" fork="true">
<classpath>
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
<!--<pathelement
location="target/classes"/>-->
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
Post by akanksha
<pathelement location="target/test-classes"/>
</classpath>
<arg value="--require"/>
<arg value="${test.classes}"/>
<arg value="--glue"/>
<arg value="com"/>
<arg value="--color"/>
<arg value="--quiet"/>
<arg value="--tags"/>
<arg value="${IgnoreTags}"/>
<arg value="--tags"/>
<arg value="${executeTags}"/>
<arg value="format"/>
<arg value="progress"/>
<arg value="--format"/>
<arg
value="junit:${basedir}/target/junit-report"/>
<!--<arg value="out"/>
<arg
value="${basedir}/target/junit-report"/>-->
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset
dir="target/junit-report">
<include
name="TEST-*.xml"/>
</fileset>
<reportformat="noframes"
todir="target/junit-report/html"/>
</junitreport>
</target>
</project>
Is there any other method to generate areportwhere i can get
the
total number of scenarios passed and failed.
I am able to create a htmlreportbut it does not have a
summary,
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
Post by akanksha
I
need a summary
Thanks,
Akanksha
On Apr 17, 11:33 am, aslak hellesoy <
On Tue, Apr 17, 2012 at 6:46 AM, akanksha
Post by akanksha
Hi Aslak,
I tried writing this way
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
but it still does not work.
Thereportthat gets generated does not have any data
1) You shouldgetan xml file per feature. Do yougetthat? Can
you
share some of your XML files online in a gist or pastie?
2) What is the output when you run with --format progress
instead.
Can
we see it please?
Aslak
Post by akanksha
The format is generated but there is no data
A summary table as below gets generated but has no data
Summary
Tests Failures Errors Success rate Time
0 0 0 NaN
0.000
Note: failures are anticipated and checked for with
assertions
while
errors are unanticipated.
On Apr 16, 4:54 pm, aslak hellesoy
On Mon, Apr 16, 2012 at 12:36 PM, akanksha
Hi ,
I am migrating my project from Cuke4Duke tocucumberJVM
What command can i give in the build file( ant) so
that
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
Post by akanksha
Post by akanksha
i
cangeta
console output which tells me the details of
Scenarios passed, failed and skipped
Something like this
[java] 459 scenarios (11 failed, 448 passed)
[java] 1650 steps (11 failed, 8 skipped, 1631
passed)
[java] 76m56.856s
None
yet:https://github.com/cucumber/cucumber-jvm/issues/195
Also i want ajunitreport. How can i generate that
I have given the following commands in the build file
,
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
Post by akanksha
Post by akanksha
but
it
does
not work
"it does not work" usually doesn't provide enough
information
to
help anyone.
<arg value="--format"/>
<arg value="junit:output"/>
<arg value="out"/>
<arg
value="${basedir}/target/junit-report"/>
<arg value="features"/>
</java>
<junitreport todir="target/junit-report">
<fileset
dir="target/junit-report">
<include
name="TEST-*.xml"/>
</fileset>
<reportformat="noframes"
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
Post by akanksha
Post by akanksha
todir="target/junit-report/html"/>
</junitreport>
<arg value="--format"/>
<arg value="junit:${basedir}/target/junit-report"/>
<arg value="features"/>
Aslak
Thanks
Akanksha
--
You received this message because you are subscribed
to
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
Post by akanksha
Post by akanksha
the
Google Groups "Cukes" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to
the
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
Post by akanksha
Post by akanksha
Google
Groups "Cukes" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group
athttp://groups.google.com/group/cukes?hl=en.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This
allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the
Google
Groups Cukes group. To post to this group, send email to
email
to
this
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Post by akanksha
group at
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people
to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the
Google
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
Post by Madhu
Groups
Cukes group. To post to this group, send email to
unsubscribe from this group, send email to
group
at
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This
allows
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by aslak hellesoy
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
Cukes group. To post to this group, send email to
unsubscribe from this group, send email to
group at
https://groups.google.com/d/forum/cukes?hl=en
--
Regards,
Madhuri S.
--
Regards,
Madhuri S.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people
to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
Cukes group. To post to this group, send email to
unsubscribe from this group, send email to
group
Post by Madhuri Sanap
Post by Madhuri Sanap
Post by Madhuri Sanap
at
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google
Groups
Post by Madhuri Sanap
Post by Madhuri Sanap
Cukes group. To post to this group, send email to
unsubscribe from this group, send email to
group at
Post by Madhuri Sanap
Post by Madhuri Sanap
https://groups.google.com/d/forum/cukes?hl=en
--
Regards,
Madhuri S.
--
Regards,
Madhuri S.
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people
Post by Madhuri Sanap
to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
To
Post by Madhuri Sanap
unsubscribe from this group, send email to
at
Post by Madhuri Sanap
https://groups.google.com/d/forum/cukes?hl=en
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows
people to filter messages.
2) Please use interleaved answers
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group, send email to
https://groups.google.com/d/forum/cukes?hl=en
--
Regards,
Madhuri S.

-- There are two rules:

1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style

You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org To unsubscribe from this group, send email to cukes+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
Loading...