You need to sign in to do that
Don't have an account?
Sven
Little help with test code
Hi,
I'am stuck on a few lines of code that i need to test but i don't know how to test this.
is there anybody that could point me out in the good direction. because i don't find much info on how to test your code before deployment.
public PageReference updateRMA() {
if (success == true){
if (handshake == true){
rma = [Select r.Status__c,r.Support_Request__c From RMA__c r where r.Id = :rmaid];
rma.RMAid__c = callnr;
rma.Name = callnr;
update rma;
sr = [Select c.Status from Case c where c.id = :rma.Support_Request__c];
sr.Status = 'Transferred';
update sr;
}
}
return null;
}
Thanks for your help
http://www.salesforce.com/us/developer/docs/pages/index_CSH.htm#pages_controller_error_handling.htm
didn't find that document, i was looking in the apex guide
Thx