Questions tagged [apextestrunresult]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
38 views

test class for wrapper class in apex

public with sharing class ResponseWrapper{ public String Id; public String Time; public String lobType; public String businessContextId; public Information[] document; public ...
1
vote
1answer
30 views

Missing ApexTestRunResult Data

Yesterday we had 10-11 records and today just 2. This is what I did: Check recycle bin and using All Data Check Bulk API delete capable processes and users Check connected apps. DataLoader.io SSO ...
1
vote
0answers
61 views

How to delete a Person Account in Apex Test

I have difficulty to delete Person Account(PA) in Apex test. The reason is that I cannot figure out how to disable the associated user record. The org has Salesforce SSO and PA feature enabled. Here ...
-3
votes
1answer
56 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
1answer
25 views

How can i test inside for loop apex test? [duplicate]

public static List<priceBookEntryWrapper> searchproduct(String sampleId, String seriesValue, list<string> gradeValues){ system.debug('seriesValue->->->->->->->->...
0
votes
1answer
90 views

Too many SOQL queries error encountered when running the class in Sandbox but not in Production

I have experienced a bunch of test classes fail to pass in a Sandbox, but execute fine in Production. Has anyone some good tips on what look out specifically? I think the code itself is not ...
0
votes
1answer
40 views

unit testing - if record is created with certain record type

I have a function createWithRecordTypeIfExists(String recordType). Its logic goes like this: Check whether a record type for this object exists in the org. If yes, create a new record with this ...
1
vote
1answer
522 views

OpportunityTeamMember and OpportunitySplit in Test Class

I am facing an issue while writing a test class for Opportunity trigger handler class. We have enabled and Opportunity Team member and Opportunity Split process in our org. In the split process, 100% ...
0
votes
1answer
674 views

Apex test run doesn't report back to sfdx

I used to run Apex tests using sfdx force:apex:test:run -r human -c command and everything was fine. But after I've created another scratch org this command no longer produces any result, it just ...
-3
votes
1answer
862 views

how to get Percentage coverage of each ApexClass through SOQL

Is there any way we can query Like below and get the result Query: SELECT Percentagecovered,ApexClassname FROM ApexCodeCoverage or How can i convert below query to get % covered. SELECT ...
6
votes
1answer
180 views

ApexTestRunResult's status is set to complete and all tests pass, but the enqueued and completed count do not match

It is possible to programatically run tests in the platform by creating ApexTestQueueItem records. They reference classes by their Id, and you can even optionally specify if you want the test to ...