Argument values not matching on Property Expression comparison operator.
search cancel

Argument values not matching on Property Expression comparison operator.

book

Article ID: 45818

calendar_today

Updated On:

Products

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

Issue/Introduction

When we choose to match an incoming request argument value to a property  expression, it does not match. Transaction always responds with a meta match.

The request argument is set as :     beginningdeparture Date    "property expression"   {{=doDateDeltaFromCurrent("yyyy-MM-dd","2D");/*2016-07-24*/}}

Environment

All supported DevTest releases.

Cause

N/A

Resolution

When the argument operation is set to "Property Expression" then the expression should either return true or false, not a value.   In this case it was failing as it was returning a date string.

To make it to work, do the following changes

  1. Change the operation to "=" instead of "Property Expression"
  2. Leave the value as {{=doDateDeltaFromCurrent("yyyy-MM-dd","2D");/*2016-07-24*/}}
  3. Remove the date pattern (yyyy-MM-dd)  specified in the  “Date Pattern” field. 
  4. Save the VSI.