Gauge.writeMessage missing in step results
Closed this issue · 2 comments
martinseidel commented
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.
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.
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
- Install gauge version 1.0.1
- Initialise new Java project
gauge init java
- Add a
Gauge.writeMessage("bla")
toStepImplementation.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);
}
}
...
- Run Spec
gauge run specs/
- Open the
index.html
from directoryreport/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:
- download the html report zip from https://bintray.com/gauge/html-report/Nightly/_latestVersion
gauge install html-report -f <path_to_the_downloaded_file>
martinseidel commented
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)