Soft Assertion in TestNG in Selenium Webdriver || Soft Assert vs Hard Assert in TestNG

  Рет қаралды 79,506

Naveen AutomationLabs

Naveen AutomationLabs

Күн бұрын

Soft Assert vs Hard Assert in TestNG:
+hard assertion: hard validation: if a hard assertion is getting failed: immediately test case will me marked as failed and test case will be terminated.
+soft assertion : soft validation: if a soft assertion is getting failed: test case will not be marked as passed as well as next lines will be executed
+assertAll() : is used to mark the test case as failed, if any soft assertion is getting failed
====================================================
Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
kzfaq.info%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion:
t.me/joinchat/COJqZQ4enmEt4JA... Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
kzfaq.info%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/COJqZUPB02r5sB7...
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautomationlabs.com/p...
API Course: www.naveenautomationlabs.com/p... ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautomationlabs.com/p...
API Course: www.naveenautomationlabs.com/p...
-------------------------------
✔️SOCIAL NETWORKS
Facebook: / naveenqtpexpert
Twitter: / naveenkhunteta
Blog: www.naveenautomationlabs.com
--------------------------------
Support My Channel✔️Or Buy Me A Coffee
Paypal: paypal.me/naveenkhunteta
Google Pay: naveenanimation20@gmail.com
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة

Пікірлер: 43
@sammy22391
@sammy22391 5 жыл бұрын
Thank you so much naveen ur really savior !!.! i was working on tis assertion for few days never got that resolution!!! thanks a ton.... you have explained it very beautifully...... I must say ur definitely a boon for the people who were struggling to learn automation using selenium... thanks a ton ....
@ashwinikhanna
@ashwinikhanna 22 күн бұрын
Excellent explanation. Understood both the Assert types very well!
@Sharmams4
@Sharmams4 8 ай бұрын
Hard assertions & Soft assertions - Very nicely explained with practical example. I like to use hard assertions more because of its benefits more. Thanks!
@sarikabiwalkar4037
@sarikabiwalkar4037 6 жыл бұрын
Clear and concise explanation. Thanks for sharing Naveen!
@NarasimhaYadav7019
@NarasimhaYadav7019 5 жыл бұрын
Thank you Naveen ... Really going through your videos are making me confident day by day ... Thanks a ton for your hard work you are putting to help us ... Great help .. Naveen ..
@jahangirkhan8019
@jahangirkhan8019 6 жыл бұрын
Naveen bhai I am from Bangladesh. I watch your every single videos. Your explanation is awesome.thank you bhai keep making new videos about selenium
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
Mohammed Hossain thanks for watching bhai
@bsrinivas165
@bsrinivas165 6 жыл бұрын
Awesome explanation... Keep up the great work 👏👏💐💐
@deepakrai5175
@deepakrai5175 Жыл бұрын
Thanks Naveen for such a wonderful explanation of the assertions !
@saribshamim9876
@saribshamim9876 2 жыл бұрын
Great explanation! keep it up. I couldn't find this information on the internet properly.
@reshmapn7941
@reshmapn7941 2 жыл бұрын
Awesome explanation sir Thank you.
@shrutikachanne8712
@shrutikachanne8712 2 ай бұрын
Very nice explanation
@rashmiambedkar5143
@rashmiambedkar5143 6 жыл бұрын
Awesome Explanation!!!!
@ghulamanosh5564
@ghulamanosh5564 4 жыл бұрын
Really clear and straight forword
@A_philodendron
@A_philodendron 4 жыл бұрын
Beautifully explained!
@nordic-i
@nordic-i 3 жыл бұрын
thanks naveen, its great
@Mariankurossu
@Mariankurossu 4 жыл бұрын
Thank you so very much!
@sanjuk2484
@sanjuk2484 3 жыл бұрын
I love your vedios naveen... Thank you
@remaremo3981
@remaremo3981 4 жыл бұрын
Awesome
@srinivas9086
@srinivas9086 5 жыл бұрын
thank you sir
@priyankak126
@priyankak126 5 жыл бұрын
Hi Naveen, Thank you so much for posting such incredible and simple videos. Could you please post a detailed video on how to debug an error on selenium using the debugger. As an automation engineer you also need to debug your error whenever there is an exception(such as null pointer exception, class not found) in the output console. I am new to automation and finding it difficult to debug my code as I don't have any error in my Java file and feel what I have written is correct.
@hamedaziz5293
@hamedaziz5293 5 жыл бұрын
Thanks
@swethaputti
@swethaputti 3 жыл бұрын
Awesome, Thank you.
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
You're welcome!
@hemanth859
@hemanth859 6 жыл бұрын
Hi Naveen Can u make a Video Regarding Merging two or Three Data Providers,SO that it Should data From Excel Sheet.it will be veryHelp ful Naveen Thankyou
@learnvik
@learnvik 6 жыл бұрын
Hi Naveen, I found that the soft assertions has some issues when using with @dataproviders iterations, if a softassertion fails in first iteration, it doesn't pass the next iteration and fail the next iteration at the same step, not sure what is missing. But in case soft assertion passes in first iteration, the second iteration also gets passed.
@venkatprasad4087
@venkatprasad4087 6 жыл бұрын
Hi Naveen Thanks for sharing the knowledge . I have a query , in this video for teardown method , can we use @Aftermethod or @aftertest annotation instead of @afterclass to mark all test as failed if assertion fails
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
hi Venkat: no with @aftertest and @aftermethod also, It will be the same problem. As we are creating a global class object for SoftAssert class.
@venkatprasad4087
@venkatprasad4087 6 жыл бұрын
Thanks for the quick reply
@soundaryasoudi1134
@soundaryasoudi1134 3 жыл бұрын
Hi Naveen, please upload videos for Rest Assured Testing With Test NG and Java
@rakeshjaiswal4675
@rakeshjaiswal4675 4 жыл бұрын
11:32 soft assertion
@sridhattasharanamnamami934
@sridhattasharanamnamami934 5 жыл бұрын
Naveen can you please tell me how to use assert and verify with different set of valid and invalid data
@merlinelizabethmathew982
@merlinelizabethmathew982 4 жыл бұрын
Could you please explain the difference between Verify() and Soft Assert() methods, and where to use these 2 methods?
@burritoinspace.
@burritoinspace. 6 жыл бұрын
Hello, I am writing a script in which I need to enter a website and verify all links (by clicking on each link and verifying if elements are displayed) from that website. How can I use SoftAssert at each link?
@sriharshamishra5167
@sriharshamishra5167 4 жыл бұрын
Pls share the related playlist
@prajaktawalhekar9601
@prajaktawalhekar9601 3 жыл бұрын
How should i validate the stored string which i entered before and then verify it later?
@ashwinik479
@ashwinik479 5 жыл бұрын
Hi. How we can check two condition with single softassert?
@KrishnaSingh-vy1us
@KrishnaSingh-vy1us 4 жыл бұрын
Hello Sir, can u make videos on database tesing
@venubabugamidi9541
@venubabugamidi9541 6 жыл бұрын
Hi Naveen Sir I'd like to learn Selenium Frameworks Which Framework is better and easy to these Frameworks 1) Data driven 2) Keyword Driven 3) POM 4) POM with Page factory 5) Hybrid 6) TestNg And Which one is the mostly used in realtime? please answer this one....? Thank you.....
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
+venu babu Gamidi pom with page factory pattern with data driven approach using testng.
@kushalmandal
@kushalmandal 2 жыл бұрын
there are three test cases(@Test) and 2 are fail due to assertion then its shows only 1 in result
@ManishYadav-in7ml
@ManishYadav-in7ml 4 жыл бұрын
Thanks
Taking ScreenShot ONLY for Failed Tests in Selenium using TestNG Listener
32:12
Naveen AutomationLabs
Рет қаралды 116 М.
@Parameters in TestNg: How to pass parameter from testing.xml
26:39
Naveen AutomationLabs
Рет қаралды 176 М.
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 9 МЛН
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 36 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 211 МЛН
TestNG Tutorial #5 - Soft Assertion in TestNG | SoftAssert vs HardAssert
14:33
Software Testing Mentor
Рет қаралды 33 М.
Mastering Parallel Execution: Overcoming Challenges in Selenium Testing || TestNG
22:06
PrinceAutomationDestination
Рет қаралды 2,8 М.
How to use Assertion in Selenium TestNG
15:21
Mukesh otwani
Рет қаралды 146 М.
How to Implement TestNG listeners in Selenium Webdriver
24:22
Mukesh otwani
Рет қаралды 152 М.
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 6 МЛН
Kumanda İle Bilgisayarı Yönetmek #shorts
0:29
Osman Kabadayı
Рет қаралды 2,4 МЛН