You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Divi <di...@scientificmonitoring.com> on 2008/02/22 00:54:45 UTC

JunitRequest sampler

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


Re: Response Data

Posted by sebb <se...@gmail.com>.
On 23/02/2008, sebb <se...@gmail.com> wrote:
> On 22/02/2008, Neiman, Oleg <Ol...@sigma-systems.com> wrote:
>  >
>  >  Hi,
>  >  I am receiving following message once selecting item in "View Results
>  >  Tree:
>  >  Response too large to be displayed (276863 bytes).
>  >
>  >  How can it display data, should some embedded recourses be used?
>
>
> The size limit cannot be overriden currently.
>

I've put in a fix to allow the limit to be configured.

The next version of JMeter will allow the limit to be increased or
ignored, by setting the property:

view.results.tree.max_size

>  However you can use the Save Responses to a file Post-Processor and
>  then load the file in a browser or editor.
>
>
>  >
>  >  Thanks,
>  >  Oleg
>  >
>  >  ---------------------------------------------------------------------
>  >  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


Re: Response Data

Posted by sebb <se...@gmail.com>.
On 22/02/2008, Neiman, Oleg <Ol...@sigma-systems.com> wrote:
>
>  Hi,
>  I am receiving following message once selecting item in "View Results
>  Tree:
>  Response too large to be displayed (276863 bytes).
>
>  How can it display data, should some embedded recourses be used?

The size limit cannot be overriden currently.

However you can use the Save Responses to a file Post-Processor and
then load the file in a browser or editor.

>
>  Thanks,
>  Oleg
>
>  ---------------------------------------------------------------------
>  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


Response Data

Posted by "Neiman, Oleg" <Ol...@sigma-systems.com>.
Hi,
I am receiving following message once selecting item in "View Results
Tree:
Response too large to be displayed (276863 bytes).

How can it display data, should some embedded recourses be used?

Thanks,
Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: JunitRequest sampler

Posted by Divi <di...@scientificmonitoring.com>.
I am unable to send attachment with private mail.
Can you suggest how the directory structure for jar mail should be.
I feel may be directory structure is causing some problem.
yes, i checked and all files have package information in them.

Divi

sebb-2-2 wrote:
> 
> On 22/02/2008, Divi <di...@scientificmonitoring.com> 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 <di...@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
>>
>>
> 
> ---------------------------------------------------------------------
> 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-tp15624079p15641873.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


Re: JunitRequest sampler

Posted by sebb <se...@gmail.com>.
On 22/02/2008, Divi <di...@scientificmonitoring.com> 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 <di...@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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: JunitRequest sampler

Posted by Divi <di...@scientificmonitoring.com>.
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 <di...@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


Re: JunitRequest sampler

Posted by sebb <se...@gmail.com>.
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 <di...@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