Re: JUnit Setup Issues

2018-09-07 Thread Kiran Badi
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 wrote: Here is the code: @After public

Re: JUnit Setup Issues

2018-09-07 Thread Deepak Shetty
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

Re: JUnit Setup Issues

2018-09-07 Thread 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

Re: JUnit Setup Issues

2018-09-07 Thread Deepak Shetty
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

Re: JUnit Setup Issues

2018-09-07 Thread Felix Schumacher
Am 7. September 2018 17:40:31 MESZ schrieb MaxwellFalcon : >Here is the code: > >@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

Re: JUnit Setup Issues

2018-09-07 Thread MaxwellFalcon
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

Re: JUnit Setup Issues

2018-09-07 Thread Felix Schumacher
Am 7. September 2018 15:59:34 MESZ schrieb 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):

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

Re: JUnit Setup Issues

2018-09-06 Thread Deepak Shetty
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

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

Re: JUnit Setup Issues

2018-09-06 Thread Philippe Mouawad
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

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:

Re: JUnit Setup Issues

2018-09-06 Thread Felix Schumacher
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

Re: JUnit Setup Issues

2018-09-06 Thread 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? 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:

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

Re: JUnit Setup Issues

2018-09-06 Thread Deepak Shetty
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.

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

Re: JUnit Setup Issues

2018-09-06 Thread Maxwell Falcon
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

Re: JUnit Setup Issues

2018-09-06 Thread Felix Schumacher
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

Re: JUnit Setup Issues

2018-09-06 Thread Philippe Mouawad
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 On Thu, Sep 6, 2018 at 10:02 PM Maxwell Falcon wrote: > Here is my class and I'll attach the log file: > > package community; > > import

Re: JUnit Setup Issues

2018-09-06 Thread Maxwell Falcon
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

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

Re: JUnit Setup Issues

2018-09-06 Thread Philippe Mouawad
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