You need to sign in to do that
Don't have an account?
Gupta
How to cover these line in test class.
If(feedbackRecord.Flexible__c == null ){ feedbackRecord.Flexible__c.adderror('Enter value'); return null; } If(feedbackRecord.Responsive__c == null ){ feedbackRecord.Responsive__c.adderror('Enter value'); return null; } If(feedbackRecord.Helpful__c == null ){ feedbackRecord.Helpful__c.adderror('Enter value'); return null; }
Gupta - Ensure that there are 3 test data scenarios each where each of the fields does not have a value. If this code is part of a controller then you can confirm the following in the test class code:
To confirm the error text you can use: