question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plug-in treats 0/0 as success

See original GitHub issue

When Jmeter fails all of its requests it generates a blank CSV with just headers. Maven succeeds: ` [INFO] ------------------------------------------------------- [INFO] S C A N N I N G F O R R E S U L T S [INFO] ------------------------------------------------------- [INFO]
[INFO] Will scan results using format: CSV [INFO]
[INFO] Parsing results file ‘<resultsFileCsv>’ as type: CSV [INFO] Number of failures in ‘<resultsFileCsv>’: 0 [INFO] Number of successes in ’ ‘<resultsFileCsv>’: 0

[INFO] Result (.csv) files scanned: 1 [INFO] Successful requests: 0 [INFO] Failed requests: 0 [INFO] Failures: NaN% (0.0% accepted) [INFO]
[INFO]

[INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.980 s [INFO] Finished at: 2021-10-04T14:03:45-06:00 [INFO] ------------------------------------------------------------------------ [INFO] Shutdown detected, destroying JMeter process…

`

pom:

<build> <plugins> <plugin> <groupId>com.lazerycode.jmeter</groupId> <artifactId>jmeter-maven-plugin</artifactId> <version>3.4.0</version> <executions> <!-- Generate JMeter configuration --> <execution> <id>configuration</id> <goals> <goal>configure</goal> </goals> </execution> <!-- Run JMeter tests --> <execution> <id>jmeter-tests</id> <goals> <goal>jmeter</goal> </goals> </execution> <!-- Fail build on errors in test --> <execution> <id>jmeter-check-results</id> <goals> <goal>results</goal> </goals> </execution> </executions> </plugin> </plugins> </build>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
davebarkerKountcommented, Oct 12, 2021

confirmed works. Thanks!

0reactions
Ardescocommented, Oct 9, 2021

@davebarkerKount, 3.5.0 is now out with the following config setting added:

<configuration>
    <failBuildIfResultFileIsEmpty>true</failBuildIfResultFileIsEmpty>
</configuration>

This will allow you to fail the build if the results file is empty.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do my Jenkins builds still show as success when I've set ...
I installed the performance plugin and set the error thresholds on a single build to be: unstable > 2% and failure > 5%....
Read more >
IBM Security QRadar Threat Monitoring Content Extension
Successful Login From a Compromised Host. The following table shows the reference sets in IBM Security QRadar Threat Monitoring Content Extension 1.2.0. Table ......
Read more >
Admin API - v3.1.x - Kong Docs
"v0" is the behavior used in Kong 0.x, 2.x and 3.x. It treats service.path , route.path and request path as segments of a...
Read more >
9 Restaurant Menu WordPress Plugins [+ What They're Best For]
Learn which WordPress restaurant menu plugins are best for customization, drag-and-drop settings, multilingual websites, and more.
Read more >
Declarative Pipeline shows SUCCESS even though job FAILED
Jenkins 2.150.3, Pipeline 2.6, Pipeline: Declarative plugin v1.3.5, ... Some of them have been upgraded to treat an unset status value as success, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found