Quintiq file version 2.0
#parent: #root
Method PTF_ValidateParametersWithOptionalParamSize (
  String action,
  Number actualsize,
  Number mandatorysize,
  Number maxsize
) as String id:Method_LibPTF_dlgCreateEditTestScript_PTF_ValidateParametersWithOptionalParamSize
{
  #keys: '[105690.0.908430788]'
  Body:
  [*
    errormsg := "";
    
    if( actualsize < mandatorysize or actualsize > maxsize )
    {
      errormsg := 'Action "' + action + '" should have ' + [String]mandatorysize + ' to ' + [String]maxsize + ' parameter. Found ' + [String]actualsize + ' instead.' + String::NewLine();
    }
    
    return errormsg;
  *]
}
