Skip to content

gg-hsi/Payrails_QA_Tech_Challenge

Repository files navigation

QA Technical Challenge at Payrails

Manual Testcases

TestCase # Description Steps
1 Validate Market News TIME_SERIES_INTRADAY endpoint
Step #Description
1Enter the following parameters in Postman:
1- function:"TIME_SERIES_INTRADAY"
2- symbol:"AAPL"
3- interval:"1min"
4- apikey:"API_KEY"
Send the HTTP request
3Check that response code is 200
2Check that response is successfull and contains all
expected keys (check data structrue)
2 Validate Cryptocurrencies DIGITAL_CURRENCY_MONTHLY endpoint
Step #Description
1Enter the following parameters in Postman:
1- function:"DIGITAL_CURRENCY_MONTHLY"
2- symbol:"BTC"
3- market:"EUR"
4- apikey:"API_KEY"
Send the HTTP request
2Check that response code is 200
3Check that response is successfull and contains all
expected keys (check data structrue)
3 The endpoint DIGITAL_CURRENCY_MONTHLY should return an error when the parameter "symbol" is missing
Step #Description
1Enter the following parameters in Postman:
1- function:"DIGITAL_CURRENCY_MONTHLY"
2- market:"EUR"
3- apikey:"API_KEY"
Send the HTTP request
2Check that response code is 200
3Check that response contains the following JSON key:
"Error Message": "Invalid API call. Please retry
or visit the documentation
(https://www.alphavantage.co/documentation/)
for DIGITAL_CURRENCY_MONTHLY."

Automation

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

Getting Started

To install packages for the tests by running:

npm i

Set the environment variable

Create a .env file in the project folder containing the following:

TESTING_URL='https://www.alphavantage.co/query'
API_KEY='GENERATED_API_KEY'

Running unit test

To run tests for this project use:

npx playwright test

Github Actions

Tests can be also run in Github Actions

Modules used

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published