You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2003/06/05 17:44:59 UTC

DO NOT REPLY [Bug 20510] New: - Java Sampler for testing scripts and JMeter functions

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20510>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20510

Java Sampler for testing scripts and JMeter functions

           Summary: Java Sampler for testing scripts and JMeter functions
           Product: JMeter
           Version: 1.9RC1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Main
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: tjsb@slb.com


I was looking for a simple way to try out scripts and functions, without 
needing to connect to an external server (HTTP, FTP etc).

I took the simplest sampler I could find (Java SleepTest) and added parameters 
to define various additional values in the response object:

 * - responseCode
 * - responseMessage
 * - Label
 * - success/fail status

Hopefully this will be useful to others when developing test scripts and 
experimenting with the features of JMeter.

Code and a sample test script to follow.

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