Русские видео

Сейчас в тренде

Иностранные видео




Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



How to take screenshot of failed test cases in Selenium

Learn how to take a screenshot of failed test cases in Selenium. TestNG offers an interface called ITestListener, we can use a method called onTestFailure() within this interface in order to take a screenshot of failed tests. This video will show you how to implement this method. 👨‍💻Learn Selenium like a pro with our highly-rated courses! 👉 https://bit.ly/3YpjIbz 📑 CHAPTERS 0:00 ~ Why taking screenshots of failed tests is useful 0:14 ~ Add a utilities package and class 0:56 ~ Implement ITestListener methods 1:58 ~ Create directory to store screenshots 2:19 ~ Implement onTestFailure() method 3:03 ~ Run a test that takes a screenshot 5:43 ~ Add the failed test to the screeshot file name 7:19 ~ Explaining onTestStart() method

Comments