Quintiq file version 2.0
#parent: #root
Method PTF_IsScenarioExecutable (
  structured[LibPTF_TestScenario] selection,
  output String feedback_o
) as Boolean id:Method_LibPTF_frmTestScenario_PTF_IsScenarioExecutable
{
  #keys: '[103546.0.79819685]'
  Body:
  [*
    // Checks if the selected test scenario(s) can be executed
    scripts := selectset( selection,
                          Elements.LibPTF_TestScript,
                          script,
                          true,
                          true
                        );
    
    value := this.PTF_HasTestScript( feedback_o );
    value := value and this.PTF_IsScriptExecutable( scripts, false, feedback_o );
    
    return value;
  *]
}
