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
rgdcrgdc 

Doubt about datas

Hi people,

 

 

When we create classes we need to make the test's class, and I would like know in what records are makes the tests? Where are they? Both in production and in homologation??

 

Thank you very much

Bhawani SharmaBhawani Sharma

Test class is to test functionalities what you are expecting from the functionality and what it is actually returning.

 

Test class runs in virtual envionment so you do not ned to create the records in database actually. You should create your test data inside the class. Test class doesn't commit data in database.

 

For more information:

http://wiki.developerforce.com/index.php/An_Introduction_to_Apex_Code_Test_Methods