1

Is there any way to display more info on the JMeter console during the test execution in non-GUI mode.

I would like to see the calls names next to the summary so I can know exactly what call has failed while running the test in non-GUI mode. The idea behind is to stop the test the moment I see the error and easy way to debug and identify the call.

For ex: one of the call name of script from the below screenshot is "SupportUnemploymentRequest_PJLReport_28_SOAPAction_RptReportProvider_GetReportWsDtoDataSetBytes"

enter image description here

enter image description here

1
  1. You have "Action to be taken after a Sampler error" setting in Thread Group which defaults to Continue. Just change it to Stop and JMeter will automatically finish your test on first sampler failure.

    JMeter Thread Group Stop test

  2. Alternative option would be adding a JSR223 Assertion which would print current URL to stdout for information purposes and stop the test in case of failure. Example reference code would be something like:

    def success = SampleResult.isSuccessful() 
    println('Processing URL: ' + SampleResult.getUrlAsString() + '. Successful: ' + success)
    
    if (!success) {
        println('Failure, stopping test')   
        SampleResult.setStopTest(true)  
    }
    

Check out Scripting JMeter Assertions in Groovy - A Tutorial article for more information on 2nd approach.

  • Thanks Dmitri,but let me put it this way basically I would like to see all the steps irrespective of error and success.User who ever executing the test they should able to monitor and should able to watch on which step the test is at.-Raj – rpagadala Aug 15 '17 at 11:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.