You need to sign in to do that
Don't have an account?
AlecS
Test Code
I have written trigegrs in my sandbox environment.
I did not realize that I have to write test cases for these triggers until I started looking to move them to production.
What's the quickest way to learn how to write test cases for moving code to production.
Thank you.
http://wiki.developerforce.com/page/An_Introduction_to_Apex_Code_Test_Methods
So firstly you need to create the test data according to your requirement.
For covering triggers, just the DML are enough; whereas for classes you need to invoke each method as you do it in page or order.
Look at the documentation for more examples.