I am trying to cover a class in which I have below condition which contains one variable called SBQQ__Bundle__c available on QuoteLine Object of steel brick CPQ. I have tried to investigate regarding SBQQ__Bundle__c and found that "SBQQ__Bundle__c Checkbox Indicates whether this line item represents a package; meaning, it includes other line items in this quote." so to cover this check box I should have one product associated with other. but I am not sure how to associate one product with other. Can anyone please help me here as I am new to Steel Brick CPQ.
Main Class Condition:
Test Class logic to cover above condition:
Product2 prodObjSample = new Product2(); prodObjSample.Name = 'TestProduct'; prodObjSample.ProductCode = 'xyz-1555'; prodObjSample.IsActive = true; prodObjSample.Tax_Category__c = 'Test Category'; insert prodObjSample;
but i am not sure which field will help me to associate the above product with another product to make the SBQQ__Bundle__c Checkbox to true.