Skip to content

Commit

Permalink
Merge pull request #72 from extrawest/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
khudolii-yevhenii-ew authored Mar 17, 2023
2 parents 38f46d4 + 56efcc9 commit dfbd6ea
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,15 @@ Operations Initiated by Central System:
- Unlock Connector
- Update Firmware

## Usage

To use this application, you can modify the Cucumber scenarios in the 'src/test/resources/features' directory to fit your testing needs. You can also add new steps in the 'src/test/java/com/extrawest/jsonserver/cucumberglue' directory.

## Installation

Install 1/2: Add this to pom.xml:

```
<dependency>
<groupId>io.github.extrawest</groupId>
<groupId>com.extrawest</groupId>
<artifactId>bdd-charge-point-tester-via-ocpp-j</artifactId>
<version>0.1.1</version>
<version>0.1.2</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>io.github.extrawest</groupId>
<groupId>com.extrawest</groupId>
<artifactId>bdd-charge-point-tester-via-ocpp-j</artifactId>
<version>0.1.2</version>

Expand Down
23 changes: 23 additions & 0 deletions src/test/resources/features/BootNotificationAndMeterValues.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Feature:

Scenario: The Central System receives "BootNotification.req", confirms it, and then receives "MeterValues.req" from Charge Point
Given the Central System is started on "localhost"
Given the Charge Point is connected
Given the Central System must receive "BootNotification.req" with given data
| chargePointModel | any |
| chargePointVendor | any |
| chargePointSerialNumber | any |
| firmwareVersion | any |
| iccid | any |
| imsi | any |
| meterSerialNumber | any |
| meterType | any |
Given the Central System must send confirmation response with given data
| currentTime | any |
| interval | 60 |
| status | Accepted |
When the Central System must receive "MeterValues.req" with given data
| connectorId | any |
| meterValue | [{"timestamp":"2023-02-23T10:01:08Z","sampledValue":[{"value":"1000","context":"Transaction.Begin","format":"Raw","measurand":"Energy.Active.Import.Register","phase":null,"location":"Outlet","unit":"Wh"}]}] |
| transactionId | any |
Then the Central System must send confirmation response

0 comments on commit dfbd6ea

Please sign in to comment.