function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dipa87Dipa87 

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

asish1989asish1989

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