SQA Days 22 – Test Data Preparation: Tips and Tricks
Through a wide variety of mobile applications, we’ve developed a unique visual system and strategy that can be applied across the spectrum of available applications.
Performance is one of the main painful areas of the Selenium test. One of the most critical improvement points is Test Data creation and cleanup. In this talk, we will discuss how to create test data via HTTP requests and clean it after the test run.
Optimization of the Selenium suite is essential for us. In this talk, I will present how to create an HTTP requests builder to create and clean up test data after the Selenium test run. This will help you to prepare particular situation before logging into the web application via Selenium and testing the exact functionality you need. After the test run, the cleanup should be done again with an HTTP request to avoid performance issues and minimize flakiness for other tests in the suite.
In addition, I will also present how to use HTTP code to set up session cookies and make configurations, then extract cookies and pass them to Selenium, which will help to skip logging in from UI for every test.