binxie
2024-01-16 1b08402678deb31bba4a347bfd388eba8360cbc1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@istest
public class OTCLogisticsBatchTest {
   static testMethod void testMethod01(){
      Statu_Achievements_DN__c  sad = new Statu_Achievements_DN__c();
      sad.Name = '006501621931';
      sad.DeliveryDate_Raw__c = '1111';
      sad.Sales_assistant_name_text__c = UserInfo.getUserId();
      sad.RC_Manager__c = UserInfo.getUserId();
      sad.EsignTestAccount__c =true;
      sad.ReturnMark__c = false;
      // sad.InstallDate__c=Date.today();
      sad.Statu_Achievements__c = 'a0N1000001LBEHrEAP';
      insert sad;
      waybill__c w = new waybill__c();
      w.waybill_number__c = '6501621931';
      insert w;
      Test.startTest();
      Database.executeBatch(new OTCLogisticsBatch(),1);
      Test.stopTest();
   }
}