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" <shet...@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.
    
    
    On Thu, Sep 6, 2018 at 1:29 PM Maxwell Falcon <maxf...@gmail.com> wrote:
    
    > I did put a value for the Constructor String label.
    >
    > On 9/6/18, 4:21 PM, "Deepak Shetty" <shet...@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 .
    >
    >     On Thu, Sep 6, 2018 at 11:13 AM Maxwell Falcon <maxf...@gmail.com>
    > 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.<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
    >     >
    >
    >
    

Reply via email to