random user 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: random person data api
$.ajax({
url: 'https://randomuser.me/api/',
dataType: 'json',
success: function(data) {
console.log(data);
}
});