The main idea of the sdk test can be described by next img:
|-----------------|--|
| test-xxx.xml |A |
|-----------------|N |
|test-scenario.xml|T |
|--------------------|
|
v
|--------------------|
| XXX-sdk-examples |
|--------------------|
|
v
|--------------------|
| XXX-sdk |
|--------------------|
|
v
|--------------------|
|Hyperwallet REST API|
|--------------------|
Prerequisites: docker should be installed.
- create image:
docker build -t hyperwallet/test .
- run container and attach to it:
docker run -it --name test hyperwallet/test
- run test for XXX platform (where XXX is one of java|node):
cd app
ant -f test-XXX.xml -Dhw.username=??? -Dhw.password=??? -Dhw.programToken=???
- BUILD SUCCESSFUL - a sign that the test passed successfully