You need to sign in to do that
Don't have an account?
Apex error when uploading change set to live environment?
We are working on small Salesforce Enhancement Project. We are launching our department naming conventions for Salesforce and also introducing an Advanced Opportunity Search feature.
I am not a Salesforce Apex developer but I have managed to implement the apex pages and classes for Advanced Opportunity Search on our SandBox environment and it is working fine but when I try to upload to the live environment using Change Set of Salesforce, then it is not going through and producing following message.
“Average test coverage across all Apex Classes and Triggers is 65%, at least 75% test coverage is required.”
Can anyone identify this error and let me knoe the likely causes?
You need to write test classes for your page controller classes. The idea behind this is that the test class will help you catch run-time and logic errors before you deploy to a live environment. Just because you can "compile" or save an Apex class or trigger in your sandbox does not mean it is error free.
A good guide to get you started can be found here:
http://wiki.developerforce.com/page/An_Introduction_to_Apex_Code_Test_Methods