jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Output from running Java in Beanshell | receiving only 'class ${classname}'
Date Fri, 19 Apr 2013 10:21:54 GMT
On 19 April 2013 05:16, stuntgirl <faux_fur@hotmail.com> wrote:

> Hi All,
>
> I really hope you can help.
>
> I bashed out a piece of Java code to do what I need to do. In Eclipse, it
> runs like a dream.
> I copy and pasted the code from Eclipse into a Beanshell Sampler.
> However, everytime I run my JMeter script, all I get is:
>
> class ${classname} in the Response Data tab.
>
> I'm actually expecting some kind of output. For context, my Java should log
> into a GMail account, retrieve a specific email (based on subject), open
> it,
> and interpret the contents of the email.
>
>
Why not use the Mail sampler?


> Can I expect the output from Eclipse to be the same in JMeter?


Not necessarily; BeanShell is not exactly the same as Java.
Remember it does not support generics, so make sure Eclipse is set to
source level 1.4 at most.

Also variable references such as ${classname} are resolved by JMeter before
the script is passed to BeanShell


> Am I doing
> something wrong?
>
> Regards,
> stuntgirl
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Output-from-running-Java-in-Beanshell-receiving-only-class-classname-tp5716741.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message