Linked Questions

0
votes
0answers
52 views

Test Class for Dynamic SOQL [duplicate]

Pretty new with salesforce dev. So forgive me. I am doing a SOQL query and then updating records. The trick here is . I am grabbing my query from two custom fields which are in the Custom Settings . ...
0
votes
1answer
24 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 ...
-2
votes
1answer
30 views

Test Case for custom object [duplicate]

How to write test case for below method Custom Object : SAM_Request__c Global Variable :crossChargeInfoSetFlag , samAdminFlag , samTeamFlag boolean crossChargeInfoSetFlagMethod(SAM_Request__c ...
0
votes
0answers
30 views

Test class for RequestData class [duplicate]

@HttpPost global static List<HHSurvey> getHHSurveyList() { RestRequest req = RestContext.request; RequestData mRequestData = (RequestData)JSON.deserialize(req.requestBody.toString()...
-4
votes
0answers
30 views

I have a trigger with handler, and done test class as below,please let me know any further modifications required [duplicate]

Trigger: trigger SetExpenseManagerAndFinanceManager on DA_Expenso_App_Expense_c (after insert, after update, before insert, before update) { if(Trigger.isBefore && Trigger.isInsert){ ...
0
votes
0answers
28 views

Testing In Salesforce [duplicate]

Please Let me know.How to write TEST class for the following code? trigger TriggerForACC on Account (before insert) { List<Contact> conUpdatedList=new List<Contact>(); List<...
0
votes
0answers
26 views

Test class - code coverage help [duplicate]

I need help on test class, this is my class: When creating a task of type (Phone Call or Last Face to Face) then update the account fields I have a trigger: trigger TaskTrigger on Task (after ...
0
votes
0answers
21 views

How to write Apex test for record creation? [duplicate]

I'm having a hard time writing up a test class for the following Apex class: public class logger { @AuraEnabled public static void insertLog(string name, string id, string location, string ...
0
votes
0answers
19 views

Need help writing a test class for this Apex class [duplicate]

I am very new to Apex and was able to write this class to clone a record. However, when I tried to deploy it to Production I only had 70% code coverage. I think my next step is to write a test class ...
0
votes
0answers
19 views

TestClass for @HttpGet to find locations based on geocodes [duplicate]

I am new to Apex coding and with lot of struggle I wrote the below apex class to find locations based on a Geocode custom object records. Now, I am having difficulties to write a testclass for the ...
0
votes
0answers
17 views

Please assist me in writing test code for this working piece of code. I am new to testing [duplicate]

I'm stuck at 38%, Its just cover the last part of code(callout portion), I have tried several ways but it just cover till line ' parse_id.nextValue(); ' and after that line it mark as red all the ...
0
votes
0answers
16 views

Help writing a test class for apex class I want to deploy to prod [duplicate]

Public Class controller_SoqlQuery { public List<AggregateResult> medOppsCount{get;set;} public List<AggregateResult> nonMedOppsCount{get;set;} public List<AggregateResult&...
0
votes
0answers
15 views

Unit test for a update list Apex Class [duplicate]

i need to write the Unit test for my class in apex, but i don't understand how to function a Unit test, i read many articles for unit test but i don't understand how to work, my class is this, please ...
-3
votes
0answers
15 views

Test class for trigger with list and maps [duplicate]

trigger CloseActivityCopy on Opportunity (after update, before update) { Map<String,String> rejectedMap = new Map<String,String>(); Map<String,String> missedMap = new Map<...
0
votes
0answers
14 views

Please let me know how to cover this in testing? [duplicate]

for(Case_Status_History__c cs : cshMap.values()){ //CR #367 - 4 Defined SLAs //Populating the Status History with completed FirstContact milestone details System.debug('msMap = ' + msMap); ...

15 30 50 per page