Skip to content

Adding unit tests for ISO15118-2 messages #5

Description

@SebaLukas

ISO Version

ISO15118-2

Describe the problem

It would be very useful for the library to have unit tests for each V2G message.

In the following table you will find the XML file and the corresponding EXI stream for each ISO-2 message.

Message Files Done
SessionSetupReq SessionSetupReq.zip
SessionSetupRes SessionSetupRes.zip
ServiceDiscoveryReq ServiceDiscoveryReq.zip
ServiceDiscoveryRes ServiceDiscoveryRes.zip
ServiceDetailReq
ServiceDetailRes
PaymentServiceSelectionReq PaymentServiceSelectionReq.zip
PaymentServiceSelectionRes PaymentServiceSelectionRes.zip
CertificateUpdateReq
CertificateUpdateRes
CertificateInstallationReq
CertificateInstallationRes
PaymentDetailsReq
PaymentDetailsRes
AuthorizationReq
AuthorizationRes
ChargeParameterDiscoveryReq
ChargeParameterDiscoveryRes
PowerDeliveryReq
PowerDeliveryRes
SessionStopReq
SessionStopRes
MeteringReceiptReq
MeteringReceiptRes
ChargingStatusReq
ChargingStatusRes
CableCheckReq
CableCheckRes
PreChargeReq
PreChargeRes
CurrentDemandReq
CurrentDemandRes
WeldingDetectionReq
WeldingDetectionRes

Describe your solution

Create for every message a encode and decode test with the help of XML and EXI messages.

A sample of how the tests can be written can be found in the tests/app_handshake folder.

Additional context

Attention: Not all EXI & XML messages uploaded yet

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions