AnsweredAssumed Answered

Version 7.52 Javascript step fails to load JSON

Question asked by AnastasiaRDavis4459083 on Aug 25, 2016
Latest reply on Aug 26, 2016 by AnastasiaRDavis4459083

Hello

I realize that we are on a very old version and we have plans to upgrade over the holidays;

Has anyone tried to load a JSON response to parse in a JavaScript step?

Appreciate any help

I get this exception just loading it, have not even started parsing

 

 

Assertion name: Any Exception Then Fail checks for: true  is of type: Assert on Invocation Exception.
Expression .*
 was found in the contents of

============================================================================
| LISA Exception:
============================================================================
| Message:     Script throw an exception: Parse error at line 1, column 9.  Encountered: status
----------------------------------------------------------------------------
| Trapped Exception: Parse error at line 1, column 9.  Encountered: status
| Trapped Message:   Parse error at line 1, column 9.  Encountered: status
----------------------------------------------------------------------------
STACK TRACE
Parse error at line 1, column 9.  Encountered: status
 at bsh.Parser.generateParseException(Parser.java:5807)
 at bsh.Parser.jj_consume_token(Parser.java:5759)
 at bsh.Parser.Statement(Parser.java:2605)
 at bsh.Parser.BlockStatement(Parser.java:2711)
 at bsh.Parser.Line(Parser.java:146)
 at bsh.Interpreter.Line(Interpreter.java:999)
 at bsh.Interpreter.eval(Interpreter.java:635)
 at bsh.Interpreter.eval(Interpreter.java:739)
 at bsh.Interpreter.eval(Interpreter.java:728)
 at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:316)
 at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:298)
 at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:287)
 at com.itko.lisa.test.ScriptNode._execute(ScriptNode.java:126)
 at com.itko.lisa.test.ScriptNode.execute(ScriptNode.java:103)
 at com.itko.lisa.test.TestNode.executeNode(TestNode.java:993)
 at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
 at com.itko.lisa.test.TestCase.execute(TestCase.java:1113)
 at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1098)
 at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1047)
 at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:68)
 at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:960)
 at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
 at java.lang.Thread.run(Unknown Source)
============================================================================


 at com.itko.lisa.test.ScriptNode.execute(ScriptNode.java:107)
 at com.itko.lisa.test.TestNode.executeNode(TestNode.java:993)
 at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
 at com.itko.lisa.test.TestCase.execute(TestCase.java:1113)
 at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1098)
 at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1047)
 at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:68)
 at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:960)
 at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
 at java.lang.Thread.run(Unknown Source)

Outcomes