Discussion:
JUnit Setup Issues
Maxwell Falcon
2018-09-06 18:13:07 UTC
Permalink
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.<init>(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
Philippe Mouawad
2018-09-06 19:32:32 UTC
Permalink
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
Post by 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
community.LoginTests.<init>(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>
Maxwell Falcon
2018-09-06 20:02:15 UTC
Permalink
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" <***@ubik-ingenierie.com> 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
Post by 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
community.LoginTests.<init>(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>
Philippe Mouawad
2018-09-06 20:05:25 UTC
Permalink
You can't attach files, so either share it in pastebin or similar website,
or copy content here .
In both cases, remove sensitive information if any.

Thanks
Post by Maxwell Falcon
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");
}
}
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
Post by Maxwell Falcon
Hello, this is my first time using the mailing list, so I hope that
I am
Post by Maxwell Falcon
posting in the right channel/list.
Essentially I am trying to run some of my Junit tests in JMeter.
Right
Post by Maxwell Falcon
now I have exported my project as a .jar and put the .jar in the
lib/junit
Post by Maxwell Falcon
directory. In JMeter I add the Junit sampler and results tree
listener.
Post by Maxwell Falcon
In the JUnit sampler I select my classname and test and then hit
run. I
Post by Maxwell Falcon
get response code 100 but the test shows up red and never runs.
Looking at
Post by Maxwell Falcon
the log it looks the error is
community.LoginTests.<init>(java.lang.String)”
I do not have a constructor in the test class. Any help would be
greatly
Post by Maxwell Falcon
appreciated. If I am posting this in the wrong place then please
let me
Post by Maxwell Falcon
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>
---------------------------------------------------------------------
--
Cordialement.
Philippe Mouawad.
Maxwell Falcon
2018-09-06 20:04:20 UTC
Permalink
I'm not sure if that attachment went through so I'll post the logfile here:

2018-09-06 15:56:03,294 INFO o.a.j.u.JMeterUtils: Setting Locale to en_US
2018-09-06 15:56:03,345 INFO o.a.j.JMeter: Loading user properties from: user.properties
2018-09-06 15:56:03,346 INFO o.a.j.JMeter: Loading system properties from: system.properties
2018-09-06 15:56:03,357 INFO o.a.j.JMeter: Copyright (c) 1998-2018 The Apache Software Foundation
2018-09-06 15:56:03,357 INFO o.a.j.JMeter: Version 4.0 r1823414
2018-09-06 15:56:03,357 INFO o.a.j.JMeter: java.version=10.0.2
2018-09-06 15:56:03,357 INFO o.a.j.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM
2018-09-06 15:56:03,357 INFO o.a.j.JMeter: os.name=Mac OS X
2018-09-06 15:56:03,357 INFO o.a.j.JMeter: os.arch=x86_64
2018-09-06 15:56:03,358 INFO o.a.j.JMeter: os.version=10.13.6
2018-09-06 15:56:03,358 INFO o.a.j.JMeter: file.encoding=UTF-8
2018-09-06 15:56:03,358 INFO o.a.j.JMeter: Max memory =2147483648
2018-09-06 15:56:03,358 INFO o.a.j.JMeter: Available Processors =4
2018-09-06 15:56:03,369 INFO o.a.j.JMeter: Default Locale=English (United States)
2018-09-06 15:56:03,369 INFO o.a.j.JMeter: JMeter Locale=English (United States)
2018-09-06 15:56:03,369 INFO o.a.j.JMeter: JMeterHome=/Source/JMeter
2018-09-06 15:56:03,369 INFO o.a.j.JMeter: user.dir =/Source/JMeter/bin
2018-09-06 15:56:03,370 INFO o.a.j.JMeter: PWD =/Source/JMeter/bin
2018-09-06 15:56:03,372 INFO o.a.j.JMeter: IP: 10.246.64.68 Name: maxwellfalcon.local FullName: 10.246.64.68
2018-09-06 15:56:05,334 INFO o.a.j.g.a.LookAndFeelCommand: Installing Darcula LAF
2018-09-06 15:56:05,345 INFO o.a.j.g.a.LookAndFeelCommand: Using look and feel: com.bulenkov.darcula.DarculaLaf [Darcula]
2018-09-06 15:56:05,345 INFO o.a.j.JMeter: Setting LAF to: com.bulenkov.darcula.DarculaLaf
2018-09-06 15:56:05,492 INFO o.a.j.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties
2018-09-06 15:56:06,157 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must contain the string: '.functions.'
2018-09-06 15:56:06,161 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must not contain the string: '.gui.'
2018-09-06 15:56:09,157 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2018-09-06 15:56:09,161 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2018-09-06 15:56:09,162 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2018-09-06 15:56:09,162 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2018-09-06 15:56:09,162 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 15:56:09,163 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser
2018-09-06 15:56:10,118 INFO o.a.j.e.KeyToolUtils: keytool found at 'keytool'
2018-09-06 15:56:10,119 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 15:56:13,391 INFO o.a.j.s.FileServer: Default base='/Source/JMeter/bin'
2018-09-06 15:56:13,919 INFO o.a.j.s.SampleResult: Note: Sample TimeStamps are START times
2018-09-06 15:56:13,920 INFO o.a.j.s.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
2018-09-06 15:56:13,920 INFO o.a.j.s.SampleResult: sampleresult.useNanoTime=true
2018-09-06 15:56:13,920 INFO o.a.j.s.SampleResult: sampleresult.nanoThreadSleep=5000
2018-09-06 15:56:47,534 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2018-09-06 15:56:47,535 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2018-09-06 15:56:47,536 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2018-09-06 15:56:47,544 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*)
2018-09-06 15:56:47,681 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group
2018-09-06 15:56:47,682 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group Thread Group.
2018-09-06 15:56:47,682 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error
2018-09-06 15:56:47,682 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 perThread=1000.0 delayedStart=false
2018-09-06 15:56:47,688 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2018-09-06 15:56:47,688 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1
2018-09-06 15:56:47,690 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started
2018-09-06 15:56:47,693 INFO o.a.j.p.j.s.JUnitSampler: Trying to find constructor with one String parameter returned error: community.LoginTests.<init>(java.lang.String)
2018-09-06 15:56:47,697 INFO o.a.j.t.JMeterThread: 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" <***@ubik-ingenierie.com> 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
Post by 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
community.LoginTests.<init>(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-***@jmeter.apache.org
For additional commands, e-ma
Felix Schumacher
2018-09-06 20:11:06 UTC
Permalink
Post by 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.<init>(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
Post by Maxwell Falcon
-Maxwell
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
Maxwell Falcon
2018-09-06 20:19:20 UTC
Permalink
Added a constructor with a string param:

package community;

import ...

public class LoginTests extends BaseCommunityTest {

private User user;

public LoginTests(String str){
//Do Nothing
}

@Before
public void loginTestInit() {

}

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

And the log:

2018-09-06 16:15:45,547 INFO o.a.j.u.JMeterUtils: Setting Locale to en_US
2018-09-06 16:15:45,607 INFO o.a.j.JMeter: Loading user properties from: user.properties
2018-09-06 16:15:45,608 INFO o.a.j.JMeter: Loading system properties from: system.properties
2018-09-06 16:15:45,620 INFO o.a.j.JMeter: Copyright (c) 1998-2018 The Apache Software Foundation
2018-09-06 16:15:45,620 INFO o.a.j.JMeter: Version 4.0 r1823414
2018-09-06 16:15:45,620 INFO o.a.j.JMeter: java.version=10.0.2
2018-09-06 16:15:45,620 INFO o.a.j.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM
2018-09-06 16:15:45,620 INFO o.a.j.JMeter: os.name=Mac OS X
2018-09-06 16:15:45,621 INFO o.a.j.JMeter: os.arch=x86_64
2018-09-06 16:15:45,621 INFO o.a.j.JMeter: os.version=10.13.6
2018-09-06 16:15:45,621 INFO o.a.j.JMeter: file.encoding=UTF-8
2018-09-06 16:15:45,621 INFO o.a.j.JMeter: Max memory =2147483648
2018-09-06 16:15:45,621 INFO o.a.j.JMeter: Available Processors =4
2018-09-06 16:15:45,635 INFO o.a.j.JMeter: Default Locale=English (United States)
2018-09-06 16:15:45,636 INFO o.a.j.JMeter: JMeter Locale=English (United States)
2018-09-06 16:15:45,636 INFO o.a.j.JMeter: JMeterHome=/Source/JMeter
2018-09-06 16:15:45,637 INFO o.a.j.JMeter: user.dir =/Source/JMeter/bin
2018-09-06 16:15:45,637 INFO o.a.j.JMeter: PWD =/Source/JMeter/bin
2018-09-06 16:15:45,639 INFO o.a.j.JMeter: IP: 10.246.64.68 Name: maxwellfalcon.local FullName: 10.246.64.68
2018-09-06 16:15:48,018 INFO o.a.j.g.a.LookAndFeelCommand: Installing Darcula LAF
2018-09-06 16:15:48,029 INFO o.a.j.g.a.LookAndFeelCommand: Using look and feel: com.bulenkov.darcula.DarculaLaf [Darcula]
2018-09-06 16:15:48,029 INFO o.a.j.JMeter: Setting LAF to: com.bulenkov.darcula.DarculaLaf
2018-09-06 16:15:48,209 INFO o.a.j.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties
2018-09-06 16:15:48,971 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must contain the string: '.functions.'
2018-09-06 16:15:48,971 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must not contain the string: '.gui.'
2018-09-06 16:15:52,108 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2018-09-06 16:15:52,109 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:15:52,109 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2018-09-06 16:15:52,110 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2018-09-06 16:15:52,110 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:15:52,110 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser
2018-09-06 16:15:52,755 INFO o.a.j.e.KeyToolUtils: keytool found at 'keytool'
2018-09-06 16:15:52,756 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:15:56,475 INFO o.a.j.s.FileServer: Default base='/Source/JMeter/bin'
2018-09-06 16:15:57,074 INFO o.a.j.s.SampleResult: Note: Sample TimeStamps are START times
2018-09-06 16:15:57,074 INFO o.a.j.s.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
2018-09-06 16:15:57,074 INFO o.a.j.s.SampleResult: sampleresult.useNanoTime=true
2018-09-06 16:15:57,074 INFO o.a.j.s.SampleResult: sampleresult.nanoThreadSleep=5000
2018-09-06 16:16:36,130 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2018-09-06 16:16:36,131 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2018-09-06 16:16:36,131 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2018-09-06 16:16:36,138 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*)
2018-09-06 16:16:36,267 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group
2018-09-06 16:16:36,267 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group Thread Group.
2018-09-06 16:16:36,267 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error
2018-09-06 16:16:36,267 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 perThread=1000.0 delayedStart=false
2018-09-06 16:16:36,273 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2018-09-06 16:16:36,274 INFO o.a.j.t.JMeterThread: 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.<init>()
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.
Post by 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.<init>(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
Post by Maxwell Falcon
-Maxwell
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org


B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[�\�\�][��X��ܚX�P�Y]\��\X�K�ܙ�B��܈Y][ۘ[��[X[��K[X
Deepak Shetty
2018-09-06 20:21:17 UTC
Permalink
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 .
Post by 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
community.LoginTests.<init>(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
Maxwell Falcon
2018-09-06 20:29:32 UTC
Permalink
I did put a value for the Constructor String label.

On 9/6/18, 4:21 PM, "Deepak Shetty" <***@gmail.com> 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 .
Post by 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
community.LoginTests.<init>(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
B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[�\�\�][��X��ܚX�P�Y]\��\X�K�ܙ�B��܈Y][ۘ[��[X[��K[X
Deepak Shetty
2018-09-06 20:37:01 UTC
Permalink
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.
Post by Maxwell Falcon
I did put a value for the Constructor String label.
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 .
Post by Maxwell Falcon
Hello, this is my first time using the mailing list, so I hope that
I am
Post by Maxwell Falcon
posting in the right channel/list.
Essentially I am trying to run some of my Junit tests in JMeter.
Right
Post by Maxwell Falcon
now I have exported my project as a .jar and put the .jar in the
lib/junit
Post by Maxwell Falcon
directory. In JMeter I add the Junit sampler and results tree
listener.
Post by Maxwell Falcon
In the JUnit sampler I select my classname and test and then hit
run. I
Post by Maxwell Falcon
get response code 100 but the test shows up red and never runs.
Looking at
Post by Maxwell Falcon
the log it looks the error is
community.LoginTests.<init>(java.lang.String)”
I do not have a constructor in the test class. Any help would be
greatly
Post by Maxwell Falcon
appreciated. If I am posting this in the wrong place then please
let me
Post by Maxwell Falcon
know.
-Maxwell
Maxwell Falcon
2018-09-06 20:41:42 UTC
Permalink
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" <***@gmail.com> 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.
Post by Maxwell Falcon
I did put a value for the Constructor String label.
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 .
Post by Maxwell Falcon
Hello, this is my first time using the mailing list, so I hope that
I am
Post by Maxwell Falcon
posting in the right channel/list.
Essentially I am trying to run some of my Junit tests in JMeter.
Right
Post by Maxwell Falcon
now I have exported my project as a .jar and put the .jar in the
lib/junit
Post by Maxwell Falcon
directory. In JMeter I add the Junit sampler and results tree
listener.
Post by Maxwell Falcon
In the JUnit sampler I select my classname and test and then hit
run. I
Post by Maxwell Falcon
get response code 100 but the test shows up red and never runs.
Looking at
Post by Maxwell Falcon
the log it looks the error is
community.LoginTests.<init>(java.lang.String)”
I do not have a constructor in the test class. Any help would be
greatly
Post by Maxwell Falcon
appreciated. If I am posting this in the wrong place then please
let me
Post by Maxwell Falcon
know.
-Maxwell
B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[�\�\�][��X��ܚX�P�Y]\��\X�K�ܙ�B��܈Y][ۘ[��[X[��K[X
Maxwell Falcon
2018-09-06 20:46:33 UTC
Permalink
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?

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, *local*)
2018-09-06 16:45:15,123 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group
2018-09-06 16:45:15,123 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group Thread Group.
2018-09-06 16:45:15,124 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error
2018-09-06 16:45:15,126 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 perThread=1000.0 delayedStart=false
2018-09-06 16:45:15,138 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2018-09-06 16:45:15,138 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1
2018-09-06 16:45:15,138 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started
2018-09-06 16:45:15,148 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-1
2018-09-06 16:45:15,148 INFO o.a.j.t.JMeterThread: Thread 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" <***@gmail.com> 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.
Post by Maxwell Falcon
I did put a value for the Constructor String label.
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 .
Post by Maxwell Falcon
Hello, this is my first time using the mailing list, so I hope that
I am
Post by Maxwell Falcon
posting in the right channel/list.
Essentially I am trying to run some of my Junit tests in JMeter.
Right
Post by Maxwell Falcon
now I have exported my project as a .jar and put the .jar in the
lib/junit
Post by Maxwell Falcon
directory. In JMeter I add the Junit sampler and results tree
listener.
Post by Maxwell Falcon
In the JUnit sampler I select my classname and test and then hit
run. I
Post by Maxwell Falcon
get response code 100 but the test shows up red and never runs.
Looking at
Post by Maxwell Falcon
the log it looks the error is
community.LoginTests.<init>(java.lang.String)”
I do not have a constructor in the test class. Any help would be
greatly
Post by Maxwell Falcon
appreciated. If I am posting this in the wrong place then please
let me
Post by Maxwell Falcon
know.
-Maxwell
B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[�\�\�][��X��ܚX�P�Y]\��\X�K�ܙ�B��܈Y][ۘ[��[X[��K[X
Felix Schumacher
2018-09-06 20:50:25 UTC
Permalink
Post by 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
Post by Maxwell Falcon
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, *local*)
2018-09-06 16:45:15,123 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group
2018-09-06 16:45:15,123 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group Thread Group.
2018-09-06 16:45:15,124 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error
2018-09-06 16:45:15,126 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 perThread=1000.0 delayedStart=false
2018-09-06 16:45:15,138 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2018-09-06 16:45:15,138 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1
2018-09-06 16:45:15,138 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started
2018-09-06 16:45:15,148 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-1
2018-09-06 16:45:15,148 INFO o.a.j.t.JMeterThread: Thread 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*)
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.
Post by Maxwell Falcon
I did put a value for the Constructor String label.
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 .
Post by Maxwell Falcon
Hello, this is my first time using the mailing list, so I hope that
I am
Post by Maxwell Falcon
posting in the right channel/list.
Essentially I am trying to run some of my Junit tests in JMeter.
Right
Post by Maxwell Falcon
now I have exported my project as a .jar and put the .jar in the
lib/junit
Post by Maxwell Falcon
directory. In JMeter I add the Junit sampler and results tree
listener.
Post by Maxwell Falcon
In the JUnit sampler I select my classname and test and then hit
run. I
Post by Maxwell Falcon
get response code 100 but the test shows up red and never runs.
Looking at
Post by Maxwell Falcon
the log it looks the error is
community.LoginTests.<init>(java.lang.String)”
I do not have a constructor in the test class. Any help would be
greatly
Post by Maxwell Falcon
appreciated. If I am posting this in the wrong place then please
let me
Post by Maxwell Falcon
know.
-Maxwell
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
Maxwell Falcon
2018-09-06 20:54:23 UTC
Permalink
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.
Post by 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
Post by Maxwell Falcon
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, *local*)
2018-09-06 16:45:15,123 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group
2018-09-06 16:45:15,123 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group Thread Group.
2018-09-06 16:45:15,124 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error
2018-09-06 16:45:15,126 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 perThread=1000.0 delayedStart=false
2018-09-06 16:45:15,138 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2018-09-06 16:45:15,138 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1
2018-09-06 16:45:15,138 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started
2018-09-06 16:45:15,148 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-1
2018-09-06 16:45:15,148 INFO o.a.j.t.JMeterThread: Thread 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*)
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.
Post by Maxwell Falcon
I did put a value for the Constructor String label.
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 .
Post by Maxwell Falcon
Hello, this is my first time using the mailing list, so I hope that
I am
Post by Maxwell Falcon
posting in the right channel/list.
Essentially I am trying to run some of my Junit tests in JMeter.
Right
Post by Maxwell Falcon
now I have exported my project as a .jar and put the .jar in the
lib/junit
Post by Maxwell Falcon
directory. In JMeter I add the Junit sampler and results tree
listener.
Post by Maxwell Falcon
In the JUnit sampler I select my classname and test and then hit
run. I
Post by Maxwell Falcon
get response code 100 but the test shows up red and never runs.
Looking at
Post by Maxwell Falcon
the log it looks the error is
community.LoginTests.<init>(java.lang.String)”
I do not have a constructor in the test class. Any help would be
greatly
Post by Maxwell Falcon
appreciated. If I am posting this in the wrong place then please
let me
Post by Maxwell Falcon
know.
-Maxwell
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-ma
Philippe Mouawad
2018-09-06 20:57:34 UTC
Permalink
What does the node show in the 3 tabs of View Result Tree when you click on
it ?
Post by 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.
Post by 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
Post by Maxwell Falcon
2018-09-06 16:44:20,103 INFO o.a.j.u.JMeterUtils: Setting Locale to
en_US
Post by Maxwell Falcon
2018-09-06 16:44:20,185 INFO o.a.j.JMeter: Loading user properties
from: user.properties
Post by Maxwell Falcon
2018-09-06 16:44:20,187 INFO o.a.j.JMeter: Loading system properties
from: system.properties
Post by Maxwell Falcon
2018-09-06 16:44:20,200 INFO o.a.j.JMeter: Copyright (c) 1998-2018
The Apache Software Foundation
Post by Maxwell Falcon
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
Post by Maxwell Falcon
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)
Post by Maxwell Falcon
2018-09-06 16:44:20,216 INFO o.a.j.JMeter: JMeter Locale=English
(United States)
Post by Maxwell Falcon
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
Post by Maxwell Falcon
2018-09-06 16:44:20,216 INFO o.a.j.JMeter: PWD
=/Source/JMeter/bin
maxwellfalcon.local FullName: 10.246.64.68
Installing Darcula LAF
Post by Maxwell Falcon
2018-09-06 16:44:22,511 INFO o.a.j.g.a.LookAndFeelCommand: Using
look and feel: com.bulenkov.darcula.DarculaLaf [Darcula]
com.bulenkov.darcula.DarculaLaf
Post by Maxwell Falcon
2018-09-06 16:44:22,674 INFO o.a.j.JMeter: Loaded icon properties
from org/apache/jmeter/images/icon.properties
Function class names must contain the string: '.functions.'
Function class names must not contain the string: '.gui.'
Post by Maxwell Falcon
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
Post by Maxwell Falcon
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
Post by Maxwell Falcon
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
Post by Maxwell Falcon
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
Post by Maxwell Falcon
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
Post by Maxwell Falcon
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
Post by Maxwell Falcon
2018-09-06 16:44:27,575 INFO o.a.j.e.KeyToolUtils: keytool found at
'keytool'
Post by Maxwell Falcon
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
Post by Maxwell Falcon
2018-09-06 16:44:30,814 INFO o.a.j.s.FileServer: Default
base='/Source/JMeter/bin'
Post by Maxwell Falcon
2018-09-06 16:44:31,368 INFO o.a.j.s.SampleResult: Note: Sample
TimeStamps are START times
sampleresult.default.encoding is set to ISO-8859-1
sampleresult.useNanoTime=true
sampleresult.nanoThreadSleep=5000
Post by Maxwell Falcon
2018-09-06 16:45:14,984 INFO o.a.j.e.StandardJMeterEngine: Running
the test!
Post by Maxwell Falcon
2018-09-06 16:45:14,985 INFO o.a.j.s.SampleEvent: List of
sample_variables: []
Post by Maxwell Falcon
2018-09-06 16:45:14,985 INFO o.a.j.s.SampleEvent: List of
sample_variables: []
setRunning(true, *local*)
Post by Maxwell Falcon
2018-09-06 16:45:15,123 INFO o.a.j.e.StandardJMeterEngine: Starting
ThreadGroup: 1 : Thread Group
Post by Maxwell Falcon
2018-09-06 16:45:15,123 INFO o.a.j.e.StandardJMeterEngine: Starting
1 threads for group Thread Group.
Post by Maxwell Falcon
2018-09-06 16:45:15,124 INFO o.a.j.e.StandardJMeterEngine: Thread
will continue on error
Post by Maxwell Falcon
2018-09-06 16:45:15,126 INFO o.a.j.t.ThreadGroup: Starting thread
group... number=1 threads=1 ramp-up=1 perThread=1000.0 delayedStart=false
Post by Maxwell Falcon
2018-09-06 16:45:15,138 INFO o.a.j.t.ThreadGroup: Started thread
group number 1
Thread Group 1-1
Post by Maxwell Falcon
2018-09-06 16:45:15,138 INFO o.a.j.e.StandardJMeterEngine: All
thread groups have been started
Thread Group 1-1
Thread Group 1-1
Post by Maxwell Falcon
2018-09-06 16:45:15,149 INFO o.a.j.e.StandardJMeterEngine: Notifying
test listeners of end of test
setRunning(false, *local*)
Post by Maxwell Falcon
Then thats why its failing :)
Constructor string
String pass to the string constructor. If a string is set, the
sampler will
Post by Maxwell Falcon
use the string constructor instead of the empty constructor.
On Thu, Sep 6, 2018 at 1:29 PM Maxwell Falcon <
Post by Maxwell Falcon
I did put a value for the Constructor String label.
Do you have any value specified in Constructor String
label ?
https://jmeter.apache.org/usermanual/component_reference.html#JUnit_Request
Post by Maxwell Falcon
Post by Maxwell Falcon
If you specify that it will look for a constructor with a
parameter .
Post by Maxwell Falcon
Post by Maxwell Falcon
On Thu, Sep 6, 2018 at 11:13 AM Maxwell Falcon <
Post by Maxwell Falcon
Hello, this is my first time using the mailing list, so
I hope that
Post by Maxwell Falcon
Post by Maxwell Falcon
I am
Post by Maxwell Falcon
posting in the right channel/list.
Essentially I am trying to run some of my Junit tests
in JMeter.
Post by Maxwell Falcon
Post by Maxwell Falcon
Right
Post by Maxwell Falcon
now I have exported my project as a .jar and put the
.jar in the
Post by Maxwell Falcon
Post by Maxwell Falcon
lib/junit
Post by Maxwell Falcon
directory. In JMeter I add the Junit sampler and
results tree
Post by Maxwell Falcon
Post by Maxwell Falcon
listener.
Post by Maxwell Falcon
In the JUnit sampler I select my classname and test
and then hit
Post by Maxwell Falcon
Post by Maxwell Falcon
run. I
Post by Maxwell Falcon
get response code 100 but the test shows up red and
never runs.
Post by Maxwell Falcon
Post by Maxwell Falcon
Looking at
Post by Maxwell Falcon
the log it looks the error is
“Trying to find constructor with one String parameter
community.LoginTests.<init>(java.lang.String)”
I do not have a constructor in the test class. Any help
would be
Post by Maxwell Falcon
Post by Maxwell Falcon
greatly
Post by Maxwell Falcon
appreciated. If I am posting this in the wrong place
then please
Post by Maxwell Falcon
Post by Maxwell Falcon
let me
Post by Maxwell Falcon
know.
-Maxwell
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
--
Cordialement.
Philippe Mouawad.
Maxwell Falcon
2018-09-06 21:00:57 UTC
Permalink
Is it acceptable to post images?

https://imgur.com/a/Z3vTsd4

On 9/6/18, 4:57 PM, "Philippe Mouawad" <***@gmail.com> wrote:

What does the node show in the 3 tabs of View Result Tree when you click on
it ?
Post by 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.
Post by 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
Post by Maxwell Falcon
2018-09-06 16:44:20,103 INFO o.a.j.u.JMeterUtils: Setting Locale to
en_US
Post by Maxwell Falcon
2018-09-06 16:44:20,185 INFO o.a.j.JMeter: Loading user properties
from: user.properties
Post by Maxwell Falcon
2018-09-06 16:44:20,187 INFO o.a.j.JMeter: Loading system properties
from: system.properties
Post by Maxwell Falcon
2018-09-06 16:44:20,200 INFO o.a.j.JMeter: Copyright (c) 1998-2018
The Apache Software Foundation
Post by Maxwell Falcon
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
Post by Maxwell Falcon
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)
Post by Maxwell Falcon
2018-09-06 16:44:20,216 INFO o.a.j.JMeter: JMeter Locale=English
(United States)
Post by Maxwell Falcon
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
Post by Maxwell Falcon
2018-09-06 16:44:20,216 INFO o.a.j.JMeter: PWD
=/Source/JMeter/bin
maxwellfalcon.local FullName: 10.246.64.68
Installing Darcula LAF
Post by Maxwell Falcon
2018-09-06 16:44:22,511 INFO o.a.j.g.a.LookAndFeelCommand: Using
look and feel: com.bulenkov.darcula.DarculaLaf [Darcula]
com.bulenkov.darcula.DarculaLaf
Post by Maxwell Falcon
2018-09-06 16:44:22,674 INFO o.a.j.JMeter: Loaded icon properties
from org/apache/jmeter/images/icon.properties
Function class names must contain the string: '.functions.'
Function class names must not contain the string: '.gui.'
Post by Maxwell Falcon
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
Post by Maxwell Falcon
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
Post by Maxwell Falcon
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
Post by Maxwell Falcon
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
Post by Maxwell Falcon
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
Post by Maxwell Falcon
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
Post by Maxwell Falcon
2018-09-06 16:44:27,575 INFO o.a.j.e.KeyToolUtils: keytool found at
'keytool'
Post by Maxwell Falcon
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
Post by Maxwell Falcon
2018-09-06 16:44:30,814 INFO o.a.j.s.FileServer: Default
base='/Source/JMeter/bin'
Post by Maxwell Falcon
2018-09-06 16:44:31,368 INFO o.a.j.s.SampleResult: Note: Sample
TimeStamps are START times
sampleresult.default.encoding is set to ISO-8859-1
sampleresult.useNanoTime=true
sampleresult.nanoThreadSleep=5000
Post by Maxwell Falcon
2018-09-06 16:45:14,984 INFO o.a.j.e.StandardJMeterEngine: Running
the test!
Post by Maxwell Falcon
2018-09-06 16:45:14,985 INFO o.a.j.s.SampleEvent: List of
sample_variables: []
Post by Maxwell Falcon
2018-09-06 16:45:14,985 INFO o.a.j.s.SampleEvent: List of
sample_variables: []
setRunning(true, *local*)
Post by Maxwell Falcon
2018-09-06 16:45:15,123 INFO o.a.j.e.StandardJMeterEngine: Starting
ThreadGroup: 1 : Thread Group
Post by Maxwell Falcon
2018-09-06 16:45:15,123 INFO o.a.j.e.StandardJMeterEngine: Starting
1 threads for group Thread Group.
Post by Maxwell Falcon
2018-09-06 16:45:15,124 INFO o.a.j.e.StandardJMeterEngine: Thread
will continue on error
Post by Maxwell Falcon
2018-09-06 16:45:15,126 INFO o.a.j.t.ThreadGroup: Starting thread
group... number=1 threads=1 ramp-up=1 perThread=1000.0 delayedStart=false
Post by Maxwell Falcon
2018-09-06 16:45:15,138 INFO o.a.j.t.ThreadGroup: Started thread
group number 1
Thread Group 1-1
Post by Maxwell Falcon
2018-09-06 16:45:15,138 INFO o.a.j.e.StandardJMeterEngine: All
thread groups have been started
Thread Group 1-1
Thread Group 1-1
Post by Maxwell Falcon
2018-09-06 16:45:15,149 INFO o.a.j.e.StandardJMeterEngine: Notifying
test listeners of end of test
setRunning(false, *local*)
Post by Maxwell Falcon
Then thats why its failing :)
Constructor string
String pass to the string constructor. If a string is set, the
sampler will
Post by Maxwell Falcon
use the string constructor instead of the empty constructor.
On Thu, Sep 6, 2018 at 1:29 PM Maxwell Falcon <
Post by Maxwell Falcon
I did put a value for the Constructor String label.
Do you have any value specified in Constructor String
label ?
https://jmeter.apache.org/usermanual/component_reference.html#JUnit_Request
Post by Maxwell Falcon
Post by Maxwell Falcon
If you specify that it will look for a constructor with a
parameter .
Post by Maxwell Falcon
Post by Maxwell Falcon
On Thu, Sep 6, 2018 at 11:13 AM Maxwell Falcon <
Post by Maxwell Falcon
Hello, this is my first time using the mailing list, so
I hope that
Post by Maxwell Falcon
Post by Maxwell Falcon
I am
Post by Maxwell Falcon
posting in the right channel/list.
Essentially I am trying to run some of my Junit tests
in JMeter.
Post by Maxwell Falcon
Post by Maxwell Falcon
Right
Post by Maxwell Falcon
now I have exported my project as a .jar and put the
.jar in the
Post by Maxwell Falcon
Post by Maxwell Falcon
lib/junit
Post by Maxwell Falcon
directory. In JMeter I add the Junit sampler and
results tree
Post by Maxwell Falcon
Post by Maxwell Falcon
listener.
Post by Maxwell Falcon
In the JUnit sampler I select my classname and test
and then hit
Post by Maxwell Falcon
Post by Maxwell Falcon
run. I
Post by Maxwell Falcon
get response code 100 but the test shows up red and
never runs.
Post by Maxwell Falcon
Post by Maxwell Falcon
Looking at
Post by Maxwell Falcon
the log it looks the error is
“Trying to find constructor with one String parameter
community.LoginTests.<init>(java.lang.String)”
I do not have a constructor in the test class. Any help
would be
Post by Maxwell Falcon
Post by Maxwell Falcon
greatly
Post by Maxwell Falcon
appreciated. If I am posting this in the wrong place
then please
Post by Maxwell Falcon
Post by Maxwell Falcon
let me
Post by Maxwell Falcon
know.
-Maxwell
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
--
Cordialement.
Philippe Mouawad.

Т���������������������������������������������������������������������ХF�V�7V'67&�&R�R���âW6W"�V�7V'67&�&T��WFW"�6�R��&pФf�"FF�F����6����G2�R��
Deepak Shetty
2018-09-06 22:56:04 UTC
Permalink
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
Post by Maxwell Falcon
Is it acceptable to post images?
https://imgur.com/a/Z3vTsd4
What does the node show in the 3 tabs of View Result Tree when you click on
it ?
Post by Maxwell Falcon
As far as I can tell the test is not actually being executed. Also
when I
Post by Maxwell Falcon
look at the results tree listener the Junit request is highlighted
in red
Post by Maxwell Falcon
with a red x icon next to it.
On 9/6/18, 4:50 PM, "Felix Schumacher" <
Post by 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
Post by Maxwell Falcon
new issue?
Do you think you have new issue? Why? All those message are
INFO, so
Post by Maxwell Falcon
no
problems are reported there.
Regards,
Felix
Post by Maxwell Falcon
2018-09-06 16:44:20,103 INFO o.a.j.u.JMeterUtils: Setting
Locale to
Post by Maxwell Falcon
en_US
Post by Maxwell Falcon
2018-09-06 16:44:20,185 INFO o.a.j.JMeter: Loading user
properties
Post by Maxwell Falcon
from: user.properties
Post by Maxwell Falcon
2018-09-06 16:44:20,187 INFO o.a.j.JMeter: Loading system
properties
Post by Maxwell Falcon
from: system.properties
Post by Maxwell Falcon
2018-09-06 16:44:20,200 INFO o.a.j.JMeter: Copyright (c)
1998-2018
Post by Maxwell Falcon
The Apache Software Foundation
Post by Maxwell Falcon
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
Post by Maxwell Falcon
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
Post by Maxwell Falcon
Post by Maxwell Falcon
2018-09-06 16:44:20,201 INFO o.a.j.JMeter: Available
Processors =4
Post by Maxwell Falcon
Post by Maxwell Falcon
2018-09-06 16:44:20,215 INFO o.a.j.JMeter: Default
Locale=English
Post by Maxwell Falcon
(United States)
Post by Maxwell Falcon
2018-09-06 16:44:20,216 INFO o.a.j.JMeter: JMeter
Locale=English
Post by Maxwell Falcon
(United States)
JMeterHome=/Source/JMeter
Post by Maxwell Falcon
Post by Maxwell Falcon
2018-09-06 16:44:20,216 INFO o.a.j.JMeter: user.dir
=/Source/JMeter/bin
Post by Maxwell Falcon
2018-09-06 16:44:20,216 INFO o.a.j.JMeter: PWD
=/Source/JMeter/bin
Post by Maxwell Falcon
2018-09-06 16:44:20,218 INFO o.a.j.JMeter: IP: 10.246.64.68
maxwellfalcon.local FullName: 10.246.64.68
Installing Darcula LAF
Using
Post by Maxwell Falcon
look and feel: com.bulenkov.darcula.DarculaLaf [Darcula]
com.bulenkov.darcula.DarculaLaf
Post by Maxwell Falcon
2018-09-06 16:44:22,674 INFO o.a.j.JMeter: Loaded icon
properties
Post by Maxwell Falcon
from org/apache/jmeter/images/icon.properties
Function class names must contain the string: '.functions.'
Function class names must not contain the string: '.gui.'
Parser for
Post by Maxwell Falcon
text/html is
org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
Parser for
Post by Maxwell Falcon
application/xhtml+xml is
org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
Parser for
Post by Maxwell Falcon
application/xml is
org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
Parser for
Post by Maxwell Falcon
text/xml is
org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
Parser for
Post by Maxwell Falcon
text/vnd.wap.wml is
org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
Parser for
Post by Maxwell Falcon
text/css is org.apache.jmeter.protocol.http.parser.CssParser
Post by Maxwell Falcon
2018-09-06 16:44:27,575 INFO o.a.j.e.KeyToolUtils: keytool
found at
Post by Maxwell Falcon
'keytool'
Post by Maxwell Falcon
2018-09-06 16:44:27,576 INFO o.a.j.p.h.p.ProxyControl: HTTP(S)
Test
Post by Maxwell Falcon
Script Recorder SSL Proxy will use keys that support embedded 3rd
party
Post by Maxwell Falcon
resources in file /Source/JMeter/bin/proxyserver.jks
Post by Maxwell Falcon
2018-09-06 16:44:30,814 INFO o.a.j.s.FileServer: Default
base='/Source/JMeter/bin'
Post by Maxwell Falcon
2018-09-06 16:44:31,368 INFO o.a.j.s.SampleResult: Note: Sample
TimeStamps are START times
sampleresult.default.encoding is set to ISO-8859-1
sampleresult.useNanoTime=true
sampleresult.nanoThreadSleep=5000
Running
Post by Maxwell Falcon
the test!
Post by Maxwell Falcon
2018-09-06 16:45:14,985 INFO o.a.j.s.SampleEvent: List of
sample_variables: []
Post by Maxwell Falcon
2018-09-06 16:45:14,985 INFO o.a.j.s.SampleEvent: List of
sample_variables: []
setRunning(true, *local*)
Starting
Post by Maxwell Falcon
ThreadGroup: 1 : Thread Group
Starting
Post by Maxwell Falcon
1 threads for group Thread Group.
Thread
Post by Maxwell Falcon
will continue on error
Post by Maxwell Falcon
2018-09-06 16:45:15,126 INFO o.a.j.t.ThreadGroup: Starting
thread
Post by Maxwell Falcon
group... number=1 threads=1 ramp-up=1 perThread=1000.0
delayedStart=false
Post by Maxwell Falcon
Post by Maxwell Falcon
2018-09-06 16:45:15,138 INFO o.a.j.t.ThreadGroup: Started
thread
Post by Maxwell Falcon
group number 1
Post by Maxwell Falcon
2018-09-06 16:45:15,138 INFO o.a.j.t.JMeterThread: Thread
Thread Group 1-1
Post by Maxwell Falcon
2018-09-06 16:45:15,138 INFO o.a.j.e.StandardJMeterEngine: All
thread groups have been started
Post by Maxwell Falcon
2018-09-06 16:45:15,148 INFO o.a.j.t.JMeterThread: Thread is
Thread Group 1-1
Post by Maxwell Falcon
2018-09-06 16:45:15,148 INFO o.a.j.t.JMeterThread: Thread
Thread Group 1-1
Notifying
Post by Maxwell Falcon
test listeners of end of test
setRunning(false, *local*)
Post by Maxwell Falcon
Then thats why its failing :)
Constructor string
String pass to the string constructor. If a string is
set, the
Post by Maxwell Falcon
sampler will
Post by Maxwell Falcon
use the string constructor instead of the empty
constructor.
Post by Maxwell Falcon
Post by Maxwell Falcon
On Thu, Sep 6, 2018 at 1:29 PM Maxwell Falcon <
Post by Maxwell Falcon
I did put a value for the Constructor String label.
Do you have any value specified in Constructor
String
Post by Maxwell Falcon
label ?
https://jmeter.apache.org/usermanual/component_reference.html#JUnit_Request
Post by Maxwell Falcon
Post by Maxwell Falcon
Post by Maxwell Falcon
If you specify that it will look for a constructor
with a
Post by Maxwell Falcon
parameter .
Post by Maxwell Falcon
Post by Maxwell Falcon
On Thu, Sep 6, 2018 at 11:13 AM Maxwell Falcon <
Post by Maxwell Falcon
Hello, this is my first time using the mailing
list, so
Post by Maxwell Falcon
I hope that
Post by Maxwell Falcon
Post by Maxwell Falcon
I am
Post by Maxwell Falcon
posting in the right channel/list.
Essentially I am trying to run some of my Junit
tests
Post by Maxwell Falcon
in JMeter.
Post by Maxwell Falcon
Post by Maxwell Falcon
Right
Post by Maxwell Falcon
now I have exported my project as a .jar and put
the
Post by Maxwell Falcon
.jar in the
Post by Maxwell Falcon
Post by Maxwell Falcon
lib/junit
Post by Maxwell Falcon
directory. In JMeter I add the Junit sampler and
results tree
Post by Maxwell Falcon
Post by Maxwell Falcon
listener.
Post by Maxwell Falcon
In the JUnit sampler I select my classname and
test
Post by Maxwell Falcon
and then hit
Post by Maxwell Falcon
Post by Maxwell Falcon
run. I
Post by Maxwell Falcon
get response code 100 but the test shows up red
and
Post by Maxwell Falcon
never runs.
Post by Maxwell Falcon
Post by Maxwell Falcon
Looking at
Post by Maxwell Falcon
the log it looks the error is
“Trying to find constructor with one String
parameter
Post by Maxwell Falcon
Post by Maxwell Falcon
Post by Maxwell Falcon
Post by Maxwell Falcon
community.LoginTests.<init>(java.lang.String)”
I do not have a constructor in the test class.
Any help
Post by Maxwell Falcon
would be
Post by Maxwell Falcon
Post by Maxwell Falcon
greatly
Post by Maxwell Falcon
appreciated. If I am posting this in the wrong
place
Post by Maxwell Falcon
then please
Post by Maxwell Falcon
Post by Maxwell Falcon
let me
Post by Maxwell Falcon
know.
-Maxwell
---------------------------------------------------------------------
---------------------------------------------------------------------
Post by Maxwell Falcon
---------------------------------------------------------------------
--
Cordialement.
Philippe Mouawad.
Maxwell Falcon
2018-09-07 13:59:34 UTC
Permalink
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" <***@gmail.com> 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 <***@gmail.com> wrote:



B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[�\�\�][��X��ܚX�P�Y]\��\X�K�ܙ�B��܈Y][ۘ[��[X[��K[X
Felix Schumacher
2018-09-07 15:37:12 UTC
Permalink
Post by Maxwell Falcon
Here are the new screenshots: https://imgur.com/a/vaR12yn
Error --
null
Trace -- java.lang.NullPointerException
at core.BaseCommunityTest.testCleanUp(BaseCommunityTest.java:48)
What is your code at that line 48 looking like?

Felix
Post by Maxwell Falcon
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!
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
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
MaxwellFalcon
2018-09-07 15:40:31 UTC
Permalink
Here is the code:

@After
public void testCleanUp(){
browser.driver.quit();
}


I guess it is worth noting that these tests are running perfectly fine in my
IDE (Intellij).





--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
Felix Schumacher
2018-09-07 15:49:01 UTC
Permalink
Post by MaxwellFalcon
@After
public void testCleanUp(){
browser.driver.quit();
So either browser or driver is null. You could try to log /print those values to see, which one is null.

Have you checked them at the point where you initialize them?

Felix
Post by MaxwellFalcon
}
I guess it is worth noting that these tests are running perfectly fine in my
IDE (Intellij).
--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
Deepak Shetty
2018-09-07 16:32:30 UTC
Permalink
Typically that indicates a setting or resource that is being found when you
run via IntelliJ and you havent made the same change for the JVM of JMeter
(e.g. are classpath settings or resources like files or command line
parameters that are read by the code)
You probably need to enable debug for your test or write some log
statements to tell you whats missing if you cant make out the issue via
inspection - If browser or driver is null , i am guessing your test
actually didnt run either and there should be a problem with initialization
of your test where these objects are being created.
Post by MaxwellFalcon
@After
public void testCleanUp(){
browser.driver.quit();
}
I guess it is worth noting that these tests are running perfectly fine in my
IDE (Intellij).
--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
---------------------------------------------------------------------
MaxwellFalcon
2018-09-07 17:41:09 UTC
Permalink
It feels like you are on the right track here. Can you walk me through how I
can go about determining what resource/dependency is missing? How can I
enable debug like you are talking about? Sorry I am very new to JMeter.



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
Deepak Shetty
2018-09-07 18:28:39 UTC
Permalink
Hi
Nothing specific to JMeter
Within your test ,if you already have some form of logging use that ,
otherwise use your favorite (log4j, java logging ,or good old
system.out.println). Add statements around where you are creating the
browser - driver etc and if you have any catch (exception){ //do nothing}
then delete those , when your test method begins / ends. When you run this
via JMeter , it will print the logs wherever the logging frameowrk is
printing it (e.g. if you are using log4j , wherever the log4j configuration
says the log should go or if you are using System.out then ensure you run
Jmeter with a console and the values will get printed there)

If you want the logs to come in JMeter log then I believe it is log4j2 with
the config file in bin (please verify in doc) - if you use this as your log
framework within the test then values should come in jmeter.log

I dont know the setting in IntelliJ but you can usually see the entire java
command that is being run in the IDE which can tell you things like
classpath /additional VM or program parameters that you may be missing


regards
deepak
Post by MaxwellFalcon
It feels like you are on the right track here. Can you walk me through how I
can go about determining what resource/dependency is missing? How can I
enable debug like you are talking about? Sorry I am very new to JMeter.
--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
---------------------------------------------------------------------
Kiran Badi
2018-09-08 02:52:08 UTC
Permalink
Can you wrap browser.driver.quit in try catch block and try.
Also check if driver.quit api returns npe on success full closure
Is this related to selenium web driver 


Sent from Yahoo Mail for iPad


On Friday, September 7, 2018, 11:40 AM, MaxwellFalcon <***@gmail.com> wrote:

Here is the code:

@After
public void testCleanUp(){
    browser.driver.quit();
}


I guess it is worth noting that these tests are running perfectly fine in my
IDE (Intellij).





--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

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

Loading...