
Thanks In advance
1 respuesta
Venkataramana, Try like this,
Create Case object in Test class,
Case cs=new Case();
cs.Origin='web';
cs.Status='NEW';
cs.Service_Location__c='testlocation';
provide mandatory fields
insert cs;
This Answers Community is focused on configuration and design questions. Programmatic questions are best submitted to the developer forums at
https://developer.salesforce.com where the forums and participants are geared toward programming troubleshooting and support