This folder contains the files that are needed for the integration test of a Supplychain Application on a Corda or Fabric network that has been created using Hyperledger Bevel.
- A DLT network with at least 3 participants: Manufacturer, Carrier and Warehouse. Built using Hyperledger Bevel by following these instructions.
- The Supplychain Application is deployed and the API endpoints are accessible.
-
Edit the environment files
SupplychainDemoCorda.postman_environment.json
orSupplychainDemoFabric.postman_environment.json
according to your test environment and save it. -
Click "Import", select "Import Folder" and browse to the folder
examples/supplychain-app/tests
and import it. This will import the "SupplyChainTest" collection and the environments. -
Click "Runner" from Postman main screen. Select "SupplyChainTest" as the collection and your environment in the "Environment" dropdown and click "Run SupplyChainTest" button.
This is applicable for automation using a CI tool.
-
Install newman using
npm install -g newman
. Please note that npm should be installed before this command is run. -
Execute the following command with an environment file
cd examples/supplychain-app/tests
newman run -k SupplyChainTest.postman_collection.json -e SupplychainDemoCorda.postman_environment.json