Skip to content

fast-af/fast-test-suite-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fast Test Suite CLI

Fast Test Suite CLI only works with Sandbox environment.

Prerequisites

Redis

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.

Usage

NOTE: If you are having SSL issues, you can use the flag --disable-ssl to disable ssl for that request.

Find your distribution

Navigate to the folder of your operating system
i.e. if on Mac run cd macos

Login

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

Logout will remove your API key from the filesystem. Run this once you are done using the CLI.

./fast-test-suite logout

PDP Simple New User

./fast-test-suite pdp-simple-new-user --product-id=<product_id> --app-id=<app_id>

PDP Simple Existing User

./fast-test-suite pdp-simple-existing-user --product-id=<product_id> --app-id=<app_id>

PDP Simple Full Suite

./fast-test-suite pdp-simple-full-suite --product-id=<product_id> --app-id=<app_id>

Seller->Fast Refund Order

fast-test-suite refund-order --app-id=<app_id> --order-id=<order_id> --line-id=<line_id> --url=<url_if_custom>

Common Issues

Initiate Checkout Stage fails

Ensure your product_id that you list exists in your backend.

Redis Connection Issue

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published