jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Can BeanShell execute String.substring or StringBuffer.insert methods ?
Date Fri, 11 Feb 2005 00:00:53 GMT
On Thu, 10 Feb 2005 15:35:54 -0500, Kyle McAbee <k.mcabee@treev.com> wrote:
> Dear JMeter Users and Sebb:
> 
> Sebb, I assume you mean that escaping commas with the backslash character is not needed
in the BeanShell Sampler? As in:
> 
> This is OK:         str.substring(0, 1)
> This is not needed: str.substring(0\, 1)

Yes, that's what I meant.

> 
> Why would one need to put quotes around a comma "," in a BeanShell function?
> 
> Am I being dense here or is there some Deep Magic beyond the ken of mortals?

No, sorry, it's me again:

I said quote but I meant escape - i.e. prefix the comma with backslash ...

If you want Deep Magic you could try embedding a JMeter beanshell
function call inside a BeanShell sampler script!

> Sincerely yours,
> 
> Kyle
> 
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Thursday, February 10, 2005 12:41 PM
> To: JMeter Users List
> Subject: Re: Can BeanShell execute String.substring or
> StringBuffer.insert methods ?
> 
> On Wed, 9 Feb 2005 16:53:59 -0500, Kyle McAbee <k.mcabee@treev.com> wrote:
> > Dear JMeter Users and Sebb:
> 
> [...]
> 
> >
> > I'm not sure what Sebb meant when he wrote of the BeanShell Sampler:
> >
> > > The text does not need to be quoted in the [BeanShell] Sampler script ...
> >
> > What text did you mean, Sebb?
> >
> 
> Sorry that was not at all clear -
> 
> I meant that one does not need to quote commas in the script pane on
> the BeanShell sampler.
> 
> S.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
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