• Olivia wilde
  • NEWBIE
  • 0 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
@isTest
private class Test_TrialSurveyContainerController {
    @IsTest(SeeAllData=true)
    static void testRecocrTypeID() {
        
        List<Survey> survey = [SELECT Id FROM Survey WHERE ActiveVersionId != NULL LIMIT 1];
        if (survey.isEmpty())
            return;

        TriggerHandlerExecutor.bypassHandler(
            TaskTriggerHandler.SendImmediateEmailsForTaskCodeHandler.class
        );
        Test.startTest();
        TestData.loadTestData();
        Test.stopTest();

        TestData testData = new TestData();

        testData.pe.Participant_Status__c = PEStatusState.PE_STATUS_ENROLLMENT_SUCCESS;
        update testData.pe;

        Reminder_Schedule__c schedule = new Reminder_Schedule__c(First_Reminder_day__c = 1);
        insert schedule;

        Trial_Survey__c tsAllSee = new Trial_Survey__c(
            Active_After_Days__c = 0,
            Clinical_Trial_Profile__c = testData.ctp.Id,
            Expires_After_Days__c = 999,
            Survey__c = survey.get(0).Id,
            RecordTypeId = Schema.sObjectType.Trial_Survey__c.getRecordTypeInfosByName().get('Status based').getRecordTypeId(),
            Whose_response_needed__c = 'Patient or any Delegate'
        );
        insert tsAllSee;
        TrialSurveyContainerController.getRecordTypeNameById(tsAllSee.RecordTypeId);
  }
}
Can any one say the steps to complete.I first downloaded the sandits import file.then using data loader io i have imported the csv file from then Iam getting very much confuesed.and there is no field called last name in csv file.and which object should i choose to import the file.how many csv files should i create to import.shoul i divide account and contacts in different csv files.