Selenium Framework - Part 6 - Understanding Thread Safety and Issues

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2025
  • In this video, we will cover what is causing the parallel execution to fail in selenium.
    1. My test scripts working fine when running sequentially but failing when ran in parallel. Have you faced this issue? What is causing this issue?
    2. All local variables of primitive types are stored in Thread stack itself
    3. All local variables of non primitive types are stored on stack but the object itself in heap
    4. An object’s member variable is stored in heap along with the object itself. (Primitive and Reference). If the thread has access to object, it also has access to its members.
    5. Static class variables are also stored in the heap.

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

  • @pravinshetty1491
    @pravinshetty1491 หลายเดือนก่อน +1

    @Testing Mini Bytes really great video. Watching your framework videos and am in the initial stage of framework videos and really loved the way you teach. Learned a lot of things in initial videos and will learn more in the coming videos. Thanks a lot for providing us with this value able content. Will share with my friends also.

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

    The way you give an explanation for each and every step is commendable! Thank you!

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

    to say i feel like bahubali after watching each and every class ... hidden gem bro u r ....hats offf to u

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

    Underrated channel. Nice explanation Amuthan!!

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

    Thanks Amuthan for the comprehensive explation of the age-old issue. Eagerly waiting for your next video to learn about the solution. Thanks for helping. Regards, Avik

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

    Great explanation Amuthan :)

  • @omegajoint7339
    @omegajoint7339 6 หลายเดือนก่อน +1

    Great explanation

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

    what about static methods such as initDrivers() or quitDrivers()? these are static variables so are they not causing any issues?

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

      No they won't.

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

      @@TestingMiniBytes thanks. Are static methods also stored in stack ?

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

    8:00 heap stack memory and varable

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

    Good one Amuthan !!

    • @TestingMiniBytes
      @TestingMiniBytes  4 ปีที่แล้ว

      Thanks Chandan. I am glad you liked it !!

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

    Hi Creator,
    Please excuse me if I sound stupid, but my question is
    If local/method variables are thread safe then why are we creating driver as class instance.
    Why don't we initiate it in a method and just return driver.
    That way we will have a new driver object for every thread.
    Please answer

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

      @@omegajoint7339 you cannot access local variable outside that method

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

    Hi,
    Thanks for such an amazing details playlist.
    Can you please create one more detailed framework for Appium + Allure Report (with parallel testing)

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

      Appium series is coming soon.

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

      Wow amazing. Seriously I was looking for such detailed step by step playlist from years.
      Thanks a lot
      God bless you

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

    I am facing issues like intermittent failures and I am not running any test cases parallel so could you please tell me how to avoid intermittent failures

    • @TestingMiniBytes
      @TestingMiniBytes  4 ปีที่แล้ว

      Please watch the next part for the solution.

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

    Very well explained ❤

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

    when will next online trainee for selenium with java automation

  • @Michael-qq9zc
    @Michael-qq9zc 3 ปีที่แล้ว +1

    Thanks, you can explain very well

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

      You are welcome. I am sure there are lot of exciting content ahead and you will enjoy them as well.

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

    Can you please create one more with cucumber framework

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

      No plans to create cucumber framework

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

      @@TestingMiniBytes
      Can you please create one as you explain in very easy way and now day most companies use BDD framework
      Please 🙏

  • @jaykavin2215
    @jaykavin2215 4 ปีที่แล้ว

    Good stuff 👍🙌

  • @mahadevvedios4275
    @mahadevvedios4275 5 หลายเดือนก่อน

    nice explation thanks sir

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

    Thanks

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

    you shoul use zoom when you are showing diagrams

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

      That was initial days of my youtube career. There was little hiccups 😊

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

      @@TestingMiniBytes it's ok the explanation are so good and clear

  • @ctacts
    @ctacts 7 หลายเดือนก่อน

    TV sports example 😂