1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  | 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; 
 |    *] 
 |  } 
 |  
  |