Linked Questions

0
votes
1answer
558 views

Batch Test class not calling execute method [duplicate]

I have created below batch apex class. I have also created test class for this. But this test class is only covering 27% of batch apex class. Also, it is not calling execute method of batch apex class....
-3
votes
1answer
498 views

Test class for sobject record type [duplicate]

I am trying to cover the below class. I am getting 71%. Can you please let me know how to cover . public class OpportunityRecordTypeSelectionCtr { @AuraEnabled public static string findRecordTypes(...
0
votes
1answer
387 views

How do you write a test for a class that clones? [duplicate]

I have the following code that clones an asset and its' children... public class Cloner { public Asset root_asset { get; set; } public Asset cloned_root_asset {get; set; } public ...
-2
votes
1answer
226 views

Test class for event object [duplicate]

Please help me to write test class for event object. I am getting only 25% code coverage. // Method to validate start and End Time on events public static void ValidateStartEndTime(List<Event&...
-1
votes
1answer
195 views

How to cover the SETENDPOINT kind of lines in test class [duplicate]

**APEX-CLASS** public class TriggerFlodataWorkflowController { public string inputIds{get;set;} public List<String> selectedNames{get;set;} public List<String> selectedIds{get;set;} ...
-1
votes
1answer
160 views

Send email failed, No body supplied for file attachment in a batch apex [duplicate]

I wrote a batch apex to send reports. PFB the main class and test class but not able get the code coverage. Please assist me. public class BatchReportsAutoSend implements database.Batchable<...
-6
votes
2answers
78 views

Test Code For My Class [duplicate]

// Class Code public class SendMassMailDealsheet { public List < Dealsheet__c > dealsheetIdList {get;set;} public set < ID > dealsheetId {get;set;} public ...
-3
votes
1answer
97 views

Unable to cover test class for history object [duplicate]

Here is my test class public class BoothChangeReportCtrl { @auraEnabled public static List<BoothChangeDetail> getBoothChangeData(){ List<BoothChangeDetail> ...
0
votes
0answers
137 views

Need Help with a test class to my apex class that attaches a Visualforce Page pdf to the quote [duplicate]

I found a way to write an apex class that attaches my quote which is generated by an vf page as a pdf to my quote object. Writing the test class is even a bigger problem for me. I get to 36% coverage ...
0
votes
1answer
30 views

0% coverage on trigger [duplicate]

I have a working trigger that I'm starting to build my test class for. I've done a few lines and ran a test to make sure it's working as it should and everything seems okay, except the trigger itself ...
0
votes
1answer
96 views

Problem with Rest Webservice Code coverage [duplicate]

I have the following set of lines in my code RestRequest req = RestContext.request; RestResponse res = RestContext.response; AreaRequestWrapper areaRequestRecord = (AreaRequestWrapper)...
-1
votes
2answers
93 views

Not able to improvie the code coverage for the class [duplicate]

I am not able to cover the lines for the below class which is in bold(four stars) and method called "getAccountMaxPriorityTerritory", can anyone help me how to do that please. Below is the method ...
-3
votes
1answer
52 views

Coverage code for remote action [duplicate]

Why the coverage code is 0? global with sharing class OutputControllerMap { @RemoteAction global static List<Output__c> findAll() { return [SELECT Id, Name, Project_Type__c,...
0
votes
1answer
66 views

Test Class with wrapper [duplicate]

I have a problema with a Class test in the wrapper class.. This is mi class and doesn't have any error: public class ValeDeSalida_cls { private ApexPages.StandardController sc; public String ...
-1
votes
1answer
82 views

Need help in writing Test Class for Rest API Class [duplicate]

I have a REST API class which updates the user status in external system when the user status is changed in Salesforce. Below is the code public class AccUpdateController { @future(callout=true) ...

15 30 50 per page
1
2 3 4 5
8