Printing values from Steps in scenario steps in html-report

192 views
Skip to first unread message

Arish Arbab

unread,
Apr 18, 2015, 7:48:23 AM4/18/15
to getg...@googlegroups.com
Hi,

I have started using gauge for web automation project. I have been using cucumber -jvm lately.
Is there a way by which we I can write text in the html report. For Example we have scenario.write("MSg"); in cucumber.
This would really help in letting the user know what is happening in each step.


Thanks
Arish

apoorvam

unread,
Apr 20, 2015, 1:22:15 AM4/20/15
to getg...@googlegroups.com
Nice to know that you started using Gauge in your project.

This feature is already in our roadmap. Its being tracked here and we will update once this feature is released. 

Arish Arbab

unread,
Apr 20, 2015, 5:52:56 AM4/20/15
to getg...@googlegroups.com
When Can we expect it ?

Deepthi G Chandramouli

unread,
Apr 20, 2015, 10:42:55 AM4/20/15
to Arish Arbab, getg...@googlegroups.com
Hi Arish,

We are at least a few weeks away from this. I unfortunately can't give you a better estimate. This is something we are considering as high priority(multiple users have asked for this), and the team will pick this up as soon as we have bandwidth. 

I hope this helps.

Deepthi

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/getgauge/835d696c-e155-46f6-9311-60d32f9afe99%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Arish Arbab

unread,
May 4, 2015, 10:03:12 AM5/4/15
to getg...@googlegroups.com, arish...@gmail.com
Hi Deepthi,

Is there any update on it ?

Thanks,
Arish

dchandra

unread,
May 5, 2015, 10:47:14 AM5/5/15
to getg...@googlegroups.com
Hi Arish,

I'm sorry we haven't gotten to this yet. We have our hands full because we're preparing for a major release. This is a priority task and a few others have asked too. But we need a few weeks to deliver on this. I will email you(or you can watch the issue) as soon as we get this done. 

On Saturday, April 18, 2015 at 5:18:23 PM UTC+5:30, Arish Arbab wrote:

Arish Arbab

unread,
May 28, 2015, 10:29:08 PM5/28/15
to getg...@googlegroups.com
Hi Deepthi,

Is this feature supported in the latest version of gauge ?

Thanks,

Deepthi G Chandramouli

unread,
May 29, 2015, 6:48:05 AM5/29/15
to Arish Arbab, getg...@googlegroups.com
Hi Arish,

It's not on the latest release of Gauge, but we have started working on this, and we will have an update for you very soon.

-Deepthi

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.

Arish Arbab

unread,
Jun 5, 2015, 7:06:10 AM6/5/15
to getg...@googlegroups.com, arish...@gmail.com
Thanks for the update, I am really looking forward to it.

Deepthi

unread,
Jun 18, 2015, 5:55:42 AM6/18/15
to getg...@googlegroups.com, arish...@gmail.com
Hi Arish,

We have released this feature for the Java stack :) Please use the latest version of Gauge, Gauge-Java and Html-Report.

Let us know how it works for you. We'd like to get your feedback on this.

Deepthi

Arish Arbab

unread,
Jun 20, 2015, 2:46:39 AM6/20/15
to getg...@googlegroups.com, arish...@gmail.com
Thanks Deepthi, I updated my gauge intellij plugin but unfortunately "Gauge.writeMessage("Custom message for report");" doesn't work for me.

Prateek Kumar Baheti

unread,
Jun 20, 2015, 3:28:47 AM6/20/15
to Arish Arbab, getg...@googlegroups.com
Have you updated the html-report plugin also to the latest ?
Run gauge --update html-report

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.

Arish Arbab

unread,
Jun 21, 2015, 11:06:50 AM6/21/15
to getg...@googlegroups.com, arish...@gmail.com
I ran the same command and got the below info

"Plugin html-report 1.0.4 is already installed. "

Still Gauge.writeMessage() doesn't work.

Do I need to update its dependencies ??

Prateek Kumar Baheti

unread,
Jun 22, 2015, 1:59:44 AM6/22/15
to Arish Arbab, getg...@googlegroups.com
This could happen if you have multiple gauge-java jars in your project classpath. Do you have a gauge-java jar added in your libs directory or referenced in the Intellij module as a dependency ?
Can you try it in a simple new gauge project ?

Arish Arbab

unread,
Jun 22, 2015, 3:16:59 AM6/22/15
to getg...@googlegroups.com, arish...@gmail.com
My libs folder was empty and no other jar was reference in intellij module as a dependency.

Current Gauge intellij plugin version is 0.0.10

I created a simple new Gauge project. Still I cannot compile the code. I suspect "com.thoughtworks.gauge.Gauge"  class is still not available in the latest plugin. Attached the screenshot.

Prateek Baheti

unread,
Jun 22, 2015, 4:07:02 AM6/22/15
to Arish Arbab, getg...@googlegroups.com
Can you run gauge -v and send the versions of the plugins that you are running ?

Message has been deleted

Prateek Kumar Baheti

unread,
Jun 22, 2015, 5:13:18 AM6/22/15
to Arish Arbab, getg...@googlegroups.com
It seems you are on an older version of gauge and the plugins. Can you download and install the latest version of gauge (0.1.4) from here.
Also the java and html-report plugins need to be updated.

Run the below commands after updating gauge.
 gauge --update java
 
gauge --update html-report



On Mon, Jun 22, 2015 at 2:37 PM, Arish Arbab <arish...@gmail.com> wrote:
Gauge version: 0.1.0

Plugins
-------
html-report (1.0.3)
java (0.0.5)
xml-report (0.0.2)

Arish Arbab

unread,
Jun 22, 2015, 5:35:04 AM6/22/15
to getg...@googlegroups.com, arish...@gmail.com
Thanks its working now :)

So basically, Updating just intellij plugin will not update Gauge, you have to uninstall previous version of Gauge and install the latest version and update the java and html plugins.

Thanks again for adding the requested feature.

Will let you know if I face any further issues.

Arish Arbab

unread,
Jun 24, 2015, 4:43:43 AM6/24/15
to getg...@googlegroups.com
Hi,

Gauge.writeMessage is working fine. However, if I call Gauge.writeMessage function multiple times in the same step implementation function, it prints always in a new line.

Is there a way to avoid it ?

Thanks,
Arish

Prateek Kumar Baheti

unread,
Jun 25, 2015, 12:57:11 AM6/25/15
to Arish Arbab, getg...@googlegroups.com
Currently this cannot be changed. Gauge collects one message at a time and the reporter adds each to a new line.

This could be done by exposing APIs similar to java's print() and println() methods where a user can control if the message goes into a new line. An issue has been created for this enhancement.

Reply all
Reply to author
Forward
0 new messages