Record and Replay, otherwise known as codeless automation, is a way to run tests without programming knowledge. This is done using a tool, like CodeParrot, that allows you to record requests coming to your service. You can then take this and rerun it with a click, making regression testing infinitely faster.
Record and Replay is the lightweight solution for test automation. The value is the most prominent for teams that are still transitioning from mostly manual testing to include some automation in order to speed up testing and help integrate it earlier in the software development lifecycle.
We'll use the repository https://github.com/Code-Parrot-ai/codeparrot-examples/ for this article. This repository shows example of using CodeParrot for nodejs language with express framework.
git clone https://github.com/Code-Parrot-ai/codeparrot-examples.git cd nodejs-express npm i
Run the npm 'record' script, all requests coming to this service will be recorded.
npm run record
Close the script. You can now go to dashboard to generate unique requests on the dashboard https://dashboard.codeparrot.ai/dashboard . Select your service and click on "Regenerate Unique Requests". You would be able to see number of unique requests.
Ideal way to run replay is through Github CI App, but can be run on local machine using the 'replay' script
npm run replay
You would be able to see link of change report in the log, like
Report will be available at: https://email@example.com/demo-calc-app/a60fbb9
Report might take upto a minute to generate, refresh page if needed.