- Set username and password of your infura account in the package.json run task (line 9)
From terminal run:
yarn install
yarn test1
(headless browser) ORyarn test1:debug
to see the browser in debug mode
- Install K6 on your machine
https://k6.io/docs/getting-started/installation/
- Set
projectId
andprojectSecret
variables inrateLimitResponseFormat.test.js (lines 10,11)
- FYI: atm this test is only focused on the daily rate limit check for the free tier account (100K req/day limit) - Test duration is set to 5m to make sure that the test reaches the 100K daily/request limit
- from terminal at root level run
k6 run rateLimitResponseFormat.test.js
oryarn test2
- Ideally with an unlimited account create a new test to verify rate limit in normal conditions (traffic bottleneck when req. load is too high, compared to the requests daily limit covered by prev test)