Demonstrates the workflow of SpeedLab APIs
- Inside node directory:
npm install
- In
config.js
replacebrowserstack_access_key
withYOUR_USERNAME
andbrowserstack_selenium_key
withYOUR_ACCESS_KEY
- To run the test:
node index.js [TEST_URL]
- You will get a
job_id
from this script. Add it inconfig.js
- To see the report status and result, run
node get_report.js
after some time ( ~60 seconds). Make sure you add the correctjob_id
inconfig.js
to get proper results.
- Import
speedlab-api.postman_collection.json
in your postman - Under
SpeedlabAPI.Authorization
replacebrowserstack_access_key
withYOUR_USERNAME
andbrowserstack_selenium_key
withYOUR_ACCESS_KEY
- Now you can access all the endpoints
- Make sure to update the
PathVariables.id
wherever required with the relevantreport_id
that you get fromPOST: /generate
endpoint