Create a salesforce test class that has atleast 75% code coverage
- or -
Post a project like this2421
£100(approx. $125)
- Posted:
- Proposals: 2
- Remote
- #1688426
- Awarded
Description
Experience Level: Intermediate
General information for the business: We create custom software development
Description of every module: We have created the following very simple Apex class:
public static String getreport(String strReportId){
//Using report id for example purpose
Report reportRec = [SELECT
Id
FROM Report
WHERE Id = :strReportId];
Reports.ReportResults reportResult =
Reports.ReportManager.runReport(reportRec.Id, true);
return JSON.serialize(reportResult);
}
@AuraEnabled
public static listgetGroupDashboardConfiguration(){
return [Select DeveloperName, MasterLabel, HPG_Group_Id__c,
from HPG_Group_Dashboard_Component__mdt];
}
We now need to create a test class that has atleast 75% code coverage so that this can get deployed to production.
Description of requirements/functionality: Create an acceptable test class that will get deployed to production.
Specific technologies required: Salesforce apex
Extra notes:
Description of every module: We have created the following very simple Apex class:
public static String getreport(String strReportId){
//Using report id for example purpose
Report reportRec = [SELECT
Id
FROM Report
WHERE Id = :strReportId];
Reports.ReportResults reportResult =
Reports.ReportManager.runReport(reportRec.Id, true);
return JSON.serialize(reportResult);
}
@AuraEnabled
public static listgetGroupDashboardConfiguration(){
return [Select DeveloperName, MasterLabel, HPG_Group_Id__c,
from HPG_Group_Dashboard_Component__mdt];
}
We now need to create a test class that has atleast 75% code coverage so that this can get deployed to production.
Description of requirements/functionality: Create an acceptable test class that will get deployed to production.
Specific technologies required: Salesforce apex
Extra notes:
Cedric W.K. K.
100% (3)Projects Completed
22
Freelancers worked with
10
Projects awarded
71%
Last project
24 Aug 2017
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies