You need to sign in to do that
Don't have an account?
udayarangareddy mekala
Hi
if(newvals.severity != oldvals.Serverity){
Account acc = new Account();
acc.Field__c = 'Severity';
acc.New_Value__c= newvals.Severity;
acc.Old_Value__c= oldvals.Severity;
acc.Id__c = newvals.id;
ac.add(acc);
For above code how to write the test class.
Thnks&Regards
rangareddy
Trigger Test Class111
Hi
if(newvals.severity != oldvals.Serverity){
Account acc = new Account();
acc.Field__c = 'Severity';
acc.New_Value__c= newvals.Severity;
acc.Old_Value__c= oldvals.Severity;
acc.Id__c = newvals.id;
ac.add(acc);
For above code how to write the test class.
Thnks&Regards
rangareddy
Please read through the help documentation for writing Unit Tests - this will help you out.
https://developer.salesforce.com/page/An_Introduction_to_Apex_Code_Test_Methods