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.
@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.
The way you give an explanation for each and every step is commendable! Thank you!
to say i feel like bahubali after watching each and every class ... hidden gem bro u r ....hats offf to u
Underrated channel. Nice explanation Amuthan!!
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
Coming soon mate!!
Great explanation Amuthan :)
Great explanation
what about static methods such as initDrivers() or quitDrivers()? these are static variables so are they not causing any issues?
No they won't.
@@TestingMiniBytes thanks. Are static methods also stored in stack ?
8:00 heap stack memory and varable
Good one Amuthan !!
Thanks Chandan. I am glad you liked it !!
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
@@omegajoint7339 you cannot access local variable outside that method
Hi,
Thanks for such an amazing details playlist.
Can you please create one more detailed framework for Appium + Allure Report (with parallel testing)
Appium series is coming soon.
Wow amazing. Seriously I was looking for such detailed step by step playlist from years.
Thanks a lot
God bless you
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
Please watch the next part for the solution.
Very well explained ❤
when will next online trainee for selenium with java automation
No plans as of now
Thanks, you can explain very well
You are welcome. I am sure there are lot of exciting content ahead and you will enjoy them as well.
Can you please create one more with cucumber framework
No plans to create cucumber framework
@@TestingMiniBytes
Can you please create one as you explain in very easy way and now day most companies use BDD framework
Please 🙏
Good stuff 👍🙌
nice explation thanks sir
Thanks
You are most welcome !!
you shoul use zoom when you are showing diagrams
That was initial days of my youtube career. There was little hiccups 😊
@@TestingMiniBytes it's ok the explanation are so good and clear
TV sports example 😂