P6 - Hard Assertions vs Soft Assertions in TestNG | TestNG | Testing Framework |

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • In this video, I have explained about "Hard Assertions vs Soft Assertions in TestNG".
    What is a hard assertion?
    What is a soft assertion?
    What is the difference between hard assertion & soft assertion ?
    How to use the soft assertions?
    =======================================
    ▶️ Next Video Link: • P7 - TestNG annotation...
    ◀️ Previous Video Link: • P5 - Assertions in Tes...
    ↔️ TestNG Playlist Link: bit.ly/3wXyuXB
    🔗 Code used in this video: www.hyrtutoria...
    ✴ Checkout my other playlists: bit.ly/3gLIAVL
    ☕ Buy me a coffee: bit.ly/33ljBWc
    👑 Join my youtube channel to get access to perks:👇
    / @hyrtutorials
    ========================================
    ========================================
    Connect me @
    🔗 Website - www.hyrtutoria...
    🔗 Telegram - t.me/hyrtutorials
    🔗 Facebook - / hyrtutorials
    🔗 LinkedIn - / hyrtutorials
    🔗 Twitter - / hyrtutorials
    🔗 Instagram - / hyrtutorials
    ========================================
    ========================================
    🙏 Please Subscribe🔔 to start learning for FREE now, Also help your friends in learning the best by suggesting this channel.
    #hyrtutorials #selenium #testng
    TestNG by Yadagiri Reddy

ความคิดเห็น • 96

  • @HYRTutorials
    @HYRTutorials  3 ปีที่แล้ว +3

    ↔️ TestNG Playlist Link: bit.ly/3wXyuXB
    ✴ Checkout my other playlists: bit.ly/3gLIAVL
    ☕ Buy me a coffee: bit.ly/33ljBWc

  • @yashu2808pr
    @yashu2808pr 2 ปีที่แล้ว +6

    200% clarity 👌👌 thanks a ton !!

  • @prathibhakukatlapalli5270
    @prathibhakukatlapalli5270 ปีที่แล้ว +1

    No words of gratitude will be sufficient to thank you Sir. for the kind of hard work that you are putting and to make the concept understandable even to the beginner is out of this world.Many many thanks Sir👍

  • @klshyam2628
    @klshyam2628 4 หลายเดือนก่อน

    really i am a aspirant for software testing job, really enjoying and learning a lot from your testNG framwork videos, plz create a testNG framework Project like in comapny does

  • @basamma.patilpriya609
    @basamma.patilpriya609 หลายเดือนก่อน

    Very well explained.Thankyou sir.

  • @user-fi4tg5dc9i
    @user-fi4tg5dc9i 11 หลายเดือนก่อน +1

    thanks a million, since i starting to watch your videos, i couldnt stop, brilliant work

    • @HYRTutorials
      @HYRTutorials  11 หลายเดือนก่อน

      Thanks buddy 😊

  • @Bell4Fun
    @Bell4Fun 2 ปีที่แล้ว +1

    Your approach to explain complex concepts is outstanding and very clear that anyone can understand without issue.

  • @ummezannat3116
    @ummezannat3116 3 ปีที่แล้ว +1

    Very nice explanation. And also very informative . I will appreciate if you please clarify usually when and why we need to use assertNotEquals...
    Thanks a lot .

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว +1

      Thankyou 😊
      We do also have the negative tests in our suite right?
      For those we use this assertnotequals

  • @sravanthisravs3480
    @sravanthisravs3480 ปีที่แล้ว +1

    Thanks a lot for the beautiful explanation!!

  • @NagababuYadlapalli
    @NagababuYadlapalli ปีที่แล้ว +1

    great teaching skills......along with an energy.....

  • @ravindrabhoite5628
    @ravindrabhoite5628 ปีที่แล้ว +1

    awesome video very helpful for concept clarity

  • @C.Sakthivignesh
    @C.Sakthivignesh ปีที่แล้ว +2

    Thank you so much sir for made this video.

    • @HYRTutorials
      @HYRTutorials  ปีที่แล้ว +1

      Happy learning buddy 😊

  • @nishamahendran1532
    @nishamahendran1532 ปีที่แล้ว +1

    Awesome explanation. Very helpful! Thank you..

  • @rameshrongala922
    @rameshrongala922 ปีที่แล้ว +1

    Thank you , very deep explanation.

  • @KhushbooSharma-cn3vr
    @KhushbooSharma-cn3vr 5 หลายเดือนก่อน

    For me only URL and Titile assertion is working and when I used soft assert still browser is not getting closed when soft assert fails

  • @gaddipatiprabhakar2889
    @gaddipatiprabhakar2889 3 ปีที่แล้ว +1

    Nice.... Video on Soft And Hard Assertions, Thank you.

  • @ashwinkantale
    @ashwinkantale 2 ปีที่แล้ว +1

    thanks a lot sir , you are great teacher & awesome explanation 🙏

  • @saibhavana9300
    @saibhavana9300 ปีที่แล้ว +1

    Wow nice explanation sir very esy to understand

  • @nainagupta4949
    @nainagupta4949 ปีที่แล้ว +1

    so like we can have multiple assertion in a Test? or one assertion in multiple Test ?

    • @HYRTutorials
      @HYRTutorials  ปีที่แล้ว

      Yes we can have any number of assertions

  • @ahmedmetwally3400
    @ahmedmetwally3400 2 ปีที่แล้ว +1

    Awesome, you are really perfect, very nice playlist, your explanations are very easy👌, and you are very informative, keep it up 🤗👍

  • @piyushramteke6208
    @piyushramteke6208 ปีที่แล้ว +1

    sir i got this exception after executing same code "Session ID is null. Using WebDriver after calling quit()?"

  • @bharathpybodi2842
    @bharathpybodi2842 2 หลายเดือนก่อน

    Good Explanation Bro

  • @579594
    @579594 3 ปีที่แล้ว +1

    Can you please also make a video on automation test framework?

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว

      Yeah sure, after this series

  • @prathyushag5962
    @prathyushag5962 3 ปีที่แล้ว +1

    ur a awesome guy,thanks for nice explnation

  • @sivapratap9902
    @sivapratap9902 9 หลายเดือนก่อน

    Nice explanation HYR gaaru.

  • @sagnikasaha54
    @sagnikasaha54 ปีที่แล้ว +1

    nicely explained!!

  • @kranthikumar7443
    @kranthikumar7443 3 ปีที่แล้ว +1

    Nice Video Bro
    Looking forward next session

  • @kishoripatil2302
    @kishoripatil2302 ปีที่แล้ว +1

    When all the test cases are correct then getting error that unable to locate element

    • @HYRTutorials
      @HYRTutorials  ปีที่แล้ว

      May be due to some synchronisation issues the element might not have been loaded
      Check the console buddy

  • @aravindharul6757
    @aravindharul6757 2 ปีที่แล้ว

    thanks a lot sir. you are great teacher

  • @kgangadhar6495
    @kgangadhar6495 6 หลายเดือนก่อน

    Full clarity ❤

  • @udemytesters
    @udemytesters 3 ปีที่แล้ว +1

    Other Tests executes in case of Hard assertion ?

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว +1

      Yes it executes the other tests.
      It won't execute the other steps in the same test

    • @udemytesters
      @udemytesters 3 ปีที่แล้ว

      @@HYRTutorials Thank you

  • @aravindkumar5663
    @aravindkumar5663 2 ปีที่แล้ว

    Hello sir, what is the difference between Assertions and Exceptions..?

    • @HYRTutorials
      @HYRTutorials  2 ปีที่แล้ว +1

      Assertions are kind of wrappers around exception with additional capabilities like verifying something particularly.

  • @tejalali5115
    @tejalali5115 2 ปีที่แล้ว +1

    Thank you

  • @kiransingh8239
    @kiransingh8239 2 ปีที่แล้ว

    Thanks bro ,awesome explanation 🙏🙏

  • @bsk8643
    @bsk8643 3 ปีที่แล้ว +1

    Brother any update on ag grid video ?
    Please reply 🙏

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว

      Didn't check that brother

    • @bsk8643
      @bsk8643 3 ปีที่แล้ว

      @@HYRTutorials please can you check and do a video.
      No one did a video on this 🙏

  • @rajatbarthwal9858
    @rajatbarthwal9858 2 ปีที่แล้ว +1

    Thanks boss

  • @ashishsahu8065
    @ashishsahu8065 ปีที่แล้ว

    Hi sir i am also using the same application OrangeHrm demo but it is launched for me but not able to put credetials through selenium.

    • @HYRTutorials
      @HYRTutorials  ปีที่แล้ว

      What's the error you are getting buddy?

    • @intellectuallearning8118
      @intellectuallearning8118 ปีที่แล้ว +2

      Apply Thread.sleep(3000) before finding the Element...
      The same issue was with me as well it was showing NOSUCHELEMENTEXCEPTION

    • @HYRTutorials
      @HYRTutorials  ปีที่แล้ว

      @@intellectuallearning8118 Due to synchronization issues sometimes the element will not be loaded within the default time. In those scenarios we need to provide some wait. it can be implicit or explicit based on your choice.

  • @goddumarrichandana2245
    @goddumarrichandana2245 ปีที่แล้ว +1

    Sir can you please provide the notes

    • @HYRTutorials
      @HYRTutorials  ปีที่แล้ว

      Notes should be prepared self after watching the videos buddy

  • @yaswanthyash2588
    @yaswanthyash2588 2 ปีที่แล้ว +1

    your ti to explain sotNice tutorialng

  • @shashikumar-pt4gm
    @shashikumar-pt4gm 2 ปีที่แล้ว

    good explanation

  • @vigneshkumar9983
    @vigneshkumar9983 2 ปีที่แล้ว

    In real time we use soft or hard assert sir

    • @HYRTutorials
      @HYRTutorials  2 ปีที่แล้ว

      We use both the asserts buddy.
      Depending on scenario we have to choose the assertions.
      If u don't want to proceed further on some failure then go for hard assert and if u want to proceed further then go for soft assertions

  • @Skkas
    @Skkas ปีที่แล้ว

    Superb

  • @Homemadefoodsbyveena
    @Homemadefoodsbyveena ปีที่แล้ว

    Maven is not connecting to eclipse why?

    • @HYRTutorials
      @HYRTutorials  ปีที่แล้ว +1

      What's the error you are getting buddy

    • @Homemadefoodsbyveena
      @Homemadefoodsbyveena ปีที่แล้ว +1

      @@HYRTutorials got it…after adding dependency forgot to save.

    • @HYRTutorials
      @HYRTutorials  ปีที่แล้ว

      haha it happens sometimes

  • @officialSaideep
    @officialSaideep ปีที่แล้ว

    Test failed due to "Unable to locate element: {"method":"xpath","selector":"(//div[@id='email_container']/div)[last()]"}"
    How to fix this?

    • @HYRTutorials
      @HYRTutorials  ปีที่แล้ว

      It's unable to find that element with this xpath buddy.
      Can u cross verify whether that element is present in webpage or not in the chromedevtools

    • @officialSaideep
      @officialSaideep ปีที่แล้ว +1

      @@HYRTutorials changed xpath and it worked bro

    • @HYRTutorials
      @HYRTutorials  ปีที่แล้ว

      @@officialSaideep Thats good.

  • @Archanaparupally
    @Archanaparupally 2 ปีที่แล้ว +1

    👌👌👌

  • @tranthinhqnam
    @tranthinhqnam ปีที่แล้ว +1

    Hey Master , i am from Viet Nam and i am so admired by you .. Can i be your Fb friend ?

    • @HYRTutorials
      @HYRTutorials  ปีที่แล้ว

      Thanks buddy 😊
      Yeah sure, hyadagirireddy is my fb id.

  • @mayayadhu
    @mayayadhu 2 ปีที่แล้ว +1

    👌👍