+ Start a Discussion
Geetha BGeetha B 

i am unable to do code coverage

hi
   I am unable to pass else part in test class can any one help me
PratikPratik (Salesforce Developers) 
Hi Geetha,

To pass the else part, insert or update the record in the test class with the field value different than it's mentioned to meet the IF condition true.

You can refer to:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_testing_best_practices.htm

Thanks,
Pratik