You need to sign in to do that
Don't have an account?
Royal
how to create custom setting data into test class ?
how to create data in test class for custom setting, with out using SeeAllData=true.
custom setting name is: AllCodeValues__c, and field name is : firstcode__c
when you click the manage button on customm settings values are like below...
Atmakur 0012
Kavali 0013
kaluvai 0014
like this values is there so how can create data for this in test class.
thanks in advance.
custom setting name is: AllCodeValues__c, and field name is : firstcode__c
when you click the manage button on customm settings values are like below...
Atmakur 0012
Kavali 0013
kaluvai 0014
like this values is there so how can create data for this in test class.
thanks in advance.
acv.add(new AllCodeValues__c(Name = 'abc'));
insert acv;
Here is the sample code for inserting the custum setting data
Category__c,Sub_Category__c, Priority__c, SLA__C, Name are my custum setting fields
Let me know if you have any other question
Thanks,
pRAMODH.