How to get dynamic values in a VSI response
search cancel

How to get dynamic values in a VSI response

book

Article ID: 95885

calendar_today

Updated On:

Products

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

Issue/Introduction

End users are executing virtualization services in CA DEVTEST and expect different dynamic values in the response. 
 

How to get a dynamic values in VSI response?

Environment

All supported DevTest releases.

Cause

N/A

Resolution

. Using String patterns like {{=[:First Name:]}}, {{=[:LastName:]}}, {{=[:SSN:]}}, {{=[:Street Address:]}},.. This option will create same values if the string pattern is used multiple times.

. Create some random values using Random Code Generator Dataset or Unique Code Generator and use the Data set names in response. This option also will have the same value if the property is used more than once in the VSI response.

. Use {{=%beanshell% com.ca.sv.devtest.util.GenerateString.forRegex("[A-Za-z0-9]{5,15}");}} in VSI response. This option will create dynamic values based on the Regular expression.

Additional Information

Refer to section "String Patterns" in the documentation of the DevTest release you are running.
Refer to section "Random Code Generator Data Set" in the documentation of the DevTest release you are running.
Refer to section "Unique Code Generator Data Set" in the documentation of the DevTest release you are running.