jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Franck Arnulfo" <...@pipoware.com>
Subject Save Response Data Only When Sample Failed
Date Fri, 09 Jul 2004 14:06:50 GMT
Hi,

I've seen message about saving response data only when sample failed but with no conclusion.
So I've made this little hack to do it:
C:\jakarta-jmeter-2.0.1_src\jakarta-jmeter-2.0.1\src\core\org\apache\jmeter\save\SaveService.java:
line 689

            if (saveResponseData || (!result.isSuccessful()) ) // instead of if (saveResponseData
)
            {
                config.addChild(getConfiguration(result.getResponseData()));
            }

A nice thing will be to have a save option like this in jmeter.properties:
jmeter.save.saveservice.response_data_when_failed=true
Then:
            if (saveResponseData || (saveResponseDataWhenFailed && !result.isSuccessful()))
            {
                config.addChild(getConfiguration(result.getResponseData()));
            }

What do think about it ?

Rgds,

Franck Arnulfo


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message