Skip to content

V3.2

Latest
Compare
Choose a tag to compare
@benahm benahm released this 30 Aug 07:07
· 1 commit to master since this release
ccecfc6
  • Allow looping through a List of values, example :
Create 100 Accounts with a list of 5 different names

Create a list of 100 Account sObjects with a list of 5 different names that will loop and a same description

List<Account> accList = TestDataFactory.createSObjectList('Account', new Map<String,Object>{
  'Name' => new List<String>{'Google','Amazon','Facebook','Apple','Microsoft'},
  'Description' => 'Same description'
},100);