AnsweredAssumed Answered

Magic date error

Question asked by Rajasekhare on May 24, 2018
Latest reply on Jun 6, 2018 by deoma03

Hi team,

 

I have created the virtual service from request and response pairs. In response, date elements are there and these values have been replaced by magic date formula. When any request hit the deployed service, proper response is coming but in VSE.log file I could see the below error.

kindly let me know what is the issue here. Thank you.

 

2018-05-24 21:14:03,203Z (17:14) [VS Name[VS_NAME]/95] ERROR com.itko.lisa.test.ParseInState - Could not evaluate expression '=doDateDeltaFromCurrent("yyyy-MM-dd","-34D");/*2018-04-04*/'
java.lang.IllegalArgumentException: Looking for "," in magic date expression but did not find it. Syntax error
 at com.itko.lisa.test.ParseInState$Hit.doDateDelta(ParseInState.java:520)
 at com.itko.lisa.test.ParseInState$Hit.doDateDeltaCurrent(ParseInState.java:511)
 at com.itko.lisa.test.ParseInState$Hit.evaluate(ParseInState.java:400)
 at com.itko.lisa.test.ParseInState.parseInState(ParseInState.java:150)
 at com.itko.lisa.test.ParseInState.parseInState(ParseInState.java:92)
 at com.itko.lisa.test.ParseInState$Hit.handleNestedProps(ParseInState.java:483)
 at com.itko.lisa.test.ParseInState$Hit.evalPropertyVal(ParseInState.java:441)
 at com.itko.lisa.test.ParseInState$Hit.evaluate(ParseInState.java:419)
 at com.itko.lisa.test.ParseInState.parseInState(ParseInState.java:279)
 at com.itko.lisa.test.TestExec.parseInState(TestExec.java:1952)
 at com.itko.lisa.test.TestExec.parseInState(TestExec.java:1934)
 at com.itko.lisa.test.TestExec.parseInState(TestExec.java:1930)
 at com.itko.lisa.utils.ParseTextContentNode.execute(ParseTextContentNode.java:65)
 at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)
 at com.itko.lisa.test.TestCase.execute(TestCase.java:1294)
 at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
 at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183)
 at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124)
 at com.itko.lisa.coordinator.Instance.run(Instance.java:204)

 

Regards,

Rajasekhar

Outcomes