Hi, You can expect that if the dependencies of that code are imported into JMeter's lib folder.
I've done that a few times and all errors were related to classpath and libs missing. The problem with copy-pasting from an IDE appears when you have to build the lib jars. If those libs have dependencies of their own, and those are not in JMeter's classpath, it becomes difficult to debug. But I don't know what to say about what you observed, it doesn't compute with me. Adrian S On Fri, Apr 19, 2013 at 7:16 AM, stuntgirl <[email protected]> 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. > > Can I expect the output from Eclipse to be the same in JMeter? 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: [email protected] > For additional commands, e-mail: [email protected] > >
