0% found this document useful (0 votes)
120 views17 pages

Nayax Energy Core OCPP Integration Tests

Uploaded by

侯秦三
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views17 pages

Nayax Energy Core OCPP Integration Tests

Uploaded by

侯秦三
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Nayax Energy Core OCPP

Integration Tests

TABLE OF CONTENT
1. Test Pre-Requisites .................................................................................... 2
1.1. Hardware ............................................................................................... 2
1.2. Software ................................................................................................ 2
1.3. Test Information ..................................................................................... 2
2. Integration Tests ........................................................................................ 4
2.1. Charging Station Connectivity ................................................................... 4
2.1.1. Charger Startup .................................................................................. 4
2.1.2. Charger Sending Heartbeat & Configuration ............................................ 5
2.2. Charging Session .................................................................................... 6
2.2.1. Authorization with RFID Card ................................................................ 6
2.2.2. Charging Session - Start and Stop Locally ............................................... 7
2.2.3. Charging Session - Remote Start and Stop .............................................. 9
2.2.4. Charging Session - Fault on Socket ...................................................... 10
2.2.5. Charging Session - Power Loss ............................................................ 10
2.3. Server Configuration ...............................................................................11
2.3.1. Change Availability ............................................................................ 11
2.3.2. Remote Reset................................................................................... 11
2.3.3. Get Diagnostics ................................................................................ 11
2.3.4. Trigger Message ............................................................................... 12
2.3.5. Install Firmware Update ..................................................................... 13
2.4. Working Offline ...................................................................................... 14
2.4.1. Lost Communication .......................................................................... 14
2.4.2. Clear Cache ..................................................................................... 15
2.5. Card Reader Integration ..........................................................................16
2.5.1. Pay with CC via Nayax Card Reader ..................................................... 16
3. Test Summary .......................................................................................... 17

Page 1 of 17
1. Test Pre-Requisites
For any question, please contact us on email: zachi@nayax.com

1.1. Hardware
Required equipment for tests:
1. Real Charging Station connected to communication network.
2. Electric vehicle with charging cable / EV simulator with load.
3. RFID card for authorization command test.

1.2. Software
1. The Charging Station info should be sent to Nayax integration team before the test
to configure it in the Nayax Energy Core:
o Charging Station Serial Number.
o Vendor Name sent in the Boot Notification command.
2. The Charging Station should open a web socket with below URL:
o wss://qa2-evtranslator.nayax.com/ocpp16/2002123712/
- OR -
ws://qa2-evtranslator.nayax.com/ocpp16/2002123712/
o This is the testing environment and 2002123712 is the Operator Id.
o The Charging Station SN should be sent after this open web socket request.

1.3. Test Information


No. Title Description
1 Test date
2 Nayax Energy Core Tester Name
3 3rd Party Tester Name
4 Test number 1/2/3/…
5 OCPP protocol OCPP 1.6J
6 Charging Station serial number
7 Charging Station brand
8 Charging Station model
9 Charging Station firmware version
10 RFID

Page 2 of 17
Page 3 of 17
2. Integration Tests
2.1. Charging Station Connectivity
2.1.1. Charger Startup
Check boot notification message is sent upon Charging Station initialization.

Preconditions
1. Charging Station power is off.
2. Charging Station is configured.
2.1. Charging Station Number = Charging Station serial number sent.
2.2. Charging Station model = new model created for this test with the brand and
model.

Test Scenario
1. Connect the Charging Station to the power supply.
2. Expected result:
2.1. Backend should receive boot notification message with all required data:
vendor, model, serial number, charger serial number, IMSI (if on GSM), etc.

Results
Success / fail

<fill the request and response from the logs>

Page 4 of 17
2.1.2. Charger Sending Heartbeat & Configuration
Check that charger is signaling live status to the back end in regular intervals.

Preconditions
1. Boot finished successfully.

Test Scenario

Perform Expected result Result & Severity


• Send Get • Get the Charging Station View results below
Configuration configurations
command
• Set HeartbeatInterval • Charging Station to sends
as 20 seconds Heartbeat every 20 seconds
• Set HeartbeatInterval • Charging Station to save this
as 600 seconds value
• Set • Charging Station to save this
MeterValueSampleInterval value
as 60 seconds

Results
Get Configuration received:

<fill the response from the logs>

Page 5 of 17
2.2. Charging Session
2.2.1. Authorization with RFID Card
Charging Station sends authorization request to the back end when user swipes RFID
card and authorization should be sent.

Preconditions
1. Charge status is Available.
2. Set Authorization is needed in the Nayax Energy Core.
3. Prepare RFID card that will be registered via test flow.

Test Scenario

Perform Expected result Result & Severity


• Present RFID card • Authorization sent to Nayax
where this card is Energy Core
not defined in the • Since RFID card is not defined,
Nayax Energy Core the response is Invalid
• Charger should not start
• Define this RFID in
the Nayax Energy
Core

Page 6 of 17
2.2.2. Charging Session - Start and Stop Locally
Full cycle charging session where start and stop transaction are done locally in the
charge station.

Preconditions
1. Charge status is Available.
2. Set Authorization is needed in the Nayax Energy Core.
3. Use RFID card defined in the Nayax Energy Core so authorization should be
approved.
4. If supported, set Meter Value Clock Aligned Data Interval as 10 minutes.

Test Scenario

Perform Expected result Result & Severity


• Set Meter Sample • Charging Station to save this
Value interval as 60 value
seconds
• Connect the • CP send Status Notification with
Connector 1 status Preparing
• Present the RFID • CP send Authorization, Response
card is Accepted
• CP send Start Transaction
• CP send Status Notification with
status Charging
• Wait 1 minute • CP send Meter Sample Value for
EVSE(s) with current, power,
and energy consumption
• Check meter values • View meter values in the report
in the Charging and in the Kibana
Sessions report
• Stop charging on • Charging Session stopped
connector 1 locally • CP send Stop Transaction with
reason Local
• CP send Status Notification with
status Finishing, Available,
Preparing
• Disconnect the cable • CP send Status Notification with
status Available

Page 7 of 17
Results

Meter Sample Value

<fill Meter Value sent from the Charging Station>

Set MeterValuesSampledData AS
Energy.Active.Import.Register,Current.Import,Power.Active.Import,Current.Offered,Power.Offered,Voltage,SoC
Test the Meter Sample Value again.

Meter Value Clock Aligned

Supported: Yes / No

Page 8 of 17
2.2.3. Charging Session - Remote Start and Stop
Charging Station should allow remote start and stop charging from Core App/DCS.

Preconditions
1. Charge status is Available.
2. Set Authorization is needed in the Nayax Energy Core.

Test Scenario

Perform Expected result Result & Severity


• Connect the • CP send Status Notification
Connector 1 with status Preparing
• Send Remote • Nayax Energy Core send
Start Transaction Remote Start with Central
from the App / DCS Token
for connector 1 • CP send Authorization
• Response is Accepted
• CP send Start Transaction
• CP send Status Notification
with status Charging
• Send Remote Stop • Charging Session stopped
Transaction from • CP send Stop Transaction
the App / DCS for with Stop Reason Remote
connector 1 • CP send Status Notification
with status Finishing,
Available, Preparing
• Disconnect the • CP send Status Notification
cable with status Available

Page 9 of 17
2.2.4. Charging Session - Fault on Socket
Verify how charger reacts when fault on socket occurs.

Preconditions
1. A charging session is running.
2. Option to simulate fault on Car simulator.

Test Scenario

Perform Expected result Result & Severity


• Simulate fault on • CP send Status Notification
Car simulator with status Faulted and
error other
• CP send Stop Transaction
with reason as simulated
• Cancel the fault and • CP send Status Notification
resume operation with status Available

2.2.5. Charging Session - Power Loss


Verify charger continue charging session after power loss.

Preconditions
1. Charge status is Available.

Test Scenario

Perform Expected result Result & Severity


• Set Authorization as True • CP accepts
• Start a charging session • Charging session started
• Perform 10 seconds of • CP stop the charging
power interruption session
• Boot Notification • Charging session should
not start again
• Set Authorization as False • CP accepts
• Start a charging session • Charging session started
• Perform 2 minutes of • CP stop the charging
power interruption session
• Boot Notification • Charging session should
start again

Page 10 of 17
2.3. Server Configuration
2.3.1. Change Availability
Verify charger respect availability configuration.

Preconditions
1. Charge status is Available.

Test Scenario

Perform Expected result Result & Severity


• Set EVSE 1 as • CP send Status Notification
unavailable with status Unavailable
• Set EVSE 2 as • CP send Status Notification
unavailable (if with status Unavailable
exists)
• Set all EVSE(s) as • CP send Status Notification
available with status Available

2.3.2. Remote Reset


Verify that the Charging Station gets restarted when sending the reset command.

Preconditions
1. Charging Station is connected to the Nayax Energy Core.

Test Scenario

Perform Expected result Result & Severity


• Start a charging • Charging session started
session
• Send Soft Reset • CP send Stop Transaction
• CP reset itself
• CP send Boot Notification
• Start a charging • Charging session started
session
• Send Hard Reset • CP reset itself
• CP send Boot Notification
• CP send Stop Transaction

Page 11 of 17
2.3.3. Trigger Message
Test the Trigger Message command.

Preconditions
1. Charging Station is connected to the Nayax Energy Core.

Test Scenario

Perform Expected result Result & Severity


• Send Trigger • CP accepts the request
Message to send • CP send Status
Status Notification for Connector 1
Notification for
Connector 1
• Send Trigger • CP accepts the request
Message to send • CP send Boot Notification
Boot Notification for Connector 1
for Connector 1
• Send Trigger • CP accepts the request
Message to send • CP send Heartbeat for
Heartbeat for Connector 1
Connector 1
• Send Trigger • CP accepts the request
Message to send • CP send Meter Values for
Meter Values for Connector 1
Connector 1

Page 12 of 17
2.3.4. Get Diagnostics
Test Get Diagnostics.

Preconditions
1. Charging Station is connected to the Nayax Energy Core.

Test Scenario

Perform Expected result Result & Severity


• Send Get • CP send Diagnostic Status
Diagnostics Notification messages
• File uploaded to the SFTP

2.3.5. Install Firmware Update


Upon firmware update command, CP download firmware from FTP and install it.

Preconditions
1. Charging Station is connected to the Hi Nayax Energy Core ve.

Test Scenario

Perform Expected result Result & Severity


• Send Firmware • CP send firmware
Update notifications:
o Downloading
o Downloaded
o Installing
o Installed
• CP reset and send Boot
Notification

Page 13 of 17
2.4. Working Offline
2.4.1. Lost Communication
Continue to work when communication is lost.

Preconditions
1. Charging Station is connected to the Nayax Energy Core.
2. RFID Card tarted a transaction in this charge station.
3. Set offline configuration.

Test Scenario

Perform Expected result Result & Severity


• Disconnect SIM / • Communication is lost
communication cable
from the charge station
• Present the RFID Card • Charge for predefined
• Connect the Connector 1 amount of electricity
• Store messages in the
CP queue
• Stop charging • Store messages in the
CP queue
• Resume communication • CP send all messages
stored in its queue
• The timestamp should
be of the operation
• Send massages in the
same order they
occurred
• Mandatory massages
are: Start, Stop, Status

Page 14 of 17
2.4.2. Clear Cache
If Cache Authorization is supported, check Clear Cache empty the cache.

Preconditions
1. Charging Station is connected to the Nayax Energy Core.
2. RFID Card started a transaction in this charge station.
3. Set Authorization Cache Enabled = True.

Test Scenario

Perform Expected result Result & Severity


• Present the RFID Card • RFID card is saved in
• Connect the Connector 1 CP cache
• Stop Transaction
• Disconnect SIM / • Communication is lost
communication cable
from the charge station
• Present the RFID Card • Charge should start
• Connect the Connector 1 until stopped by the
user
• Stop charging • Store messages in the
CP queue
• Resume communication • Same as in Lost
Communication test
• Send Clear Cache • CP saved configuration
• Disconnect SIM / • Communication is lost
communication cable
from the charge station
• Present the RFID Card • Charge should not start
• Connect the Connector 1

Page 15 of 17
2.5. Card Reader Integration
2.5.1. Pay with CC via Nayax Card Reader
The authorization should include the info this is Credit Card payment with Nayax Card
Reader.

Preconditions
1. Charging Station with VPOS Touch / Onyx integrated in Marshall.
2. Manufacturer implemented Credit Card payment logic:
2.1. Authorization and Start Transaction sends NAYAX_<Marshal Transaction Id>
instead of RFID.

Test Scenario

Perform Expected result Result & Severity


• Connect the • CP send Status Notification
Connector 1 with status Preparing
• Charging Station • Nayax Energy Core
sends understand it is credit card
Authorization with from NAYAX prefix and
NAYAX_<Marshal sends Accepted response
Transaction Id>
• Charging Station • Nayax Energy Core
sends Start understand it is credit card
Transaction for from NAYAX prefix and
connector 1 sends Accepted response
• CP send Status Notification
with status Charging
• Charging Station • Charging Session stopped
sends Stop • CP send Stop Transaction
Transaction for • CP send Status Notification
connector 1 with status Finishing,
Available, Preparing
• CP sends payment device to
perform payment
• Payment is seen in the DCS
• Disconnect the • CP send Status Notification
cable with status Available

Page 16 of 17
3. Test Summary

Page 17 of 17

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy