AnsweredAssumed Answered

doDateDeltaFromCurrent function giving error

Question asked by kokumar4 on Nov 30, 2018
Latest reply on Nov 30, 2018 by kokumar4

Hi ,

 

Can someone please help me in resolving the error. I am getting error when i am trying to use doDateDeltaFromCurrent function.

 

{{ =doDateDeltaFromCurrent("yyyy-MM-dd","0D");/2008-12-17}}

{{=doDateDeltaFromCurrent("yyyy-MM-dd'T'HH:mm:ss.SSSZ","0D 0H 0M S 0Ms");/*2018-11-30T07:11:35.128Z*/}} 

{{=doDateDeltaFromCurrent("yyyy-MM-dd'T'HH:mm:ss.SSSZ","0D 0H 0M 0S 0Ms");/*2018-01-10T07:11:35.128Z*/}}

{{=doDateDeltaFromCurrent(quot;yyyy-MM-dd HH:mm:ss.SSSquot;,quot;-1D -18H -59M -37S -547Msquot;);/*2018-07-11 19:49:09.892*/}}

 

 

Error Message :

 

ERROR com.itko.lisa.test.ParseInState - Could not evaluate expression '=doDateDeltaFromCurrent(quot;yyyy-MM-dd HH:mm:ss.SSSquot;,quot;-1D -18H -59M -37S -547Msquot;);/*2018-07-11 19:49:09.892*/'

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:279)

       at com.itko.lisa.test.TestExec.parseInState(TestExec.java:1966)

       at com.itko.lisa.test.TestExec.parseInState(TestExec.java:1948)

       at com.itko.lisa.test.TestExec.parseInState(TestExec.java:1944)

       at com.itko.lisa.test.ScriptNode._execute(ScriptNode.java:121)

       at com.itko.lisa.test.ScriptNode.execute(ScriptNode.java:103)

       at com.itko.lisa.test.TestNode.executeNode(TestNode.java:984)

       at com.itko.lisa.test.TestCase.execute(TestCase.java:1297)

       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:208)

 

 

Outcomes