I want to send my console error logs on LambdaTest platform

I want to send my console error logs on LambdaTest platform. I am using Katalon. Is there a way to do that.

1 Like

You could add the following in your script of Katalon:

StringWriter sw = new StringWriter()
PrintWriter printWriter = new PrintWriter(sw)
PrintWriter pw = printWriter
e.printStackTrace(pw)
String sStackTrace = sw.toString()
def list=[sStackTrace]
WebUI.executeJavaScript('lambda-exceptions',Arrays.asList(list))
throw e

This code will let you get your console logs of Katalon to show on Lambdatest

1 Like