Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript-Error in HTML-Report when using ScenarioResult.write #254

Closed
klausbayrhammer opened this issue Mar 12, 2012 · 1 comment
Closed

Comments

@klausbayrhammer
Copy link
Contributor

We tried to attach some additional information to the scenarioresult to be printed in the html-report using code like this:

@After
public void after(ScenarioResult res) {
    res.write("myText");
}

There we've had two different problems. Firstly the code above is rendered into the following js-code

formatter.write(myText);

This code produces the following errormessage Uncaught ReferenceError: myText is not defined

When we add the quotes ourselves in the javacode

@After
public void after(ScenarioResult res) {
    res.write("\"myText\"");
}

The following js-code is js-code is produced

formatter.write("myText");

Unfortunately this results in Uncaught TypeError: Object [object Object] has no method 'write'

greets Klaus

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants