Integration Tests

For POS and Access Systems (Issue and Redeem)

Configuration

Use Case

Expected Result

A different API key can be saved on each outlet

Yes

Redeem

Use Case

Expected Result

Enter an empty voucher code and try to redeem it

A proper message is shown

Enter the same voucher twice

The voucher can only be added once

For POS without a keyboard: Enter the voucher code with the virtual keyboard and redeem it

The code can be entered and the voucher can be redeemed

Read the barcode by using a barcode sanner and redeem it

The barcode can be entered and the voucher can be redeemed

Redeem a voucher when the order total is higher that the voucher amount

  • A further payment method(s) can be selected

  • The voucher is fully redeemed in e-guma

Redeem a voucher when the order total is smaller than the voucher amount

A part of the voucher is redeemed

Redeem 2 different vouchers in one order

Both vouchers can be redeemed

Use a voucher and pay the remaining amount with cash

The remaining amount is calculated correctly

Use a voucher and pay the remaining amount with a debit or credit card

The remaining amount is calculated correctly

Try to redeem a fully redeemed voucher

The user is notified that the voucher is already redeemed

Try to redeem a voucher with a wrong code

The user is notified that the voucher does not exist

Cancel an order paid by voucher

The amount of the voucher is the same as before the redemption

  • Install the voucher2mobile app

  • Add a voucher to your voucher2mobile account

  • Redeem the voucher with the ShortCode

  • The voucher is redeemed in e-guma

  • The 12 digit voucher code is saved in your database

  • The 12 digit voucher code is printed on the receipt

Depot Voucher

Use Case

Expected Result

Enter an empty voucher code an try to activate it

A proper message is shown

Sell a voucher

  • The voucher is added with the correct amount to the order

  • The voucher is added in e-guma as sold

Sell a voucher with free amount

  • The user is requested to enter an amount

  • The voucher is added with the entered amount to the order

  • The voucher is added in e-guma as sold with the entered amount

Sell the previous voucher a second time

  • No order line is added

  • The user is notified that the voucher is already activated

Try to add two times the same voucher

  • One voucher is added to the order

  • A message says that the entered voucher is already added

Sell 2 vouchers with the same amount

Both vouchers are added in e-guma as sold

Sell 2 vouchers with different amounts

Both vouchers are added in e-guma as sold

Sell a voucher that does not exist in e-guma

  • No order line is added

  • The user is notified that the voucher is not correct

The VAT for the order line is 0

Yes

Cancel a transaction with a depot voucher

The voucher appears as deleted in e-guma

Functions

Use Case

Expected Result

Check the balance of a valid voucher and print that information

The current balance ist displayed. A title (eg. "Voucher Balance" / "Gutscheinguthaben"), the code, the balance and the current date are printed.

Check the balance of a redeemed voucher

The user is notified that the voucher is already redeemed