Chrome Recorder is a chrome extension that can record the user interactions, take screenshots and replay the actions. Chrome Recorder also can mock XHR calls with a HAR file
You can install the extension via Chrome web store. After the installation, please restart the Chrome then you can launch this extension and upload the sample test - getbootstrap.json by clicking Open Test Cast JSON button and click Run test button to run the test.
Open Test Cast JSON : Browse a test cast JSON file and upload the file
Save Test Cast JSON : Save the test cast JSON file
Chrome Recorder now can only record clicks, inputs and document level scroll events
Now the extension will capture click, input the document level scroll events. You can click Capture screenshot alt + shift + c to take a screenshot as a checking point of the testing case.
In case of that the click event handler stops the default browser behavior, the Chrome Recorder cannot receive the click event. You can turn on the cursor position by clicking View cursor alt + shift + v . Now the Chrome Record can capture the click event, however it will not trigger the actual click event. You need to click View cursor alt + shift + v again to turn it off and click the element.
Click Run test to run the test in a new window. You can stop the test by clicking Stop test at any time
Click Clean test results to erase the test results.
Open HAR : Browse a HAR file and upload the file.
You can click to filter the HAR file
You can use Chrome Developer tools To get the HAR: Bring up Chrome Developer tools, click Network, right click and select Save as HAR with content
Save HAR : Save the HAR file
During the XHR mock, the tool will find the response in the HAR by the request method, url and parameters. You can sepecify some parameter exceptions here (separate by ,) that will be omitted.
Click Start xhr mock to start the XHR mock. The tool starts to check all the xhr requests. If the request method, url and parameters are matched with an entry in the XHR file, the response will be replaced by the response content of this entry.
Stop xhr mock