You need to sign in to do that
Don't have an account?
Rajiv B 3
Hi ,
i am unable to get code coverage for the following.
test code coverage issue for My attachment.
Hi ,
i am unable to get code coverage for the following.
if (fileBody != null){ myAttachment = new Attachment(); Integer i=0; myAttachment .clear(); myAttachment.Body = fileBody; myAttachment.Name = fileName; myAttachment.ContentType = contentType; myAttachment.ParentId = objcase.id; insert myAttachment; }
All Answers
NOTE:- in your test class you need to set fileBody