Нас часто спрашивают: Сколько нужно времени на тестирование? Правильный ответ должен быть таким - минуты. Именно минуты, а не десятки минут, часов или дней… Такого результата от нас ждёт бизнес и разработчики. В своём докладе я хочу рассказать о практических приёмах, как я ускорял тесты.
5. My project
5
# Order API
# 1,5K tests
# Releases every day
# 2 showroom -> 6 staging -> live
# Testing should be fast < 10 minutes
6. Tests accelerating
6
# Precondition
# Prepare your stuff before
# Speed vs Coverage
# Get more resources
# Make slow fast
# UI Testing
# Hand Helper
# https://www.slideshare.net/alimenkou/how-to-make-your-functional-tests-really-quick
# https://www.slideshare.net/VLDCORP/sqa15 - Badoo
36. Do not use x-path locators
36
driver.find_element_by_xpath('//*[contains(@class, "header__links-bar")]')
driver.find_element_by_xpath('//div[contains(@class, "header__links-bar")]')
driver.find_element_by_id('links-bar-id')