mercredi 19 octobre 2016

How to analyze and report HTTP responses in JMeter

I have a CSV file of values that needs to be run against a REST endpoint with JMeter. I have the project set up roughly like this:

  • Thread Group
    • HTTP Request
      • CSV Data Set Config
      • JSR223 PostProcessor
      • XPath Extractor

I use the XPath Extractor to look for a particular path in the HTTP Response. Then I use the JSR233 PostProcessor to evaluate that path output and set a variable with vars.set to track what values I get.

This seems like a really hacky way to write something like this. What I need is track counts of results that were "good" versus "bad" and the endpoint unfortunately doesn't use HTTP error codes (not my choice) to specify when something failed (like a 404 when nothing comes back. Any suggestions?

Aucun commentaire:

Enregistrer un commentaire