Linked Questions

0
votes
0answers
113 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
47 views

Test Class for Trigger on Event [duplicate]

I am new to Salesforce and I am writing a test class for the trigger. Can anyone tell me how to write a test class for the trigger below? trigger QBRNewRec on Account (After insert, After Update) { ...
-3
votes
1answer
42 views

Test class not sure how to write for this code [duplicate]

I have written following apex class: public with sharing class Persmissionset { @AuraEnabled public static PermissionPagerWrapper fetchPermission(Decimal pageNumber ,Integer recordToDisply) { ...
0
votes
1answer
41 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 ...
0
votes
0answers
47 views

Create test class to achieve 75% code coverage needed for a Apex Trigger and Class [duplicate]

I wish to update a field from one custom object (Career Path) to another object (Contact details) based on whether a checkbox (Current) is true. Essentially, it updates the Contacts details with the ...
-1
votes
1answer
27 views

How to write Test class for the below [duplicate]

Apex class: public class ProdImedComAr { public class Respuesta { public Integer Codigo; public String Descripcion; public Long NroOperacion; public String ...
-3
votes
1answer
45 views

code coverage for this class in test class is 67%..need more .Please Help..Beginner in Coding [duplicate]

Class public with sharing class MobileForms2 { public list<SelectWrapper> AccountList {get;set;} public string SelectedAccountId {get;set;} public list<FormWC> FormList {get;set;} ...
-1
votes
1answer
45 views

I'm a novice developer, please help with writing a test class for this code.Thanks [duplicate]

global class converterSchedule implements Schedulable { global void execute(SchedulableContext ctx) { List<Exchange_rate__c> exchange = [SELECT Date__c, GBP__c, USD__c, EUR__c, ...
-2
votes
1answer
41 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
41 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
37 views

Writing test Class - Code Coverage 0% [duplicate]

Working on creating a test class for my class in my sandbox and I am receiving a code coverage 0% in the dev console. The console isn't highlightning the lines that need to be covered in red either. ...
0
votes
0answers
35 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()...
-2
votes
1answer
34 views

test class for apex class creating multiple object records [duplicate]

Can anyone helps me out in writing the test class for below apex class. I know that I should not post it here asking for this kind of questions but as I am new to apex and I need to deploy so I was ...
0
votes
0answers
33 views

need test class for apex class with 75% Percentage Code Coverage, now 69% [duplicate]

Hi i create the class to generate document: public with sharing class GenerateDocumentApiHandler { //here is what i failed public Static GenerateResult generateDocId(String ...
0
votes
0answers
33 views

Hi, Iam new to salesforce, cant able to write test class for below code [duplicate]

public class countthecontacts { public void insertcontact(){ list<Account> acclist = new list<Account>(); list<contact> conlist = new list<contact>(); ...

15 30 50 per page