Ask a Question

Add a Regular Expression pattern to a String Generator

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.

 

Announcements
Welcome to the ReadyAPI Feature Requests board!

Here you can review submitted feature requests and vote up the ones you like! If you can't find the feature you want - go ahead and suggest your own idea. Ideas with the highest rating can be implemented in the product.

Check out the Create a Feature Request guide for more information.
New Here?
Welcome to the Community
Sign Up Here