+ Start a Discussion
Vikram Singh 157Vikram Singh 157 

Hi ! I have doubt in test classes ...

as we know the reords we are going to insert in test class are dummy records and not gonna to insert in our org , but is it required to test on actual  
records while writing test class.
Best Answer chosen by Vikram Singh 157
David HalesDavid Hales
Hi Vikram,

Regarding your query about actual data .... dummy data is nothing but a replica of actual record which you create to test whether the particular piece of code is working fine or not.

So you need not worry regarding this.

Best regards 
David Hales(1058)
 

All Answers

PawanKumarPawanKumar
Hi Vikram,

No need to test on actual record at all. But whenever creating test record, you make sure you populate all the required field in your test record whatever you have used in your actual class. It means we have to create a test record exactly same as real record.

Regards,
Pawan Kumar
David HalesDavid Hales
Hi Vikram,

Regarding your query about actual data .... dummy data is nothing but a replica of actual record which you create to test whether the particular piece of code is working fine or not.

So you need not worry regarding this.

Best regards 
David Hales(1058)
 
This was selected as the best answer
Vikram Singh 157Vikram Singh 157
Thanks Mr.PawanKumar & Mr.David Hales