Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Make Your Selenium Suite Faster and Reliable: T...

Make Your Selenium Suite Faster and Reliable: Test Setup with REST APIs

Performance is one of the main painful areas of Selenium suits. Usually, engineers trying to login, logout, navigate, create data, execute an action from the UI via Selenium, then, in the end, performing test assertions. This creates serious performance issue for the Selenium suite and makes Selenium tests more brittle. Also, the problem solution could be better if the test data creation and deletion also will be done before Selenium will open the browser. This will help to create independent tests later to be able to run them in parallel.

Sargis Sargsyan

May 25, 2018
Tweet

More Decks by Sargis Sargsyan

Other Decks in Technology

Transcript

  1. s How to design the framework to be able to

    use HTTP requests q How to create Test Data before test and clean up after test without UI actions w How to store login create/edit/delete objects without UI actions Best practices of Selenium WebDriver h Practical example how to use HTTP lib from the Java code 7 Maintaining HTTP responses Ö Main Topics
  2. What is Test Setup? Why is it Important? [ A

    single Selenium test should test one and only thing. A bug in another part of the application that is not exactly related to the test should not cause the test to fail. L Every test should be independent. The test outcome should not affected by another test in the suite. Make a faster tests. As quicker test suite as much useful it is. s n Every test should create and clean the data before and the after the test run.
  3. Why should test data be created before test execution? Ĥ

    E 7 a Selenium tests often involve setups. Only after doing those things you are ready to assert on some aspect of the website Sign Up / Login Submissions Pages Navigation Interactions / Actions å Test Run