FavoritVamshi Krishna Pemberthi (IBM) fragte in #Salesforce Developer23. Juni 2021, 11:38Is there any way to test the apex class methods which are based on caseHistory Object?1 AntwortSortierenNach Datum sortierenNach "Am hilfreichsten" sortierenNach Datum sortierenAkzeptierte AntwortPranit Jangada (IBM)1. Okt. 2021, 13:46Hello Vamshi, You need to create fake data for CaseHistory (just like you create the records for Case Object in test method) and use that data in the test class.Kommentar hinzufügenAntwort schreiben...FettKursivUnterstreichenDurchstreichenListe mit GliederungspunktenNummerierte ListeLink hinzufügenCodeblockBild einfügenDateien anhängenLink-URLAbbrechenSpeichern0/9000Antworten
Akzeptierte AntwortPranit Jangada (IBM)1. Okt. 2021, 13:46Hello Vamshi, You need to create fake data for CaseHistory (just like you create the records for Case Object in test method) and use that data in the test class.