No More manual test cases or automated test cases required. 100% exhaustive test coverage, by using it before and after code change, for all user interactions captured as actions.
- go to chrome://extensions/
- Switch to Developer mode form top-right corner
- click "Load unpacked" button and upload extension folder "regression-tool". After this, an icon will appear on browser's top extension bar.
- choose any flow flow to test.
- write sequential actions in actions.js, defining the sequence of actions. eg, sequential actions, might be:
- click any of the check boxes(#1, #2..) and then press button, giving a unique id to every constituent sub-action.
- click any of the radio buttons(#1, #2..) which appear and then press some button
Note: in local storage: iter variable tracks the test case no. and snapshots variable tracks snapshots for all test cases.
- in actions.js, set takeSnapshots as "true" and iter as -1 in localstorage.
- refresh chrome extension and let snapshots get captured.
After code change, to run regression:
- in actions.js, set takeSnapshots as "false" and iter as -1 in localstorage.
- refresh chrome extension and let the tool diff, new snapshots against old snapshots and log in diff.html file, once it finishes, the report-diff.html will download.
Now, we can overlook deliberate changes and correct un-intentional changes.