I know it may sound weird, but I totally LOVE IT that I can hear a black man with an accent that I typically hear in some gangster movies, some yt "rap" videos or videos about poor black neighbourhoods, and I hear him talking about something really useful and in a tactful manner. Dispels any negative stereotypes one could have! And on top of that the video is really informative. Huge kudos to you man :)
The complete session is extremely good and explained in easy and detailed way. The only suggestion is that if we use Selenium 4 version, in that case when we use POM, I had to pass the locators in String format instead of *locator parameter(By.XPAT="xpath") because when it passes to the base class it converts as xpath="//input[@id='"email_input"]. So it gives error. Rest of the lecture is extremally good. Thanks a lot.
Thanks to you for this tutorial. It has a huge value for me, because i have never seen such great tutorials about pytest in youtube before. (sorry for my English, i just beginner in it)
@@LambdaTest 'yield' is deprecated in the current version of python. is there any alternate for this ? because when i try to run my two test functions, test 1 is passed and test 2 is failed by throwing an error of "InvalidSessionID Exception".
i somehow solved the issue by only removing the driver.close(). When i googled i found that if we are getting InValidSessionID exception we need to avoid using driver.quit() or driver.close() .
Hey there, Soft assertions in Pytest and try-except blocks in Python have similar purposes but differ in their application: Soft Assert in Pytest: Allows multiple asserts in a test, collecting all failures to report at the end, without stopping the test when an assert fails. Try-Except Block: A general error-handling construct that catches and handles exceptions, allowing the continuation of code execution, but it doesn't perform assertions. While both can continue execution after an error, soft assertions are specifically for testing multiple conditions in a test, whereas try-except is for broader error handling without inherent testing assertions.
📌 𝐆𝐢𝐭𝐇𝐮𝐛 𝐋𝐢𝐧𝐤: github.com/RexJonesII/PytestTutorials
I know it may sound weird, but I totally LOVE IT that I can hear a black man with an accent that I typically hear in some gangster movies, some yt "rap" videos or videos about poor black neighbourhoods, and I hear him talking about something really useful and in a tactful manner. Dispels any negative stereotypes one could have! And on top of that the video is really informative. Huge kudos to you man :)
The complete session is extremely good and explained in easy and detailed way. The only suggestion is that if we use Selenium 4 version, in that case when we use POM, I had to pass the locators in String format instead of *locator parameter(By.XPAT="xpath") because when it passes to the base class it converts as xpath="//input[@id='"email_input"]. So it gives error. Rest of the lecture is extremally good. Thanks a lot.
Your note on passing locators in a string format with Selenium 4 will undoubtedly benefit many. Thanks again, and happy testing!
Highly appreciate your educational series, would be AWSEOME to have a tutorial from you on running Pytest modules in Jenkins
Glad you liked it!
Thanks for the suggestion will surely come-up with it super soon
Please subscribe to our UA-cam channel for more such videos 🌟
Thanks to you for this tutorial. It has a huge value for me, because i have never seen such great tutorials about pytest in youtube before. (sorry for my English, i just beginner in it)
Thanks for watching!
Subscribe, and look forward to more such tutorials! ✨
гарна аватарка
Love this tutorial! thank you for sharing your knowledge!
Glad it was helpful!
Please subscribe to the channel for more such tutorials🌟
we want more PythonSelenium And Pytest videos from you Sir ! Thanks a lot.
Glad it was helpful.
Your feedback matters, will surely come up with more such tutorials!
@@LambdaTest 'yield' is deprecated in the current version of python. is there any alternate for this ? because when i try to run my two test functions, test 1 is passed and test 2 is failed by throwing an error of "InvalidSessionID Exception".
i somehow solved the issue by only removing the driver.close(). When i googled i found that if we are getting InValidSessionID exception we need to avoid using driver.quit() or driver.close() .
Glad it was resolved. Thanks for reaching out!
Does the soft assert in Pytest equal to the Python try-except block similarly where it kinda raises error but continues to run other tests?
Hey there,
Soft assertions in Pytest and try-except blocks in Python have similar purposes but differ in their application:
Soft Assert in Pytest: Allows multiple asserts in a test, collecting all failures to report at the end, without stopping the test when an assert fails.
Try-Except Block: A general error-handling construct that catches and handles exceptions, allowing the continuation of code execution, but it doesn't perform assertions.
While both can continue execution after an error, soft assertions are specifically for testing multiple conditions in a test, whereas try-except is for broader error handling without inherent testing assertions.