Quintiq file version 2.0
|
#parent: #root
|
Method DeleteDatasetCopyAndStrategyCopy
|
{
|
Description: 'Delete strategy copy and macroplan copy in this UTF'
|
TextBody:
|
[*
|
sm := this.GetScenarioManagerStream();
|
sm -> ( scenariomanager )
|
{
|
strategy := select( scenariomanager, Strategy, s, s.Name()= typeof( UTF_UnitTestMPStrategyOverrideFocusLevel ).ShortName() );
|
if ( not isnull ( strategy ) )
|
{
|
strategy.Delete();
|
}
|
|
datasetkind := GlobalParameters_MP::GetDatasetMacroPlan();
|
// Delete the Copy dataset that created at step Test_0004
|
MacroPlan := MDSEditor::Editor().ObjectInfo( datasetkind, GlobalParameters_MP::GetDatasetFolder(), "Copy" );
|
|
if ( not isnull( MacroPlan ) )
|
{
|
MDSEditor::Editor().UnloadMDS( MacroPlan.MDSID() );
|
}
|
}
|
*]
|
InterfaceProperties { Accessibility: 'Module' }
|
}
|