You need to sign in to do that
Don't have an account?
Yashasvi D
PricebookEntry test class CodeCoverage failing
Hi ,
I am unable to complete testclass for PricebookEntry Object, which is failing because i need to populate PricebookEntry's ProductCode field(not writable field) in my test class.
Condition in main class is :- "select id from PricebookEntry where productcode =:Productname"
I also checked with @isTest(seeAllData=True) in my test class. but no improvement.
Can anyone please help me on the above issue.
Thanks!!
KR,
Yash's.
I am unable to complete testclass for PricebookEntry Object, which is failing because i need to populate PricebookEntry's ProductCode field(not writable field) in my test class.
Condition in main class is :- "select id from PricebookEntry where productcode =:Productname"
I also checked with @isTest(seeAllData=True) in my test class. but no improvement.
Can anyone please help me on the above issue.
Thanks!!
KR,
Yash's.
Use this test class for PricebookEntry helpful for you.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com