> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionTestValidateDiagAuthGeneric

# testValidateDiagAuthGeneric, testValidateDiagAuth

[Valid for](../../../Shared/FeatureAvailability.md):  CANoe DE • CANoe4SW DE

## Function Syntax

```
long testValidateDiagAuthGeneric(
  const char ecuQualifier, const char genericString); // form 1
```

```
long testValidateDiagAuth(
  const char ecuQualifier, const char jobQualifier); // form 2
```

## Description

Initiates the diagnostics authentication process and waits until this process has (generic) completed. The test step is then evaluated as passed or failed, depending on the result, and documented in the report.

## Parameters

* **ecuQualifier**: Qualifier of the ECU or target as set in the diagnostic configuration dialog for the respective diagnostic description.
* **genericString**: Generic parameters to select and configure the security source runtime implementation.
* **jobQualifier**: Diagnostic job to be executed. Should be defined in the diagnostic description.

## Return Values

On success 0, otherwise [error code](../../Diagnostics/CAPLfunctionsDiagnosticsErrorCode.md)

## Example

—
