Skip to content

loadmill/selenium-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Loadmill Selenium conversion demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published