Local environment setup
When you are developing a new Browser Test scenario, instead of writing Javascript code directly in the browser window, you can create the script using your favorite IDE and execute the script from your local environment before setting it up for monitoring in DevRaven.
Guided setup video
The following video guides you through the setup process.
Repository
The git repository is located at https://github.com/devraven-io/synthetic-test-local.
Refer README for setup instructions.
Your test scenario
The git repository already has an example test defined in test.js
Change the content in test.js specific to your test scenario and run locally.
Once you are done with the changes for your test scenario, copy the code in test.js and create a new Browser Test in DevRaven using the code.
Environment variables
If your test case leverages Environment variables, update envVars.js file to expose your environment variables you can use in your test.
Properties defined in envVar.js object are accessible via process.env.variableName.
The video uses an Ubuntu environment for guiding through the process. If you use any other Operating Systems, refer Node and Playwright setup documentation for setup instructions if you run into any issues during the setup process.