ok good. This is a standard java requirement . if you compile with 1.4 you can run on 1.6 but not necessarily the other way unless you compile with compatibility flags
regards deepak On Thu, Sep 24, 2009 at 12:44 PM, Anupindi, Satish < [email protected]> wrote: > > Hi, > I got it to work with your help. > 1) Had to recompile it from command line using the same version of JDK > as JMeter was running on. > 2) Had to remove other jar files from the /lib/junit directory. > > Thanks for all your help and support! > > Regards, > Satish > > > -----Original Message----- > From: Deepak Shetty [mailto:[email protected]] > Sent: Thursday, September 24, 2009 12:35 PM > To: JMeter Users List > Subject: Re: Question on using the JUnit Sampler with JMeter > > you've compiled your code in 1.6 (probably in eclipse) . you need to > recompile with 1.5 (or run Jmeter with 1.6) > > On Thu, Sep 24, 2009 at 9:29 AM, Anupindi, Satish < > [email protected]> wrote: > > > > > Re-introducing it back on the forum. > > Thanks! > > > > > > > I am a bit lost. When I do a > > > > > > C:\Program Files\jakarta-jmeter-2.3.4\bin>java -version java version > > > "1.5.0_19" > > > Java(TM) 2 Runtime Environment, Standard Edition (build > 1.5.0_19-b02) > > > Java HotSpot(TM) Client VM (build 1.5.0_19-b02, mixed mode, sharing) > > > > > > This is my classpath: > > > .;C:\Program Files\Java\jre6\lib\ext\QTJava.zip > > > > > > This is my Path: > > > C:\Program Files\Java\jre1.5.0_19\bin;C:\oracle\ora92\bin;C:\Program > > > Files\Oracle\jre\1.3.1\bin;C:\Program > > > > Files\Oracle\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemR > > > oo t%\System32\Wbem;C:\Program > Files\NetManage\RUMBA\System;C:\Program > > > Files\NetManage\RUMBA\;C:\Program > > > Files\Hummingbird\Connectivity\7.10\Accessories\;C:\Program > > > Files\QuickTime\QTSystem\;C:\Program Files\CollabNet > > > Subversion;C:\Program Files\TortoiseSVN\bin;C:\Program > > > Files\Java\jdk1.6.0_11\bin;C:\Program Files\maven\bin > > > > > > When possible, Please let me know exactly what I am supposed to do. > > > > > > Thanks so much!! > > > > > > Regards, > > > Satish > > > > > > -----Original Message----- > > > From: sebb [mailto:[email protected]] > > > Sent: Wednesday, September 23, 2009 5:16 PM > > > To: Anupindi, Satish > > > Subject: Re: Question on using the JUnit Sampler with JMeter > > > > > > What version of Java did you use to compile the code? > > > And what version of Java did you use to run JMeter? > > > > > > On 23/09/2009, Anupindi, Satish > <[email protected]> > > > wrote: > > >> > > >> > > >> My Bad - had classpath issues with junit during compilation. But > > >> here > > >> attached is the jar file which has both the class and source file. > I > > >> again put it in the "JMeter_root_dir\lib\junit" directory - but I > > > could > > >> not find the SampleTest under the ClassName option when I brought > up > > > a > > >> JUnit Sampler. So, back to square 1. I want to have JMeter running > > >> against JUnit for a bigger project, so I am stuck till I get this > > > basic > > >> thing to work. > > >> > > >> > > >> -----Original Message----- > > >> From: sebb [mailto:[email protected]] > > >> > > >> Sent: Wednesday, September 23, 2009 12:10 PM > > >> To: Anupindi, Satish > > >> Subject: Re: Question on using the JUnit Sampler with JMeter > > >> > > >> 1) There are no errors in the log file, only one warning > > >> > > >> 2) The jar file contains the source file, not the compiled class > > > file. > > >> > > >> On 23/09/2009, Anupindi, Satish > > > <[email protected]> > > >> wrote: > > >> > > > >> > Thanks so much for helping me out! I have attached the log file > > > and > > >> the > > >> > Java source and the jar file of the package. I do see errors in > > > the > > >> log > > >> > file, so I have attached it for you to take a look. > > >> > > > >> > Regards, > > >> > > > >> > Satish > > >> > > > >> > > > >> > -----Original Message----- > > >> > From: sebb [mailto:[email protected]] > > >> > > > >> > Sent: Wednesday, September 23, 2009 11:25 AM > > >> > To: JMeter Users List > > >> > Subject: Re: Question on using the JUnit Sampler with JMeter > > >> > > > >> > Are there any errors reported in the jmeter.log file? > > >> > If so, what are they? > > >> > > > >> > If not, please send me privately (not to the list): > > >> > > > >> > The jar. > > >> > The source for the test case(s) in the jar. > > >> > > > >> > On 23/09/2009, Anupindi, Satish > > >> <[email protected]> > > >> > wrote: > > >> > > > > >> > > I am using JUnit3. > > >> > > > > >> > > > > >> > > -----Original Message----- > > >> > > From: sebb [mailto:[email protected]] > > >> > > > > >> > > Sent: Wednesday, September 23, 2009 10:54 AM > > >> > > To: JMeter Users List > > >> > > Subject: Re: Question on using the JUnit Sampler with JMeter > > >> > > > > >> > > On 23/09/2009, Anupindi, Satish > > >> > <[email protected]> > > >> > > wrote: > > >> > > > > > >> > > > Does not seem to work with JMeter 2.3.4 either. Any > ideas? > > >> > > > > >> > > Are you using JUnit3 or JUnit4? > > >> > > > > >> > > > > > >> > > > -----Original Message----- > > >> > > > From: sebb [mailto:[email protected]] > > >> > > > Sent: Tuesday, September 22, 2009 6:30 PM > > >> > > > To: JMeter Users List > > >> > > > Subject: Re: Question on using the JUnit Sampler with > > >> JMeter > > >> > > > > > >> > > > On 22/09/2009, Anupindi, Satish > > >> > > <[email protected]> > > >> > > > wrote: > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > Hi, > > >> > > > > > > >> > > > > As a proof of concept, I created a sample > > > JUNit > > >> Test > > >> > > Java > > >> > > > > file (which is attached), compiled fine, created a jar > > > file > > >> out > > >> > of > > >> > > > the > > >> > > > > package defined for it. I then, copied the jar file to > > > the > > >> > > > > "JMeter_root_dir\lib\junit" directory, and restarted > > >> JMeter. > > >> > But > > >> > > I > > >> > > > > could not find the SampleTest under the ClassName > option. > > >> Any > > >> > > ideas > > >> > > > why? > > >> > > > > I Googled the hell out of it - but to no avail. Please > > >> help!! > > >> > > > > > > >> > > > > > >> > > > Please don't send attachments to the list (in this case > it > > > was > > >> > > dropped > > >> > > > anyway). > > >> > > > > > >> > > > N.B. JMeter 2.3.4 only supports JUnit3 because it targets > > > Java > > >> > 1.4+ > > >> > > > There will be JUnit4 support in the next release of > JMeter > > > (no > > >> > > release > > >> > > > date yet, but it will require Java 1.5+). > > >> > > > > > >> > > > > > > >> > > > > Thanks, > > >> > > > > > > >> > > > > > > >> > > > > Satish > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

