getgauge/html-report

Gauge.writeMessage missing in step results

Closed this issue · 2 comments

Since Gauge Version 1.0.1 all Gauge.writeMessage in the method of a step aren't displayed in the html-report.
Gauge.writeMessage in @BeforeStep and @AfterStep are displayed as expected.
I only tested with the java plugin on CentOS7 and Ubuntu 18.04!

Expected behavior

All Gauge.writeMessage are displayed.
grafik

Gauge version: 1.0.0
Commit Hash: 5a99965

Plugins
-------
html-report (4.0.5)
java (0.6.8)
screenshot (0.0.1)
xml-report (0.2.0)

Actual behavior

No Gauge.writeMessage are displayed.
grafik

Gauge version: 1.0.1
Commit Hash: da2676b

Plugins
-------
html-report (4.0.5)
java (0.6.8)
screenshot (0.0.1)
xml-report (0.2.0)

Steps to reproduce

  1. Install gauge version 1.0.1
  2. Initialise new Java project
    gauge init java
  3. Add a Gauge.writeMessage("bla") to StepImplementation.java
    For example:
...
    @Step("Vowels in English language are <vowelString>.")
    public void setLanguageVowels(String vowelString) {
        vowels = new HashSet<>();
        Gauge.writeMessage("BLAAAAAAAAAAA");
        for (char ch : vowelString.toCharArray()) {
            vowels.add(ch);
            }
        }
...
  1. Run Spec
    gauge run specs/
  2. Open the index.html from directory report/html-report in different browsers

Gauge version

Gauge version: 1.0.1
Commit Hash: da2676b

Plugins
-------
html-report (4.0.5)
java (0.6.8)
screenshot (0.0.1)
xml-report (0.2.0)
sriv commented

Hi @martinseidel - can you please try using the latest nightly of html-report? This should be fixed, and we will release soon, but it would be good to have it confirmed. thanks.

Steps to follow:

Hi @sriv it works! Thank you for the fast reaktion! Thumb up!

Gauge version: 1.0.1
Commit Hash: da2676b

Plugins
-------
html-report (4.0.6.nightly-2018-08-13)
java (0.6.8)
screenshot (0.0.1)
xml-report (0.2.0)