In order to keep uniqueness of records in some of your tests, you may have a need to generate a random word (alpha ONLY). Here is a Python function to achieve this:
For example, I am using this to randomize first and last name in the JSON block before I pass this JSON as payload to an API that tests Customers microservice.
No comments:
Post a Comment