/*  * Author: Zhang,Heyang  * Created Date: 2023/08/07  * Purpose: TestClass  *  * */ @isTest private class LexNewAndEditQISPIPLControllerTest { @isTest static void tesMethod1(){ String RecordTypeId = Schema.SObjectType.QIS_Report__c.getRecordTypeInfosByDeveloperName().get('QISRecordType1').getRecordTypeId(); System.debug(RecordTypeId); QIS_Report__c qis = new QIS_Report__c(); qis.RecordTypeId = RecordTypeId; qis.Name = 'Test'; insert qis; LexNewAndEditQISPIPLController.initData(qis.Id,qis.RecordTypeId,'QIS_Report__c'); } }