FavoritosVamshi Krishna Pemberthi (IBM) perguntou em #Salesforce Developer23 de jun. de 2021, 11:38Is there any way to test the apex class methods which are based on caseHistory Object?1 respostaClassificarClassificar por dataClassificar por mais útilClassificar por dataResposta aceitaPranit Jangada (IBM)1 de out. de 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.Adicionar um comentárioEscrever uma resposta...NegritoItálicoSublinhadoTachadoLista com marcadoresLista numeradaAdicionar linkBloco de códigosInserir imagemAnexar arquivosURL do linkCancelarSalvar0/9000Responder
Resposta aceitaPranit Jangada (IBM)1 de out. de 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.