Learn how to run selenium parallel execution, take a screenshot of failed tests and save them to a Word document.
Taking screenshots of failed tests and saving them to a file is a breeze so long as you are running your tests sequentially. However, this can become challenging when you run your tests in parallel.
In such a case, you must take the proper steps to make your Selenium tests thread-safe.
This video tutorial will teach you how to use Java's synchronized keyword to support the taking of a screenshot during parallel execution.
You can find the source code on automateNow's GitHub page.
https://github.com/automatenow/genera...
😀 Subscribe for weekly videos! 👍
📑 CHAPTERS
0:00 ~ Intro
0:39 ~ Prerequisites For Parallel Execution
1:10 ~ Test Scenario
1:41 ~ onTestFailure() Method
2:23 ~ testng.xml File
3:13 ~ Synchronized Methods
5:05 ~ Outro
👩🎓 COURSES
☕ Java For Absolute Beginners https://bit.ly/learn-java2022
⏯ PLAYLISTS
☑️ Automation Fundamentals https://bit.ly/2QbN7qm
☑️ Automation Tools https://bit.ly/2OFj4qO
☑️ Cypress https://bit.ly/3f9qH2m
☑️ Extent Reports https://bit.ly/3nXlTSg
☑️ General WebDriver https://bit.ly/2Z3tG7y
☑️ Intro to WebDriver https://bit.ly/3gb5Jlx
☑️ Intermediate WebDriver https://bit.ly/2OBTR0r
☑️ Java https://bit.ly/3sBuI7M
☑️ Selenium 4 https://bit.ly/2VQ1lA9
☑️ Version Control https://bit.ly/3CvHplU
☑️ Web Element Locators https://bit.ly/2QfDGpK
📫 LET'S CONNECT!
☑️ https://linktr.ee/automateNow
Смотрите видео Selenium parallel execution | Take screenshot | automateNow онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал automateNow 07 Апрель 2022. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 828 раз и оно понравилось 20 посетителям.