You need to sign in to do that
Don't have an account?
Steve Loudermilk
Help with get,set controller Test Class
Hello everyone,
I am new to working with visualforce controllers and need a little help with a test class.
This is my code which is fairly simple, just not sure how to work with as far as getting code coverage.
public class CraneTicketID {
public Daily_Crane_Ticket__c currentrecord {get; set;}
public CraneTicketID(ApexPages.StandardController controller) {
currentRecord = [SELECT Id FROM Daily_Crane_Ticket__c WHERE Id = :ApexPages.currentPage().getParameters().get('id')];
}
}
Any help is appreciated.
I am new to working with visualforce controllers and need a little help with a test class.
This is my code which is fairly simple, just not sure how to work with as far as getting code coverage.
public class CraneTicketID {
public Daily_Crane_Ticket__c currentrecord {get; set;}
public CraneTicketID(ApexPages.StandardController controller) {
currentRecord = [SELECT Id FROM Daily_Crane_Ticket__c WHERE Id = :ApexPages.currentPage().getParameters().get('id')];
}
}
Any help is appreciated.
You can refer this below link.
https://developer.salesforce.com/forums/?id=906F0000000BYwzIAG
All Answers
You can refer this below link.
https://developer.salesforce.com/forums/?id=906F0000000BYwzIAG
I think I'm in the right ballpark, not exactly sure what's missing
Did you create the save method in your extension class? if not it will show an error like this .