ERROR com.itko.lisa.test.ParseInState - Could not evaluate expression '=doDateDeltaFromCurrent
search cancel

ERROR com.itko.lisa.test.ParseInState - Could not evaluate expression '=doDateDeltaFromCurrent

book

Article ID: 102892

calendar_today

Updated On:

Products

CA Application Test CA Continuous Application Insight (PathFinder) Service Virtualization

Issue/Introduction

The magic date doDateDeltaFromCurrent is returning an invalid date or sometime throwing the below error:
-----
ERROR com.itko.lisa.test.ParseInState - Could not evaluate expression '=doDateDeltaFromCurrent
----

Environment

All supported DevTest releases.

Cause

Magic date doDateDeltaFromCurrent is not well defined which causes the issue. For example:

doDateDeltaFromCurrent("yyyy-MM-dd'T'HH:mm:ss.SSSZ","-7D"); 
 

Resolution

Using the correct format as below will resolved the issue.


{{=doDateDeltaFromCurrent("yyyy-MM-dd","10D");/*2014-10-08*/}}

Additional Information

Refer to section "Magic Dates" in the documentation of the DevTest release you are running.