fake data generator code example
Example 1: generating random test data
Mostly I get test data from PO however if
I need to generate any test data:
For UI Part : I use "Faker dependency" on Selenium
For API Part: I use "https://www.mockaroo.com/" ==>
generates multiple format (CSV, JSON, XML, etc)
Example 2: generating test data in api
For API Part: I use "https://www.mockaroo.com/" ==>
generates multiple format (CSV, JSON, XML, etc)
Example 3: how do you generate test data
When=> sprint planning meeting
Who=> Mostly I get test data from PO
However in some instances, especially in
negative test scenario I may need to
generate test data.
I use java faker to generate data
How => Faker faker=new Faker();
or String manupilation(substring concatination etc.)
I store it at SharePoint. Saved in my project
in xls type under data package
For API Part: I use "https://www.mockaroo.com/" ==>
generates multiple format (CSV, JSON, XML, etc)