You need to sign in to do that
Don't have an account?
vinayakamurthy
regarding test class
Hi i want to know about testclass can some one help me in knowing it.i am new to test class.
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hi i want to know about testclass can some one help me in knowing it.i am new to test class.
Testing is an important part of the development process. Before you can deploy Apex or package it for the Force.com AppExchange, the following must be true.
At least 75% of your Apex code must be covered by unit tests, and all of those tests must complete successfully.
You have to cover in your apex class and trigger all the code to cover. You have to cover the conditions(if/else) by adding the value to your objects accordingly. See the below testing Best practices and testing examples.
Best Practice - http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_testing_best_practices.htm
Examples
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_qs_test.htm
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_testing_example.htm
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Thanks