You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by "FSchumacher (via GitHub)" <gi...@apache.org> on 2023/04/15 15:47:50 UTC

[GitHub] [jmeter] FSchumacher commented on issue #5770: XPath and XPath2 extractors insert a new line in the failure message which breaks CSV log file formatting for the listener.

FSchumacher commented on issue #5770:
URL: https://github.com/apache/jmeter/issues/5770#issuecomment-1509875631

   You can fix this in your test plan by adding a global JSR 223 Listener, which contains the following Groovy code:
   ```groovy
   sampleResult.assertionResults.each {
   	it.failureMessage = it.failureMessage
   		.replaceAll("\n", "\\\\n")
   }
   ```
   That will replace all `\n` chars with an escaped variant `\\n`.
   PR #5805 should make this hack unnecessary.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org