String code = prev.getResponseCode();
String message = prev.getResponseMessage();than you can modify it with ${__substring(,,,)}, or ${__javaScript(,)} functions. (See Function Helper in JMeter -> Options -> Function Helper Dialog)
You can add BeanSheel PostProcessor to your HTTP Request.
In this post processor you can get Response message:
Greetings,Is there a way to create/write a Substring such as the last 20 characters of the response message. (incorporate JavaScript?)
kg.apc.jmeter.reporters.FFWBufferSize=8000000sample_variables=myVar./jmeter -Jsample_variables=myVar -Jkg.apc.jmeter.reporters.FFWBufferSize=8000000Every answer I see in all the internet avoids the main question!
How does one write dynamic values to the output?
Clearly users want to submit changing values into the output. (csv, etc...)
In my case, I want to submit the equivalent of:
AF = "Authorization Failed";
RD = ctx.getPreviousResult().getResponseDataAsString();
if (RD.contains(AF)) {
props.put("myResponse", AF);
} else {
props.put("myResponse", RD);
---
<td>${__property(myResponse)}</td>
---
From every answer I see, the end result is NO, you cannot write changing values to Flexible File Writer!!!
If this had been the intent of the developer, they would had allowed custom ${vars} to be used in the plugin.
EVERYTHING is static output!!!
The only dynamic values are the tiny subset of vars that can be used and cannot be modified.
Sorry to break the hope of all interested parties.
Maybe if everyone chips in $1, the plugin developer will add that capability.
Thank you.
-------------------------------------
On Thursday, January 11, 2018 at 11:02:13 AM UTC+2, PackCat wrote: