TestCase # | Description | Steps | ||||||||
1 | Validate Market News TIME_SERIES_INTRADAY endpoint |
|
||||||||
2 | Validate Cryptocurrencies DIGITAL_CURRENCY_MONTHLY endpoint |
|
||||||||
3 | The endpoint DIGITAL_CURRENCY_MONTHLY should return an error when the parameter "symbol" is missing |
|
All the above tests were automated (check folder 'tests'):
| tests/
|--- alphavantage/
|------ api-digital-currency-monthly.spec.ts
|------ api-time-series-intraday.spec.ts
All data files are in the folder 'data':
| data/
|--- digital_currency.json
|--- intraday.json
To install packages for the tests by running:
npm i
Create a .env file in the project folder containing the following:
TESTING_URL='https://www.alphavantage.co/query'
API_KEY='GENERATED_API_KEY'
To run tests for this project use:
npx playwright test
Tests can be also run in Github Actions