How to disable doDateDeltaFromCurrent during recording?

book

Article ID: 140614

calendar_today

Updated On:

Products

CLOUDTEST CA Application Test CA Cloud Test Mobile MOBILECLOUD Service Virtualization

Issue/Introduction

Hi Team,

 

We have created a VS and it is taking to delta from in the DOB field and we don't want that do delta from, we need the original value.

 

Cause

None

Environment

Release : All supported DevTest versions

Component : CA Application Test

Resolution

When you create a virtual service through recording mode by default request and response data along with arguments are scanned. Anything matching with date formats are translated to magic dates (i.e doDateDeltaFromCurrent).

It may be the case like, the service which you are referring is created with recording mode and magic date is assigned to service response.

We can disable this translation my disabling few properties in lisa.properties file with below changes. it will reflect in entire VSE level.

Locate and comment out the following lines in the lisa.properties file: 

#lisa.vse.datechecker.top.priorityorder=lisa.vse.datechecker.wstimestampformat

#lisa.vse.datechecker.date.priorityorder=lisa.vse.datechecker.mmmddyyyy.separatorformat&\

#lisa.vse.datechecker.mmddyyyy.separatorformat&\

#lisa.vse.datechecker.ddmmmyyyy.separatorformat&\

#lisa.vse.datechecker.ddmmyyyy.separatorformat&\

#lisa.vse.datechecker.yyyymmmdd.separatorformat&\

#lisa.vse.datechecker.yyyymmdd.separatorformat&\

#lisa.vse.datechecker.mmmddyyyyformat&\

#lisa.vse.datechecker.ddmmmyyyyformat&\

#lisa.vse.datechecker.yyyyddmmmformat&\

#lisa.vse.datechecker.yyyymmmddformat&\

#lisa.vse.datechecker.ddmmmyyformat

#lisa.vse.datechecker.time.priorityorder=lisa.vse.datechecker.time.millis.zoneformat&\

#lisa.vse.datechecker.time.millisformat&\

#lisa.vse.datechecker.time.tenthsformat&\

#lisa.vse.datechecker.time.hhmmssformat

#lisa.vse.datechecker.bottom.priorityorder=lisa.vse.datechecker.mmmddformat&\

#lisa.vse.datechecker.ddmmmformat

 

After commenting the above, add the following lines to the file:

 

lisa.vse.datechecker.top.priorityorder

lisa.vse.datechecker.date.priorityorder

lisa.vse.datechecker.time.priorityorder

lisa.vse.datechecker.bottom.priorityorder

Additional Information

If you want to disable magic dates during recording, you can add the below property in local.properties file.

lisa.vse.datechecker.seperators= /.