This repository contains acceptance tests for the eWallet SDK written using Robot Framework
Python 3.7 is required to run the tests.
Pipenv is required in order to install the dependencies
The tests rely on test data inserted in a clean instance of the eWallet SDK. Required data can be seeded following these instructions.
You first need to tell pipenv
to use python 3.7. You can do this with the following command:
pipenv --python 3.7
Note: If you're running MacOs, you will need to specify the following environment variables:
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
You can then install the dependencies using:
pipenv install
And finally, navigate to the tests
folder and run robot
cd tests
pipenv run robot .
There are some environment variables that need to be created in order to run the tests:
E2E_HTTP_HOST
: The base HTTP URL of the eWallet SDK (ie: http://example.com)E2E_SOCKET_HOST
: The base socket URL of the eWallet SDK (ie: ws://example.com)
The following variables define the email/password of the 2 needed admins and the user. They can be defined before seeding the test data in the eWallet using these environment variables
E2E_TEST_ADMIN_EMAIL
E2E_TEST_ADMIN_PASSWORD
E2E_TEST_ADMIN_1_EMAIL
E2E_TEST_ADMIN_1_PASSWORD
E2E_TEST_USER_EMAIL
E2E_TEST_USER_PASSWORD
Also note that the tested eWallet needs to have a proper GCS and AWS config setup.