To make the text and background of a cell in a statistics table turn red in JMeter HTML Dashboard Report, if the response time exceeds the threshold value, follow these steps:
Here is an example of the HTML template modification:
<td class="${stat.statErrorPct > ${threshold} ? 'failText' : ''}">
${stat.statErrorPct}
</td>
In this example, the "if" condition checks whether the "statErrorPct" statistic value exceeds the "threshold" value set in the Report generation properties. If it does, the class "failText" is added to the HTML tag, which is defined in the CSS stylesheet as having red text and background style:
.failText {
background-color: red;
color: white;
}
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-03-06 11:00:00 +0000
Seen: 10 times
Last updated: Oct 02 '21
What is the process for initializing Java UDFs in Spark?
What does the error message "Error detected while processing $/.config/nvim/init.lua" mean?
What are the components that explain the state of ECMAScript execution context specification?
Does GraphDB automatically eliminate duplicate triples?
It appears that Vitest is not effectively mimicking or simulating behavior.
How can OMNET++ be used to simulate M/M/c/c?
How can I use oversampling to address a problem?
What is the method to determine the most precise categorization of data using Self Organizing Map?