KarelHusa's avatar
KarelHusa
Champion Level 3
9 months ago
Status:
New Idea

Add a Regular Expression pattern to a String Generator

Current state

Currently, the String generator allows to specify the length of the string and the string contents by character categories:

  • Letters – By default, this check box is selected.

  • Digits – By default, this check box is selected.

  • Spaces – By default, this check box is selected.

  • Punctuation marks – By default, this check box is selected.

The docs are here https://support.smartbear.com/readyapi/docs/testing/data-driven/types/generator/string.html .

 

Proposal

However, there are cases which need more precise string format. Regular expression would allow an elegant way to define the format.

 

I suggest to add an option to set a regular expression pattern. The String generator would follow the regex pattern instead of string length and the above mentioned character categories.

 

No CommentsBe the first to comment