How to get a dynamic values in VSI response?

Document ID : KB000095885
Last Modified Date : 17/05/2018
Show Technical Document Details
Introduction:
End users are executing virtualization services in CA DEVTEST and expect different dynamic values in the response. 
 
Question:
How to get a dynamic values in VSI response?
Environment:
All supported DevTest Environments.
Answer:
. 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:
. https://docops.ca.com/devtest-solutions/10-2/en/using/using-ca-application-test/using-devtest-workstation-with-ca-application-test/building-test-cases/properties/string-patterns
. https://docops.ca.com/devtest-solutions/10-2/en/reference/data-set-descriptions/random-code-generator-data-set
. https://docops.ca.com/devtest-solutions/10-2/en/reference/data-set-descriptions/unique-code-generator-data-set