You need to sign in to do that
Don't have an account?
cpt
TestMethod for Insertion
How to write the Test meyhod for ordinary Insertion please can amy one help me ...
YodleeCredentials__c y1=new YodleeCredentials__c();
y1.UserId__c=userName1;
y1.Ypassword__c=Password1;
y1.YuserId__c=YodleeUserId.format();
y1.conversationSession__c=ConversationCredentials;
insert y1;
can u explain how to write for this please..
Test method is used for unit testing of your apex script. Suppose you have a class and in the methods you’ve written some apex script like SOQL queries and DML statements (as in your case). So in test method just create the instance of that class and invoke these methods. Apex script within these methods would get test coverage automatically. You don’t need to write special test scenario for that.
Hi,
i am getting the test coverage but not 100% coverage, only some 40% for this class the DML statements might take some more testing inside the testmethod. Then how to cover the insert statement as i send already please reply ...