You need to sign in to do that
Don't have an account?

Regarding Test.loadData Example
Hi All,
Currently I am using Test.loadData to insert test data frm a csv into one object. Can I use the same static resource file for inserting test data into another object. Is it possible? Or is it like we need to create separate csv for each object?
I have another query . Is it possible add a dynamic value to any field in csv?
Thanks in advance.
Dipa
Hi
This is not possibe because test data must be different for different object, So you need to create separate csv for each Objec,
Suppose I am using Test.loadData to insert test data frm a csv into Account , now Its not possible to use same csv file for Contact Object .
If this post answers your question please mark it as solved and give kudos for this post if this post helps you
Thanks