You need to sign in to do that
Don't have an account?

Simple 3 lines Trigger Test
Hi Experts,
Below trigger working sucessfully in single Account Standard Object. But i need test trigger for deployment from Sandbox to Production.
trigger ExecutiveOwner on Account(before insert, before update){
Account Owner = [Select Executive_Owner__c from Account Where Account.Strategic__c= null or Account.Strategic__c= 'No' limit 1];
Owner.Executive_Owner__c = null;
}
Below is fields Info on Account:
Strategic__c
Executive_Owner__c
Please anyone help me.
Thanks in Advance.
Thanks,
Manu
Below trigger working sucessfully in single Account Standard Object. But i need test trigger for deployment from Sandbox to Production.
trigger ExecutiveOwner on Account(before insert, before update){
Account Owner = [Select Executive_Owner__c from Account Where Account.Strategic__c= null or Account.Strategic__c= 'No' limit 1];
Owner.Executive_Owner__c = null;
}
Below is fields Info on Account:
Strategic__c
Executive_Owner__c
Please anyone help me.
Thanks in Advance.
Thanks,
Manu
All you need to do in a unit test to get coverage is insert an Account record:
If you were serious about verifying your trigger you could verify the unit test:
Rob Kemper - OpFocus