Linked Questions

1
vote
1answer
747 views

Test Class for Contact [duplicate]

I have a code that is testing a batch, I am creating a contact and an Account , but the contact isn't getting linked to the account (c.AccountId = null). The same code is tested in Async window and it ...
-2
votes
1answer
665 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
244 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 . ...
-2
votes
1answer
111 views

Test Class for a simple Apex Class [duplicate]

I am trying to write a test class for a simple Apex Class which sets the status of the Case to be Closed like below public class updateCaseRecord { @AuraEnabled public static void ...
0
votes
0answers
171 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
127 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) { ...
0
votes
1answer
68 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 ...
-3
votes
1answer
62 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
0answers
76 views

Apex Test Class is Failing - (System.QueryException: List has no rows for assignment to SObject) [duplicate]

I am brand new to coding and this is my first test class. I have spent hours trying to get it to pass. Apex Trigger That I am Testing trigger RenameTransaction on Financial_Transaction__c (before ...
0
votes
0answers
61 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
1answer
47 views

Test Class Coverage for Apex Controller [duplicate]

I need help in writing test class for following apex class. Could anyone please suggest how to create test data,test the following method defined in apex class with positive and negative scenarios and ...
0
votes
1answer
45 views

Developing A Test Class [duplicate]

I've written Apex classes but this is my first time written a test class. I've read a number of sources and watch videos but I don't grasp the foundation to get a test to successfully cover my code. ...
0
votes
0answers
58 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 ...
0
votes
1answer
33 views

Use Map instead of For loop in my Apex Trigger [duplicate]

I'm new to coding and I need help in modifying the apex trigger below to the correct one. Can you also help me in creating a test class for this? Thank you so much! trigger UpdateLadderedFields on ...
-2
votes
1answer
54 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 ...

15 30 50 per page
1
2 3 4 5
7