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??
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.
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