On 22/02/2008, Divi <[EMAIL PROTECTED]> wrote:
>
>  I am using JUnit 3.8.1.DO i need to use 3.8.2?

No.

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

That might still report an error.

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

Does the jar file have the correct directory structure?

Make sure that the package names are present.

>  Please suggest.
>

If you e-mail me the jar file privately (don't post to the list) I may
be able to check it out.

>
>  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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
>  >>  For additional commands, e-mail: [EMAIL PROTECTED]
>  >>
>  >>
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>  >
>
>
> --
>  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: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to