Using the random code generator and cannot get more than 32 characters
search cancel

Using the random code generator and cannot get more than 32 characters

book

Article ID: 233701

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

When using the Random Code Generator Data Set, even if the length is set over 32 characters, only 32 characters can be seen in the result.

In our use case, we would like to generate a 45 length alphanumeric, and only 32 were generated.


How can we accommodate this larger number?

Environment

All supported DevTest releases and platforms.

Cause

The Random Code Generator Data Set has a hardcoded limit of 32 characters as of 10.7

Resolution

To generate a Random Code Generator Data Set large than 32 characters you will need to create multiple string properties and concatenate them together:


Example:
Create 3 string properties:
longRand1
longRand2
longRand3

Then concatenate them together:
longRand = longRand1.concat(longRand2).concat(longRand3).

Additional Information

Using LISA 8.0.1 for Random Code Generator allows Length though providing 112 getting value of maximum 37 characters | Service V