Fast Test Suite CLI only works with Sandbox environment.
You will need to install Redis which is in charge of storing your API Access Token securely
macOS
# Downloads and starts Redis server
brew install redis
brew services start redis
Other platforms can navigate to https://redis.io/download for download instructions. NOTE: You will need to start the redis server in order for the CLI to work.
NOTE: If you are having SSL issues, you can use the flag --disable-ssl to disable ssl for that request.
Navigate to the folder of your operating system
i.e. if on Mac run cd macos
To login you will need the API key provided to you and your app id. This command will store your API key in a local file. Please use logout when finished to remove this file
./fast-test-suite login
Please enter your API access token: <api_token>
Please enter your app id: <app_id>
Logout will remove your API key from the filesystem. Run this once you are done using the CLI.
./fast-test-suite logout
./fast-test-suite pdp-simple-new-user --product-id=<product_id> --app-id=<app_id>
./fast-test-suite pdp-simple-existing-user --product-id=<product_id> --app-id=<app_id>
./fast-test-suite pdp-simple-full-suite --product-id=<product_id> --app-id=<app_id>
fast-test-suite refund-order --app-id=<app_id> --order-id=<order_id> --line-id=<line_id> --url=<url_if_custom>
Ensure your product_id that you list exists in your backend.
Error 61 connecting to localhost:6379. Connection refused.
If you see the error above, ensure your local Redis server is running and on port 6379.