Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This capture mode requires a call to the capture endpoint. These calls are managed by the Axepta - Capture Orders jobOrders job. This job runs on Axepta orders having a “SHIPPED” status, and not being captured.It  It then makes a call to the axepta.capture service on these commands . If the feedback is positive, the order is marked as Captured and PAID.


Testing

Unit tests

Integration tests

Configuration

...

The test cases are built to cover both the storefront functionality, from an end-customer’s point of view, as well as business manager functionality, from a merchant’s perspective. 

Please refer also to section 2 – Component Overview : Use cases for more samples

Axepta has been tested with :

  • SFRA version 5.3.0
  • Sitegenesis 104.1.3
  • SFCC API version up to 22.10

Unit tests

A set of unit tests is available for the different helpers used. They are written with the chai plugin. In order to run the tests, you have to run the npm run test command :  npm run test:integration --baseUrl {{yourDomainUrl}}

In Order to run unit tests run the following command : npm run test

The result must be 15 passing

Integration tests

In addition to unit tests, a set of integration tests are also present on the SFRA and SiteGenesis cartridge. These are based on the codeceptjs plugin with its TestCafe driver

Configuration

To be able to run the different tests, it is necessary to configure a sandbox on which to run the tests.
To do this, open the int_axepta_sfra / test / integration / config.js file :
In this file, modify the following lines:
Storefront: {
url: '<https://YOURSANDBOX/s/RefArch/home?lang=fr_FR',>
baseUrl: '<https://YOURSANDBOX',> // BASE URL
login: '/on/demandware.store/Sites-RefArch-Site/fr_FR/Checkout-Login' // Checkout
login page,
},
Customer: {
email: '', // YOUR TEST CUSTOMER EMAIL
password: '' // YOUR TEST CUSTOMER PASSWORD
}
With SiteGenesis, open int_axepta_sitegenesis / test / integration / config.js file :
Storefront: {
baseUrl: 'YOUR-SANDBOX-URL/on/demandware.store/Sites-SiteGenesis-Site/'
},
Customer: {
email: 'TEST-EMAIL',
password: 'PASSWORD'
},

Launch of tests

Then, 2 commands are available, each for a different integration mode.

  • Redirection mode

For this mode, you must first set the integration mode preference to redirect Then, the npm run testint:redirect (SFRA) or npm run testintsg:redirect (SiteGenesis) command is used to run the tests for the redirect mode.

The tests for this mode are available in the file int_axepta_sfra/test/integration/tests/Checkout_Redirect_test.js or int_axepta_sitegenesis/test/integration/tests/Checkout_Redirect_test.js

  • Iframe mode

For this one, you must set the integration mode preference on iframe Then, the npm run testint:iframe or npm run testintsg:iframe (SiteGenesis) command is used to run the tests for the redirect mode.

The tests for this mode are available in the file int_axepta_sfra/test/integration/tests/Checkout_Iframe_test.js or int_axepta_sitegenesis/test/integration/tests/Checkout_Iframe_test.js

Operations, Maintenance

Data Storage

...