Error and throw my own message in jmeter for Non HTTP response code: java.net.URISyntaxException


  • QA Engineer

    I am capturing URl and path from s3URL from previous response. Some time S3URL not generated then URL and Path not found. In this case i want to hide error because it is application issue not scripting issue.



  • I tried with Adding Beanshell PostProcessor as a child of the request which must be successful and put the following code into "Script" area:

    if (prev.getResponseCode() == "Non HTTP response code:java.net.URISyntaxException"){
            prev.setResponseOK(); 
            }
    

Log in to reply
 

Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2