Automatic Magic String in the VSE Recorder - How to disable it?

book

Article ID: 103329

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder) CA Service Virtualization (DevTest / LISA / VSE / Application Test)

Issue/Introduction

During the recording phase, VSE Recorder examines each transaction for arguments or parameters and automatically classifies some arguments as a magic string.
For more information regarding magic string, please refer to DevTest documentation in the link below:
https://docops.ca.com/devtest-solutions/10-3/en/using/using-ca-service-virtualization/ca-service-virtualization-concepts/magic-strings-and-dates/magic-strings/

When creating a new service using the VSE Recorder, we automatically get magic strings in the responses.
How to disable this behavior?

Environment

All supported DevTest releases.

Resolution

The property 'lisa.magic.string.min.length' is used to define the minimum length of argument value in a VSE transaction request that is required to consider that argument for constructing a magic string out of it.
The default value is 3. 

We cannot disable magic string, but we can set this property to a higher value and the VSE Recorder would not consider arguments with fewer characters than what specified in the property. 
To change the minimum length for magic string, please add the following property to the local.properties for Workstation. 
lisa.magic.string.min.length=20 

With a value of 20, the VSE recorder will not examine arguments with minimum 20 characters of length.
The Workstation needs to be restarted after the local.properties file is updated.