Demonstrates the workflow of SpeedLab APIs
- Inside node directory:
npm install - In
config.jsreplacebrowserstack_access_keywithYOUR_USERNAMEandbrowserstack_selenium_keywithYOUR_ACCESS_KEY - To run the test:
node index.js [TEST_URL] - You will get a
job_idfrom this script. Add it inconfig.js - To see the report status and result, run
node get_report.jsafter some time ( ~60 seconds). Make sure you add the correctjob_idinconfig.jsto get proper results.
- Import
speedlab-api.postman_collection.jsonin your postman - Under
SpeedlabAPI.Authorizationreplacebrowserstack_access_keywithYOUR_USERNAMEandbrowserstack_selenium_keywithYOUR_ACCESS_KEY - Now you can access all the endpoints
- Make sure to update the
PathVariables.idwherever required with the relevantreport_idthat you get fromPOST: /generateendpoint