sebb 2005/03/06 09:33:17
Modified: src/components/org/apache/jmeter/assertions Tag: rel-2_0
BeanShellAssertion.java
Log:
Add SampleResult as alias for Response (to be consistent with BSH Sampler)
Revision Changes Path
No revision
No revision
1.3.2.5 +5 -3
jakarta-jmeter/src/components/org/apache/jmeter/assertions/BeanShellAssertion.java
Index: BeanShellAssertion.java
===================================================================
RCS file:
/home/cvs/jakarta-jmeter/src/components/org/apache/jmeter/assertions/BeanShellAssertion.java,v
retrieving revision 1.3.2.4
retrieving revision 1.3.2.5
diff -u -r1.3.2.4 -r1.3.2.5
--- BeanShellAssertion.java 8 Oct 2004 23:20:10 -0000 1.3.2.4
+++ BeanShellAssertion.java 6 Mar 2005 17:33:17 -0000 1.3.2.5
@@ -106,7 +106,9 @@
bshInterpreter.set("Parameters",getParameters());// as
a single line $NON-NLS-1$
bshInterpreter.set("bsh.args",//$NON-NLS-1$
JOrphanUtils.split(getParameters(),"
"));//$NON-NLS-1$
-
+
+ // Add SamplerData for consistency with BeanShell
Sampler
+ bshInterpreter.set("SampleResult",response);// Raw
access to the response //$NON-NLS-1$
bshInterpreter.set("Response",response);// Raw access
to the response //$NON-NLS-1$
bshInterpreter.set("ResponseData",response.getResponseData());//$NON-NLS-1$
bshInterpreter.set("ResponseCode",response.getResponseCode());//$NON-NLS-1$
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]