You need to sign in to do that
Don't have an account?
DaGunster
Testing ....
Is there any example of this... any demonstration of what the tests are to accomplish?
My app is done. Ready to go. Deployable.
There are a few paragraphs in the developer guide ...
I've got my code in a trigger.
I open a recordset (trigger)
I write a few records to the recordset (trigger).
What am I supposed to test?
That said, you will need to put a testMethod in an Apex Class. Basic skeleton for this is as follows:
As for the "perform trigger tests here" portion, it all depends on what your trigger(s) do(es). At the very least, create test code that will insert/update/delete/undelete/etc. records of the same type your triggers do. For instance, if you have a trigger with the following signature:
Keep in mind that the Id I used in the existing case portion will not work for you as it is specific to my DE. Also, I haven't tested the above code so there may be some bugs, but it should get you started.