You need to sign in to do that
Don't have an account?
shobana shobana 1
code coverage for duplicate management rule in apex class
Hi i have replicated the duplicate management rule in Apex class for Account Object. But am getting only 64% code coverage. Can anyone help me to increase the code coverage.
Although this test class can be written in much lesser lines.
Just try this last time:-
If this doesn't work then put SeeAllData=true in the starting.
All Answers
The flow will then go to if statement and your code coverage will increase.
Thank you for your reply. Create a case means, i want to insert the sample record? would you please share the sample code for this.
Or try inserting record which is already available for the object (but for that you have to write Seealldata=true)
If you want code then just give your test class, I will help with your code.
try this if it works.
but you can put system.debug(a1);
before line 51 and system.debug(a2);
after line 51 to know whether both are same.
still 64% only.
Hi Manish
Both are same only
Although this test class can be written in much lesser lines.
Just try this last time:-
If this doesn't work then put SeeAllData=true in the starting.
Thank you for you help