Monday, 23 September 2024

Selecting Random value from ENUM in TypeScript

 Test-data generation is on of the critical component of any test-automation framework. One should always strive to generate test-data as close to production data. Though data should be close to as that of production, we also should try to keep a variety in it. 


Suppose you are Editor as business professional who is looking out to collaborate with some producer of media shows, you don't want to restrict to movie but you are open for documentaries and sitcoms. How would handle such data creation in TypeScript?


0 comments:

Post a Comment

Copyrights held by Amol Chavan. Powered by Blogger.