Generation of Invalid Data Tests Using DiVa
To generate not only valid but also invalid data tests with NRC 31 (request out of range) for specific services, CANoe.DiVa uses the invalid values from the data type definition in the diagnostic specification (CDD /PDX).
- You can check in the CDD if the data types definition contains any invalid value. If it is missing, you can add invalid values like following:
- After CANoe.DiVa has synchronized the diagnostic specification you will observe that the invalid data tests for physical and functional addressing are now created in DiVa:
- If you changed formerly valid values to invalid value in the data types definition, check for the concerned services if the valid request is still correct. Generate and re-import in CANoe the new DiVa Test:
- With a valid data a positive response is expected. With an invalid value a negative response is now expected:
Please complete all required fields. Fields marked with * are required.