Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method DebugFinishForAutoTestInstances 
 | 
{ 
 | 
  TextBody: 
 | 
  [* 
 | 
    macroplan := this.Optimization().astype( Optimization ).MacroPlan();  
 | 
    algrun := macroplan.GetLastAlgorithmRun();  
 | 
    if ( not isnull( algrun ) )  
 | 
    { 
 | 
      if ( algrun.IsForBenchmarking() )  
 | 
      { 
 | 
        runtaskid := algrun.RunTaskID();   
 | 
        debuginfo( 'Calling LibOBT_Benchmarker::ReportRunTaskFinish' );  
 | 
         
 | 
        if ( algrun.IsBenchmark() )  
 | 
        { 
 | 
          MDSMacroPlan::Change(  macroplan.MDSID(), DatasetState::StandAloneStorage() );  
 | 
        } 
 | 
        LibOBT_Benchmarker::ReportRunTaskFinish( runtaskid, '', algrun ); 
 | 
      } 
 | 
       
 | 
      if( algrun.IsBenchmark() ) 
 | 
      { 
 | 
        Transaction::Transaction().Propagate(); 
 | 
        algrun.NumberOfSanityCheckErrors( macroplan.SanityCheckHighestSeverityMsgCount() ); 
 | 
        if(  algrun.NumberOfSanityCheckErrors() > 0 ) 
 | 
        { 
 | 
          algrun.SanityCheckHighestSeverityToolTip( Translations::MP_SanityCheck_Failed( macroplan.MostSevereSanityCheckCategoryLevel() ) ); 
 | 
        } 
 | 
      } 
 | 
    } 
 | 
  *] 
 | 
  InterfaceProperties { Accessibility: 'Module' } 
 | 
} 
 |