The is a short demo of converting a Selenium test to a Loadmill API test using the har-recorder package.
The har-recorder npm module is using the Chrome DevTools Protocol. (Controlled by chrome-remote-interface) to capture Fatch events from Chrome.
The example test for converstion, is a small but flaky test which creates a random post on our demo Ghost blog.
- clone this repository with
git clone https://github.com/loadmill/selenium-demo.git
- Install its dependencies by running
npm install
- To run the example test by running
npm test
- The network recording will be saved to
create-blog-post.har
in the root folder of the project. - Login to Loadmill, and create a new API test suite.
- Upload the recording and run it as an API test.