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

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

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
شكرا للمشاهدة

Пікірлер: 42
@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 ....
@sarikabiwalkar4037
@sarikabiwalkar4037 6 жыл бұрын
Clear and concise explanation. Thanks for sharing Naveen!
@bsrinivas165
@bsrinivas165 6 жыл бұрын
Awesome explanation... Keep up the great work 👏👏💐💐
@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!
@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 ..
@rashmiambedkar5143
@rashmiambedkar5143 6 жыл бұрын
Awesome Explanation!!!!
@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
@ghulamanosh5564
@ghulamanosh5564 4 жыл бұрын
Really clear and straight forword
@A_philodendron
@A_philodendron 4 жыл бұрын
Beautifully explained!
@shrutikachanne8712
@shrutikachanne8712 Ай бұрын
Very nice explanation
@reshmapn7941
@reshmapn7941 2 жыл бұрын
Awesome explanation sir Thank you.
@saribshamim9876
@saribshamim9876 2 жыл бұрын
Great explanation! keep it up. I couldn't find this information on the internet properly.
@deepakrai5175
@deepakrai5175 Жыл бұрын
Thanks Naveen for such a wonderful explanation of the assertions !
@remaremo3981
@remaremo3981 4 жыл бұрын
Awesome
@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.
@learnvik
@learnvik 5 жыл бұрын
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.
@sridhattasharanamnamami934
@sridhattasharanamnamami934 5 жыл бұрын
Naveen can you please tell me how to use assert and verify with different set of valid and invalid data
@CKJ7
@CKJ7 3 жыл бұрын
thanks naveen, its great
@sanjuk2484
@sanjuk2484 3 жыл бұрын
I love your vedios naveen... Thank you
@merlinelizabethmathew982
@merlinelizabethmathew982 4 жыл бұрын
Could you please explain the difference between Verify() and Soft Assert() methods, and where to use these 2 methods?
@Mariankurossu
@Mariankurossu 4 жыл бұрын
Thank you so very much!
@srinivas9086
@srinivas9086 5 жыл бұрын
thank you sir
@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?
@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?
@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
@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
@hamedaziz5293
@hamedaziz5293 5 жыл бұрын
Thanks
@soundaryasoudi1134
@soundaryasoudi1134 3 жыл бұрын
Hi Naveen, please upload videos for Rest Assured Testing With Test NG and Java
@sriharshamishra5167
@sriharshamishra5167 4 жыл бұрын
Pls share the related playlist
@swethaputti
@swethaputti 3 жыл бұрын
Awesome, Thank you.
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
You're welcome!
@KrishnaSingh-vy1us
@KrishnaSingh-vy1us 4 жыл бұрын
Hello Sir, can u make videos on database tesing
@kushalmandal
@kushalmandal 2 жыл бұрын
there are three test cases(@Test) and 2 are fail due to assertion then its shows only 1 in result
@rakeshjaiswal4675
@rakeshjaiswal4675 4 жыл бұрын
11:32 soft assertion
@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.
@ManishYadav-in7ml
@ManishYadav-in7ml 4 жыл бұрын
Thanks
Taking ScreenShot ONLY for Failed Tests in Selenium using TestNG Listener
32:12
Naveen AutomationLabs
Рет қаралды 116 М.
TestNG Framework- Selenium Tutorial Part-2
58:45
Naveen AutomationLabs
Рет қаралды 271 М.
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 18 МЛН
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 32 МЛН
MouseMovement, Drag & Drop and ImplicitWait in Selenium - Session 5
42:14
Naveen AutomationLabs
Рет қаралды 206 М.
@Parameters in TestNg: How to pass parameter from testing.xml
26:39
Naveen AutomationLabs
Рет қаралды 175 М.
Deploy and Run Java Hello World with JUnit in Jenkins
8:47
How to take Screenshot in Selenium || Interview Question
13:37
Naveen AutomationLabs
Рет қаралды 93 М.
Writing Test Cases/Step-by-step for Login Page/Jira Tool
9:40
Software Testing
Рет қаралды 31 М.
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 5 МЛН
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 5 МЛН