Quintiq file version 2.0
#parent: #root
Method PTF_ValidateParametersSize (
  String action,
  Number actualsize,
  Number expectedsize
) as String id:Method_LibPTF_dlgCreateEditTestScript_PTF_ValidateParametersSize
{
  #keys: '[103546.0.109833619]'
  Body:
  [*
    // Validate the parameter - Number of parameters expected
    errormsg := "";
    
    if( actualsize <> expectedsize )
    {
      errormsg := 'Action "' + action + '" should have ' + [String]expectedsize + ' parameter. Found ' + [String]actualsize + ' instead.' + String::NewLine();
    }
    
    return errormsg;
  *]
}
