Quintiq file version 2.0
#parent: #root
Method PTF_HasValidTestScript (
  structured[LibPTF_TestScript] testscripts,
  output String feedback_o
) as Boolean id:Method_LibPTF_frmTestScenario_PTF_HasValidTestScript
{
  #keys: '[103546.0.79809350]'
  Body:
  [*
    // Checks if the selected test script is valid
    value := exists( testscripts,
                     Elements,
                     script,
                     true,
                     script.IsScriptValid()
                   );
    
    if( not value )
    {
      feedback_o := feedback_o + "There are errors in the script(s) and is (are) unable to execute" + String::NewLine();
    }
    
    return value;
  *]
}
