JUnit Request Class not Found Exception

2018-10-09 Thread Maxwell Falcon
Hello,

I am trying to run some JMeter tests through Jenkins using a docker
instance.  I am not using the Maven plugin as I see some other users
doing.  I can run my tests locally with no error.

Right now I have Jenkins checking out a repo.  In the build stage I am
building the project into a .jar file and then moving that .jar file into
the /lib/junit library found on the docker instance.  Then I run the
tests.

In the jmeter log file I get this warning every time I attempt to run a
test:

jmeter.protocol.java.sampler.JUnitSampler: ClassNotFoundException::
JMeterCommunityTests.JMeterLoginTests

In the tests results file (.xml) I have this:
rm="Failed to create an instance of the class:JMeterLoginTests,
reasons may be missing both empty constructor and one String
constructor or failure to instantiate constructor, check warning
messages in jmeter log file"


Does anyone have any suggestions? Thank you for your time.


Re: JUnit Setup Issues

2018-09-07 Thread Maxwell Falcon
Here are the new screenshots: https://imgur.com/a/vaR12yn

Ill post the text that was in the response data field that got cut off:

Error -- 
loginLogout(org.apache.jmeter.protocol.java.sampler.JUnitSampler$AnnotatedTestCase):
 null
Trace -- java.lang.NullPointerException
at core.BaseCommunityTest.testCleanUp(BaseCommunityTest.java:48)
at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at 
org.apache.jmeter.protocol.java.sampler.JUnitSampler.sample(JUnitSampler.java:399)
at 
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:490)
at 
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250)
at java.base/java.lang.Thread.run(Thread.java:844)


Again than you everyone for all of your help!



On 9/6/18, 6:56 PM, "Deepak Shetty"  wrote:

Hi
can you enable  Append Assertion errors and Append Runtime errors in the
sampler , and resend the screenshot ? Also if you havent please add
distinct values for failure code and error codes so system would be able to
differentiate between your test ran but something you asserted failed and
there was a runtime exception or something while running the test.

In your screen , The error count is 1 , it does look like it attempted to
run and got some error.


regards
deepak

On Thu, Sep 6, 2018 at 2:01 PM Maxwell Falcon  wrote:





Re: JUnit Setup Issues

2018-09-06 Thread Maxwell Falcon
Is it acceptable to post images?

https://imgur.com/a/Z3vTsd4

On 9/6/18, 4:57 PM, "Philippe Mouawad"  wrote:

What does the node show in the 3 tabs of View Result Tree when you click on
it ?

On Thu, Sep 6, 2018 at 10:54 PM Maxwell Falcon  wrote:

> As far as I can tell the test is not actually being executed.  Also when I
> look at the results tree listener the Junit request is highlighted in red
> with a red x icon next to it.
>
> On 9/6/18, 4:50 PM, "Felix Schumacher" 

> wrote:
>
>
    >
    > Am 06.09.2018 um 22:46 schrieb Maxwell Falcon:
> > However it looks like when I leave that field blank the log
> changes.  Maybe leaving it blank fixed my original issue, but now I have a
> new issue?
> Do you think you have new issue? Why? All those message are INFO, so
> no
> problems are reported there.
>
> Regards,
>   Felix
> >
> > 2018-09-06 16:44:20,103 INFO o.a.j.u.JMeterUtils: Setting Locale to
> en_US
> > 2018-09-06 16:44:20,185 INFO o.a.j.JMeter: Loading user properties
> from: user.properties
> > 2018-09-06 16:44:20,187 INFO o.a.j.JMeter: Loading system properties
> from: system.properties
> > 2018-09-06 16:44:20,200 INFO o.a.j.JMeter: Copyright (c) 1998-2018
> The Apache Software Foundation
> > 2018-09-06 16:44:20,200 INFO o.a.j.JMeter: Version 4.0 r1823414
> > 2018-09-06 16:44:20,200 INFO o.a.j.JMeter: java.version=10.0.2
> > 2018-09-06 16:44:20,200 INFO o.a.j.JMeter: java.vm.name=Java
> HotSpot(TM) 64-Bit Server VM
> > 2018-09-06 16:44:20,201 INFO o.a.j.JMeter: os.name=Mac OS X
> > 2018-09-06 16:44:20,201 INFO o.a.j.JMeter: os.arch=x86_64
> > 2018-09-06 16:44:20,201 INFO o.a.j.JMeter: os.version=10.13.6
> > 2018-09-06 16:44:20,201 INFO o.a.j.JMeter: file.encoding=UTF-8
> > 2018-09-06 16:44:20,201 INFO o.a.j.JMeter: Max memory 
=2147483648
> > 2018-09-06 16:44:20,201 INFO o.a.j.JMeter: Available Processors =4
> > 2018-09-06 16:44:20,215 INFO o.a.j.JMeter: Default Locale=English
> (United States)
> > 2018-09-06 16:44:20,216 INFO o.a.j.JMeter: JMeter  Locale=English
> (United States)
> > 2018-09-06 16:44:20,216 INFO o.a.j.JMeter: JMeterHome=/Source/JMeter
> > 2018-09-06 16:44:20,216 INFO o.a.j.JMeter: user.dir
> =/Source/JMeter/bin
> > 2018-09-06 16:44:20,216 INFO o.a.j.JMeter: PWD
>  =/Source/JMeter/bin
> > 2018-09-06 16:44:20,218 INFO o.a.j.JMeter: IP: 10.246.64.68 Name:
> maxwellfalcon.local FullName: 10.246.64.68
> > 2018-09-06 16:44:22,489 INFO o.a.j.g.a.LookAndFeelCommand:
> Installing Darcula LAF
> > 2018-09-06 16:44:22,511 INFO o.a.j.g.a.LookAndFeelCommand: Using
> look and feel: com.bulenkov.darcula.DarculaLaf [Darcula]
> > 2018-09-06 16:44:22,511 INFO o.a.j.JMeter: Setting LAF to:
> com.bulenkov.darcula.DarculaLaf
> > 2018-09-06 16:44:22,674 INFO o.a.j.JMeter: Loaded icon properties
> from org/apache/jmeter/images/icon.properties
> > 2018-09-06 16:44:23,354 INFO o.a.j.e.u.CompoundVariable: Note:
> Function class names must contain the string: '.functions.'
> > 2018-09-06 16:44:23,354 INFO o.a.j.e.u.CompoundVariable: Note:
> Function class names must not contain the string: '.gui.'
> > 2018-09-06 16:44:26,971 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for
> text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
> > 2018-09-06 16:44:26,971 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for
> application/xhtml+xml is
> org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
> > 2018-09-06 16:44:26,972 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for
> application/xml is
> org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
> > 2018-09-06 16:44:26,972 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for
> text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
> > 2018-09-06 16:44:26,973 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for
> text/vnd.wap.wml is 
org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
> > 2018-09-06 16:44:26,973 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for
> text/css is org.apache.jmeter.protocol.http.parser.CssParser
> > 2018-09-06 16:44:27,575 INFO o.a.j.e.KeyToolUtils: keytool found at
> 'keytool'
> > 2018-09-06 16:44:27,576 INFO o.a.j.p.h.p.ProxyControl: HTTP(S) Test
> Script Recorder SSL

Re: JUnit Setup Issues

2018-09-06 Thread Maxwell Falcon
As far as I can tell the test is not actually being executed.  Also when I look 
at the results tree listener the Junit request is highlighted in red with a red 
x icon next to it.  

On 9/6/18, 4:50 PM, "Felix Schumacher"  
wrote:



Am 06.09.2018 um 22:46 schrieb Maxwell Falcon:
> However it looks like when I leave that field blank the log changes.  
Maybe leaving it blank fixed my original issue, but now I have a new issue?
Do you think you have new issue? Why? All those message are INFO, so no 
problems are reported there.

Regards,
  Felix
>
> 2018-09-06 16:44:20,103 INFO o.a.j.u.JMeterUtils: Setting Locale to en_US
> 2018-09-06 16:44:20,185 INFO o.a.j.JMeter: Loading user properties from: 
user.properties
> 2018-09-06 16:44:20,187 INFO o.a.j.JMeter: Loading system properties 
from: system.properties
> 2018-09-06 16:44:20,200 INFO o.a.j.JMeter: Copyright (c) 1998-2018 The 
Apache Software Foundation
> 2018-09-06 16:44:20,200 INFO o.a.j.JMeter: Version 4.0 r1823414
> 2018-09-06 16:44:20,200 INFO o.a.j.JMeter: java.version=10.0.2
> 2018-09-06 16:44:20,200 INFO o.a.j.JMeter: java.vm.name=Java HotSpot(TM) 
64-Bit Server VM
> 2018-09-06 16:44:20,201 INFO o.a.j.JMeter: os.name=Mac OS X
> 2018-09-06 16:44:20,201 INFO o.a.j.JMeter: os.arch=x86_64
> 2018-09-06 16:44:20,201 INFO o.a.j.JMeter: os.version=10.13.6
> 2018-09-06 16:44:20,201 INFO o.a.j.JMeter: file.encoding=UTF-8
> 2018-09-06 16:44:20,201 INFO o.a.j.JMeter: Max memory =2147483648
> 2018-09-06 16:44:20,201 INFO o.a.j.JMeter: Available Processors =4
> 2018-09-06 16:44:20,215 INFO o.a.j.JMeter: Default Locale=English (United 
States)
> 2018-09-06 16:44:20,216 INFO o.a.j.JMeter: JMeter  Locale=English (United 
States)
> 2018-09-06 16:44:20,216 INFO o.a.j.JMeter: JMeterHome=/Source/JMeter
> 2018-09-06 16:44:20,216 INFO o.a.j.JMeter: user.dir  =/Source/JMeter/bin
> 2018-09-06 16:44:20,216 INFO o.a.j.JMeter: PWD   =/Source/JMeter/bin
> 2018-09-06 16:44:20,218 INFO o.a.j.JMeter: IP: 10.246.64.68 Name: 
maxwellfalcon.local FullName: 10.246.64.68
> 2018-09-06 16:44:22,489 INFO o.a.j.g.a.LookAndFeelCommand: Installing 
Darcula LAF
> 2018-09-06 16:44:22,511 INFO o.a.j.g.a.LookAndFeelCommand: Using look and 
feel: com.bulenkov.darcula.DarculaLaf [Darcula]
> 2018-09-06 16:44:22,511 INFO o.a.j.JMeter: Setting LAF to: 
com.bulenkov.darcula.DarculaLaf
> 2018-09-06 16:44:22,674 INFO o.a.j.JMeter: Loaded icon properties from 
org/apache/jmeter/images/icon.properties
> 2018-09-06 16:44:23,354 INFO o.a.j.e.u.CompoundVariable: Note: Function 
class names must contain the string: '.functions.'
> 2018-09-06 16:44:23,354 INFO o.a.j.e.u.CompoundVariable: Note: Function 
class names must not contain the string: '.gui.'
> 2018-09-06 16:44:26,971 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for 
text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
> 2018-09-06 16:44:26,971 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for 
application/xhtml+xml is 
org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
> 2018-09-06 16:44:26,972 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for 
application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
> 2018-09-06 16:44:26,972 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for 
text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
> 2018-09-06 16:44:26,973 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for 
text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
> 2018-09-06 16:44:26,973 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for 
text/css is org.apache.jmeter.protocol.http.parser.CssParser
> 2018-09-06 16:44:27,575 INFO o.a.j.e.KeyToolUtils: keytool found at 
'keytool'
> 2018-09-06 16:44:27,576 INFO o.a.j.p.h.p.ProxyControl: HTTP(S) Test 
Script Recorder SSL Proxy will use keys that support embedded 3rd party 
resources in file /Source/JMeter/bin/proxyserver.jks
> 2018-09-06 16:44:30,814 INFO o.a.j.s.FileServer: Default 
base='/Source/JMeter/bin'
> 2018-09-06 16:44:31,368 INFO o.a.j.s.SampleResult: Note: Sample 
TimeStamps are START times
> 2018-09-06 16:44:31,368 INFO o.a.j.s.SampleResult: 
sampleresult.default.encoding is set to ISO-8859-1
> 2018-09-06 16:44:31,368 INFO o.a.j.s.SampleResult: 
sampleresult.useNanoTime=true
> 2018-09-06 16:44:31,369 INFO o.a.j.s.SampleResult: 
sampleresult.nanoThreadSleep=5000
> 2018-09-06 16:45:14,984 INFO o.a.j.e.StandardJMeterEngine: Running the 
test!
> 2018-09-06 16:45:14,985 INFO o.a.j.s.SampleEvent: List of 
sample_variables: []
> 2018-09-06 16:45:14,985 INFO o.a.j.s.SampleEvent: List of 
sample_variables: []
> 2018-09-06 16:45:14,994 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, 
*

Re: JUnit Setup Issues

2018-09-06 Thread Maxwell Falcon
 finished: Thread 
Group 1-1
2018-09-06 16:45:15,149 INFO o.a.j.e.StandardJMeterEngine: Notifying test 
listeners of end of test
2018-09-06 16:45:15,152 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)

On 9/6/18, 4:37 PM, "Deepak Shetty"  wrote:

Then thats why its failing :)
Constructor string

String pass to the string constructor. If a string is set, the sampler will
use the string constructor instead of the empty constructor.


On Thu, Sep 6, 2018 at 1:29 PM Maxwell Falcon  wrote:

> I did put a value for the Constructor String label.
>
> On 9/6/18, 4:21 PM, "Deepak Shetty"  wrote:
>
> Do you have any value specified in Constructor String label ?
>
> 
https://jmeter.apache.org/usermanual/component_reference.html#JUnit_Request
> If you specify that it will look for a constructor with a parameter .
>
    > On Thu, Sep 6, 2018 at 11:13 AM Maxwell Falcon 
> wrote:
>
> > Hello, this is my first time using the mailing list, so I hope that
> I am
> > posting in the right channel/list.
> >
> > Essentially I am trying to run some of my Junit tests in JMeter.
> Right
> > now I have exported my project as a .jar and put the .jar in the
> lib/junit
> > directory.  In JMeter I add the Junit sampler and results tree
> listener.
> >  In the JUnit sampler I select my classname and test and then hit
> run.  I
> > get response code 100 but the test shows up red and never runs.
> Looking at
> > the log it looks the error is
> >
> > “Trying to find constructor with one String parameter returned 
error:
> > community.LoginTests.(java.lang.String)”
> >
> > I do not have a constructor in the test class. Any help would be
> greatly
> > appreciated.  If I am posting this in the wrong place then please
> let me
> > know.
> >
> > -Maxwell
> >
>
>



Re: JUnit Setup Issues

2018-09-06 Thread Maxwell Falcon
Whether I leave the Constructor string label blank or fill it, the test will 
still not run.  

On 9/6/18, 4:37 PM, "Deepak Shetty"  wrote:

Then thats why its failing :)
Constructor string

String pass to the string constructor. If a string is set, the sampler will
use the string constructor instead of the empty constructor.


On Thu, Sep 6, 2018 at 1:29 PM Maxwell Falcon  wrote:

> I did put a value for the Constructor String label.
>
> On 9/6/18, 4:21 PM, "Deepak Shetty"  wrote:
>
> Do you have any value specified in Constructor String label ?
>
> 
https://jmeter.apache.org/usermanual/component_reference.html#JUnit_Request
> If you specify that it will look for a constructor with a parameter .
>
    > On Thu, Sep 6, 2018 at 11:13 AM Maxwell Falcon 
> wrote:
>
> > Hello, this is my first time using the mailing list, so I hope that
> I am
> > posting in the right channel/list.
> >
> > Essentially I am trying to run some of my Junit tests in JMeter.
> Right
> > now I have exported my project as a .jar and put the .jar in the
> lib/junit
> > directory.  In JMeter I add the Junit sampler and results tree
> listener.
> >  In the JUnit sampler I select my classname and test and then hit
> run.  I
> > get response code 100 but the test shows up red and never runs.
> Looking at
> > the log it looks the error is
> >
> > “Trying to find constructor with one String parameter returned 
error:
> > community.LoginTests.(java.lang.String)”
> >
> > I do not have a constructor in the test class. Any help would be
> greatly
> > appreciated.  If I am posting this in the wrong place then please
> let me
> > know.
> >
> > -Maxwell
> >
>
>



Re: JUnit Setup Issues

2018-09-06 Thread Maxwell Falcon
I did put a value for the Constructor String label.

On 9/6/18, 4:21 PM, "Deepak Shetty"  wrote:

Do you have any value specified in Constructor String label ?
https://jmeter.apache.org/usermanual/component_reference.html#JUnit_Request
If you specify that it will look for a constructor with a parameter .

On Thu, Sep 6, 2018 at 11:13 AM Maxwell Falcon  wrote:

> Hello, this is my first time using the mailing list, so I hope that I am
> posting in the right channel/list.
>
> Essentially I am trying to run some of my Junit tests in JMeter.  Right
> now I have exported my project as a .jar and put the .jar in the lib/junit
> directory.  In JMeter I add the Junit sampler and results tree listener.
>  In the JUnit sampler I select my classname and test and then hit run.  I
> get response code 100 but the test shows up red and never runs.  Looking 
at
> the log it looks the error is
>
> “Trying to find constructor with one String parameter returned error:
> community.LoginTests.(java.lang.String)”
>
> I do not have a constructor in the test class. Any help would be greatly
> appreciated.  If I am posting this in the wrong place then please let me
> know.
>
> -Maxwell
>



Re: JUnit Setup Issues

2018-09-06 Thread Maxwell Falcon
eterThread: Thread started: Thread Group 
1-1
2018-09-06 16:16:36,275 INFO o.a.j.e.StandardJMeterEngine: All thread groups 
have been started
2018-09-06 16:16:36,279 INFO o.a.j.p.j.s.JUnitSampler: Trying to find empty 
constructor returned error: community.LoginTests.()
2018-09-06 16:16:36,284 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 
1-1
2018-09-06 16:16:36,284 INFO o.a.j.t.JMeterThread: Thread finished: Thread 
Group 1-1
2018-09-06 16:16:36,285 INFO o.a.j.e.StandardJMeterEngine: Notifying test 
listeners of end of test
2018-09-06 16:16:36,286 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)

Thank you everyone for you help with this.  I really appreciate it.

On 9/6/18, 4:11 PM, "Felix Schumacher"  
wrote:



Am 06.09.2018 um 20:13 schrieb Maxwell Falcon:
> Hello, this is my first time using the mailing list, so I hope that I am 
posting in the right channel/list.
>
> Essentially I am trying to run some of my Junit tests in JMeter.  Right 
now I have exported my project as a .jar and put the .jar in the lib/junit 
directory.  In JMeter I add the Junit sampler and results tree listener.   In 
the JUnit sampler I select my classname and test and then hit run.  I get 
response code 100 but the test shows up red and never runs.  Looking at the log 
it looks the error is
>
> “Trying to find constructor with one String parameter returned error: 
community.LoginTests.(java.lang.String)”
>
> I do not have a constructor in the test class. Any help would be greatly 
appreciated.  If I am posting this in the wrong place then please let me know.
What happens, when you add a constructor with a String parameter?

Regards,
  Felix

>
> -Maxwell
>


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




Re: JUnit Setup Issues

2018-09-06 Thread Maxwell Falcon
: Thread is done: Thread Group 
1-1
2018-09-06 15:56:47,697 INFO o.a.j.t.JMeterThread: Thread finished: Thread 
Group 1-1
2018-09-06 15:56:47,698 INFO o.a.j.e.StandardJMeterEngine: Notifying test 
listeners of end of test
2018-09-06 15:56:47,699 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)

On 9/6/18, 3:32 PM, "Philippe Mouawad"  wrote:

Hello,
You're in the right place.

Would it be possible to show your class maybe removing the code of methods
and also show jmeter.log ?

Thank you

On Thu, Sep 6, 2018 at 8:13 PM Maxwell Falcon  wrote:

> Hello, this is my first time using the mailing list, so I hope that I am
> posting in the right channel/list.
>
> Essentially I am trying to run some of my Junit tests in JMeter.  Right
> now I have exported my project as a .jar and put the .jar in the lib/junit
> directory.  In JMeter I add the Junit sampler and results tree listener.
>  In the JUnit sampler I select my classname and test and then hit run.  I
> get response code 100 but the test shows up red and never runs.  Looking 
at
> the log it looks the error is
>
> “Trying to find constructor with one String parameter returned error:
> community.LoginTests.(java.lang.String)”
>
> I do not have a constructor in the test class. Any help would be greatly
> appreciated.  If I am posting this in the wrong place then please let me
> know.
>
> -Maxwell
>


-- 
Cordialement.
Philippe Mouawad.
Ubik-Ingénierie

UBIK LOAD PACK Web Site <http://www.ubikloadpack.com/>

UBIK LOAD PACK on TWITTER <https://twitter.com/ubikloadpack>


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


Re: JUnit Setup Issues

2018-09-06 Thread Maxwell Falcon
Here is my class and I'll attach the log file:

package community;

import ...

public class LoginTests extends BaseCommunityTest {

private User user;

@Before
public void loginTestInit() {

}

@Test
@TestCase(owner = Owner.Kevin, testId = 834089)
public void loginLogout() {
System.out.println("Test");
}
}

On 9/6/18, 3:32 PM, "Philippe Mouawad"  wrote:

Hello,
You're in the right place.

Would it be possible to show your class maybe removing the code of methods
and also show jmeter.log ?

Thank you

On Thu, Sep 6, 2018 at 8:13 PM Maxwell Falcon  wrote:

> Hello, this is my first time using the mailing list, so I hope that I am
> posting in the right channel/list.
>
> Essentially I am trying to run some of my Junit tests in JMeter.  Right
> now I have exported my project as a .jar and put the .jar in the lib/junit
> directory.  In JMeter I add the Junit sampler and results tree listener.
>  In the JUnit sampler I select my classname and test and then hit run.  I
> get response code 100 but the test shows up red and never runs.  Looking 
at
> the log it looks the error is
>
> “Trying to find constructor with one String parameter returned error:
> community.LoginTests.(java.lang.String)”
>
> I do not have a constructor in the test class. Any help would be greatly
> appreciated.  If I am posting this in the wrong place then please let me
> know.
>
> -Maxwell
>


-- 
Cordialement.
Philippe Mouawad.
Ubik-Ingénierie

UBIK LOAD PACK Web Site <http://www.ubikloadpack.com/>

UBIK LOAD PACK on TWITTER <https://twitter.com/ubikloadpack>


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

JUnit Setup Issues

2018-09-06 Thread Maxwell Falcon
Hello, this is my first time using the mailing list, so I hope that I am 
posting in the right channel/list.

Essentially I am trying to run some of my Junit tests in JMeter.  Right now I 
have exported my project as a .jar and put the .jar in the lib/junit directory. 
 In JMeter I add the Junit sampler and results tree listener.   In the JUnit 
sampler I select my classname and test and then hit run.  I get response code 
100 but the test shows up red and never runs.  Looking at the log it looks the 
error is

“Trying to find constructor with one String parameter returned error: 
community.LoginTests.(java.lang.String)”

I do not have a constructor in the test class. Any help would be greatly 
appreciated.  If I am posting this in the wrong place then please let me know.

-Maxwell