Skip to main content

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... 

 

@* Salesforce Developers * 

1 answer
  1. Aug 26, 2025, 5:51 AM

    Hi @Mohan Kumar Tulabandu

     

    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!

0/9000