jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Divi <divi.markapu...@scientificmonitoring.com>
Subject Re: JunitRequest sampler
Date Fri, 22 Feb 2008 15:50:58 GMT

I am using JUnit 3.8.1.DO i need to use 3.8.2?I don't have any errors in my
log file as i did not run my thread.I have problem while creating
JUnitRequest sampler itself.
I could not find the classes in drop down of GUI for JUint sampler. I copied
the jar file with classes to specified location but coud not see them from
GUI.
Please suggest.


sebb-2-2 wrote:
> 
> What version of junit did you compile the test case with?
> JMeter uses 3.8.2, and later versions may cause problems, as they
> require Java 1.5+
> 
> Check jmeter.log for any error messages.
> 
> On 21/02/2008, Divi <divi.markapuram@scientificmonitoring.com> wrote:
>>
>>  Hi ,
>>
>>  I am very new to JMeter and trying to create a JUnitRequest sampler.
>>  I created a jar file with Junit test class and copied jar file under
>>  JMeter_Home\lib\junit.
>>  When i am trying to set up Junit Request sampler through GUI, i am not
>>  finding the Junit test class name i have created, in class name drop
>> down
>>  box.
>>  Am i missing some thing.
>>  Below mentioned is class i created.
>>
>>  package com.smi.itrend.JMeterTests;
>>
>>  import junit.framework.TestCase;
>>
>>  public class Testplan extends TestCase {
>>
>>         /* Test oneTimeSetUp */
>>
>>         private int oneTimeValue;
>>
>>         /** Default constructor */
>>         public Testplan() {
>>                 super();
>>         }
>>
>>         /** Constructor */
>>         public Testplan(String name) {
>>                 super(name);
>>         }
>>
>>         public void setUp() {
>>                 System.out.println("In setUp()");
>>         }
>>
>>         public void tearDown() {
>>                 System.out.println("In tearDown()");
>>         }
>>
>>         public void oneTimeSetUp() {
>>                 System.out.println("oneTimeSetUp called -- ");
>>                 oneTimeValue = 5;
>>                 System.out.println("In oneTimeSetUp: oneTimeValue: " +
>> oneTimeValue);
>>         }
>>
>>         public void oneTimeTearDown() {
>>                 System.out.println("oneTimeTearDown called -- ");
>>         }
>>
>>         /**
>>          * Test oneTimeSetUp
>>          */
>>         public void testMethod() {
>>                 System.out.println("In testMethod: oneTimeValue: " +
>> oneTimeValue);
>>         }
>>
>>  }
>>
>>
>>
>>  --
>>  View this message in context:
>> http://www.nabble.com/JunitRequest-sampler-tp15624079p15624079.html
>>  Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>>  ---------------------------------------------------------------------
>>  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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/JunitRequest-sampler-tp15624079p15634455.html
Sent from the JMeter - User mailing list archive at Nabble.com.


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