Awesome from simple to expert level everything in one video. Since i have seen your java 8 series video. All of the last part Anonymous inner class etc made proper sense. Thanks for taking automation to another level.
Great Content to understand Thread local. Setting Initital value using Thread local is a new thing I learned today. Waiting to learn more new concepts.
Thank you soo much for knowledge sharing. This is really some advance things which i had no idea about. Really glad to checkout this channel. Keep up the good work.
Amazing content Keep going @Amuthan Sakthivel... One query Around Threadcount & Parallel execution. you have created one test method each in both Home and login classes and tried to give the thread-count as 2 with parallel on methods which is working fine but when you try to add one more method in either home or login classes then it will either skip or failing the test. since it is already closing the driver and not able to find the driver instance. when i change the thread count to >2 then it is working fine. Please check and explain a bit if we have more than one method for a class. Thanks in advance :)
Ha ha !! Good catch. I forget to update driver to DriverManager.getDriver() in if condition, that would have caused the issue. I already noted that. We will go one more round of fixing small issue in the next video!!
Hi Amuthan, Thanks for this video, instead of using a static webdriver is it not good to use a nonstatic webdriver and use dependency injection (pico container) and share the driver instance between different classes.
Great explanation. I have one question- I am running a parallel execution of my application in two browser with different thread.Now from the two browser I am trying to fetch the transaction id attributes using driver.findelements but I can see only one txn-id is fetching at runtime. I observed which ever the browser opens first that application txn id gets overwritten by second one and gets stored in the List interface. How to resolve this issue. Please suggest how to capture these multiple txn-id
Hey ur videos are very informative .Keep it up!! Also i have 1 question why are u using static web driver ?if u want to run them in parallel just declare them public WebDriver driver?it works?
Hi Boss, I am glad that you find this video useful. May i request to you to watch the part 5 and part 6 to understand why i cannot use public webdriver driver.. If you have time please watch the whole series so you can understand everything clearly. I am sure you ll enjoy the learning 😄
@@TestingMiniBytes I know with static webdriver we are facing some issues and thats why you use ThreadLocal.I want to say that if we declare our webdriver as public WebDriver driver.Then all our testcase will run without any issue.
@@boss6378 if you use without static you are creating lot of variables at the end. If you want to run more tests in parallel then you also need to think about memory management. When there is easy and efficient way we need to use that.
Hi Amuthan, Your videos are informative. I have one question it is giving null pointer exception for one of the test when I am not adding parallel parameter in TestNG but using threadlocal variable in classes.
Hi Shashank, I am glad that you liked my content. Are you following the series from the start if not could you please spare some time to watch part 5 and Part 6 of this selenium framework series to understand this issue in detail. I cannot comment on your question without seeing the code or other meta info. I would request you to watch the series from part I to the end which can give you lot of knowledge to solve all these issues by yourself. Happy learning 😄
Hi Amruthan, your videos are informative ,i followed your videos from beginning. while running test parallelly i am getting null pointer exception after using Thread Local class in code.
Hi Ravi, I am glad that you find my videos informative. Null pointer exception can happen anytime and not specifically because of using thread local. So please follow the exact steps mentioned in the video and practice. Or make sure to debug the whole scenario to replicate the behaviour
Hi, parallel execution is not working for me , giving null pointer exception. Could you please help me in solving this?.but, I could able to run individually.
@@TestingMiniBytes Thank you for the prompt reply but till now I haven't used Pagefactory still the code is behaving inconsistant. Sometimes both test cases running fine in parallel but sometimes only one test case is running and the other test case failing with StaleElementReferenceException.
hey it is working fine when we perform our actions in our @testmethod , can you please help how to implement threadlocal concept using page factory design pattern i'm facing issues it would be great help if you can make one video on this topic also
@@TestingMiniBytes hi thanks for the prompt reply now I’m able to implement with page factory also i was doing some minor mistakes , but waiting for your video to get better and clear understanding on this topic
HI Amuthan! I had a quick question , @11.00 what should be the hierarchy for get and set method ? I feel we should first set the driver and get it right ? I stand to be corrected.😀
Can you explain how to implement theeadlocal in rest assured with data provider as a xlsx sheet through input to passed into each APIs while executing serial is working fine but in parellel as you told it's not working in pure java oriented API AUTOMATION using rest assured
Awesome from simple to expert level everything in one video. Since i have seen your java 8 series video. All of the last part Anonymous inner class etc made proper sense.
Thanks for taking automation to another level.
Great Content to understand Thread local. Setting Initital value using Thread local is a new thing I learned today. Waiting to learn more new concepts.
Tons of thanks for your video I finally sorted out my issue.
thanks for the detailed explanation on LocalThread I tried many videos, but you explanation is best
Thank you for the detailed explanation on LocalThread class, able to achieve with cross browser using TestNG and ThreadLocal
Thank you soo much for knowledge sharing.
This is really some advance things which i had no idea about.
Really glad to checkout this channel.
Keep up the good work.
Glad you liked it. Please check out the other videos as well.
It is very well explained with examples
Thanks Amuthan for the clear explanation. Waiting for the next videos :)
Keep watching mate !!
13:15 will it unload all the thread execution even if some thread are slow and still executing?
remove method should be called at the end to remove the value safely
@@TestingMiniBytes cool, learned new concept :) nice indepth concept covered
Awesome video....go ahead and post more videos
Thank you. More videos coming soon !!
10:07 so here two driver instance are created for parallel execution?
Thread local will create two different copies for two different threads
Thank you for the video. Helped a lot.
Amazing content Keep going @Amuthan Sakthivel... One query Around Threadcount & Parallel execution. you have created one test method each in both Home and login classes and tried to give the thread-count as 2 with parallel on methods which is working fine but when you try to add one more method in either home or login classes then it will either skip or failing the test. since it is already closing the driver and not able to find the driver instance. when i change the thread count to >2 then it is working fine. Please check and explain a bit if we have more than one method for a class. Thanks in advance :)
Ha ha !! Good catch. I forget to update driver to DriverManager.getDriver() in if condition, that would have caused the issue. I already noted that. We will go one more round of fixing small issue in the next video!!
I have updated it with drivermanager.getdriver and it's working fine now 👍🏼
@@sunilkumarakumalla1265 It will be covered in next video anyways!!. I am glad you are learning well!!
I faced similar issue, I had to comment out everything to get to the actual issue. Thanks Sunil Kumar and Amuthan Sakthivel
Thank you issue solved 🎉
this really good content.Thanks
Very well explained...
Very useful 👍
Hi Amuthan,
Thanks for this video, instead of using a static webdriver is it not good to use a nonstatic webdriver and use dependency injection (pico container) and share the driver instance between different classes.
Great explanation. I have one question- I am running a parallel execution of my application in two browser with different thread.Now from the two browser I am trying to fetch the transaction id attributes using driver.findelements but I can see only one txn-id is fetching at runtime. I observed which ever the browser opens first that application txn id gets overwritten by second one and gets stored in the List interface. How to resolve this issue. Please suggest how to capture these multiple txn-id
You have to store it in ThreadLocal variable. If the txn id is static variable it will be shared with threads.
Hey ur videos are very informative .Keep it up!! Also i have 1 question why are u using static web driver ?if u want to run them in parallel just declare them public WebDriver driver?it works?
Hi Boss,
I am glad that you find this video useful. May i request to you to watch the part 5 and part 6 to understand why i cannot use public webdriver driver..
If you have time please watch the whole series so you can understand everything clearly. I am sure you ll enjoy the learning 😄
@@TestingMiniBytes I know with static webdriver we are facing some issues and thats why you use ThreadLocal.I want to say that if we declare our webdriver as public WebDriver driver.Then all our testcase will run without any issue.
@@boss6378 if you use without static you are creating lot of variables at the end. If you want to run more tests in parallel then you also need to think about memory management.
When there is easy and efficient way we need to use that.
Hi Amuthan,
Why r we creating threadlocal driver as static?
Hi Amuthan, Your videos are informative. I have one question it is giving null pointer exception for one of the test when I am not adding parallel parameter in TestNG but using threadlocal variable in classes.
it got resolved after changing the if condition...thanks
Hi Shashank,
I am glad that you liked my content. Are you following the series from the start if not could you please spare some time to watch part 5 and Part 6 of this selenium framework series to understand this issue in detail.
I cannot comment on your question without seeing the code or other meta info.
I would request you to watch the series from part I to the end which can give you lot of knowledge to solve all these issues by yourself.
Happy learning 😄
Hi Amruthan,
your videos are informative ,i followed your videos from beginning. while running test parallelly i am getting null pointer exception after using Thread Local class in code.
Hi Ravi,
I am glad that you find my videos informative. Null pointer exception can happen anytime and not specifically because of using thread local.
So please follow the exact steps mentioned in the video and practice.
Or make sure to debug the whole scenario to replicate the behaviour
How to achieve this for C# Nunit framework.. any ideas helps a lot … Thanks
Hi, parallel execution is not working for me , giving null pointer exception. Could you please help me in solving this?.but, I could able to run individually.
Null pointer can happen because of multiple reasons. Please watch the tutorial and replicate the same.
Hi Amuthan..really great content. I tried the exact thing but its working fine sometimes but sometimes giving "StaleElementReferenceException".
Don't use page factory. Stale element is different exception. I have also covered at the end how to fix that using lambda
@@TestingMiniBytes Thank you for the prompt reply but till now I haven't used Pagefactory still the code is behaving inconsistant. Sometimes both test cases running fine in parallel but sometimes only one test case is running and the other test case failing with StaleElementReferenceException.
Thanks Amuthan , the session was very informative and it would be great if you could share the git hub link
github.com/amuthansakthivel/UA-camSessions
18:50 why is that driver variable still there? in line number 17
Will be removed in the next video.
@@TestingMiniBytes Thanks, btw, do you have a github link to this project? could you share
@@okey1317 github.com/amuthansakthivel/SeleniumAutomationFramework_UA-cam
Hi Amuthan .. Can you please do a video on file(any extension) download and verifying the data in the file
Okay. Let me do that.
Hello is there any jar file available alternative thread.sleep in java?
In apache commons use uninteruppiles class methods.
hey it is working fine when we perform our actions in our @testmethod , can you please help how to implement threadlocal concept using page factory design pattern i'm facing issues it would be great help if you can make one video on this topic also
It has nothing to do woth page factory. But it will be covered in upcoming videos
@@TestingMiniBytes hi thanks for the prompt reply now I’m able to implement with page factory also i was doing some minor mistakes , but waiting for your video to get better and clear understanding on this topic
good one
HI Amuthan! I had a quick question , @11.00 what should be the hierarchy for get and set method ? I feel we should first set the driver and get it right ? I stand to be corrected.😀
That is correct to set the values to the Threadlocal and then we can get the values
@@TestingMiniBytes Thanks thala.
I followed as your way but is not working could please help me to resolve This. It is working for one browser only i used thread local
Ask your questions in the telegram group
Please share group name sir
@@shaikfaruk4679 t.me/+cJX1FmzfntJhMTg9
Is there a way to support BDD cucumber with this framework along with testNG?
Will do soon. But you can add cucumber later easily
Hi TMB, thanks for this video.. this made my day. Was stuck on parallel execution for last 4 days. Can I get the framework source code as well?
github.com/amuthansakthivel/SeleniumAutomationFramework_UA-cam
kudos
Can you explain how to implement theeadlocal in rest assured with data provider as a xlsx sheet through input to passed into each APIs while executing serial is working fine but in parellel as you told it's not working in pure java oriented API AUTOMATION using rest assured
Ask these doubts in telegram group with code and screenshots
Please share the telegram group we wanna join
Video is good.. but voice is very low...
Please try watching the next videos, i have worked on the audio quality
Whats the need of setting a default value? Reason is not clear from the session. @ua-cam.com/video/-7zA8KnFa9w/v-deo.html