I am trying to write a test class while setting up test data. I am creating all the records, Accounts, Opportunity, Product2, Quote, PricebookEntry, QuoteLineItem. In my actual apex class, I have a query which returns QLI for which SellingnModelType!= Null, since in test data SellingnModelType is null, I am not able to increase coverage for the test class. Can anyone help me? Thanks...
1 answer
could you please share the relevant parts of your Apex class and your test class ?
This will help in understanding how you’re handling SellingModelType in your test data and assist you in improving your test coverage.
Thanks!