I am utilizing four arrays in creating various test cases, as demonstrated below:
var phone = ['phone1', 'phone2', 'phone3'];
var browsers = ['chrome', 'firefox'];
var location = ['1324','2434','4234','1234','3243'];
var network = ['3g', '4g', 'wifi'];
var isLogin = ['service worker', 'no service worker'];
I am struggling to write code that will generate 180 different test cases. I have attempted using for loops and recursion, but haven't found the perfect solution yet. Please note that I am working with JavaScript and can only use array for loop due to certain constraints.
If anyone could provide me with some inspiration or guidance, it would be greatly appreciated!