Quintiq file version 2.0
#parent: #root
Method PTF_TestCreateScenario (
  output Real duration_o,
  output String response_o,
  String scenarioName,
  String storageState
) as Boolean id:Method_LibPTF_pnlTestRunner_PTF_TestCreateScenario
{
  #keys: '[136682.0.314444039]'
  Body:
  [*
    issuccessful := false;
    
    preconditionflag := true; // Your precondition before executing the action
    
    if( preconditionflag )
    {
      startprecisionctr := OS::PrecisionCounter();
    
      // Call your method here
      // Use the following construct if you want to execute a server method
      this.PTF_GetPTFLibrary().CreateScenario( scenarioName, storageState, response_o );
    
      duration_o   := this.PTF_GetDurationInMilisecond( startprecisionctr );
      issuccessful := true;
    }
    else
    {
      response_o := 'PTF_Test_CreateScenario: Precondition failed because < ' + response_o + ' >'; // Your precondition failed reason
    }
    
    return issuccessful;
  *]
}
