Open/Close Browserstack local connection

Hi All,

I would really appreciate some help with regards to creating a local browserstack connection from Katalon.

I am running my Katalon tests through Jenkins.

My tests work locally when I initiate the browserstack executable myself manually, but if I attempt to open a local connection through the browserstack plugin in Jenkins I just receive the below error:

[BrowserStack] Local: Starting BrowserStack Local…
FATAL: JSONObject[“message”] is not a JSONObject.
FATAL: null
at hudson.model.Build$BuildExecution.doRun(
at hudson.model.AbstractBuild$
at hudson.model.Run.execute(
at hudson.model.ResourceController.execute(
Finished: FAILURE

My katalon script in my testcase includes:

String username = System.getenv(“BROWSERSTACK_USERNAME”);
String accessKey = System.getenv(“BROWSERSTACK_ACCESS_KEY”);
String browserstackLocal = System.getenv(“BROWSERSTACK_LOCAL”);
String browserstackLocalIdentifier = System.getenv(“BROWSERSTACK_LOCAL_IDENTIFIER”);

I have browserstack.local set to true in the Remote preferences.

Any help would be appreciated