Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1.14 KB

README.md

File metadata and controls

20 lines (13 loc) · 1.14 KB

Convert Flaky UI Tests to Blazing Fast API Tests

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 converted test

The example test for converstion, is a small but flaky test which creates a random post on our demo Ghost blog.

How to run this?

  • 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.