Parallel Testing in Selenium WebDriver using THREAD LOCAL and TestNG

preview_player
Показать описание
Parallel Testing in Selenium WebDriver using THREAD LOCAL and TestNG - parallel test execution in testng - session explains about implementing BaseTest having thread local opening browser and closing browser where each @test create execute unique thread id finally created 10 test cases and performed parallel test execution using selenium webdriver thread local testng.#paralleltesting #paralleltestingtestng #threadlocalselenium

Subscribe to this channel and press bell icon to get some more interesting videos on Selenium and Automation:

Рекомендации по теме
Комментарии
Автор

Thanks a Lot for this video on ThreadLocal to achive ThreadSafety during parallel execution.

jayantamandal
Автор

Thanks for the video, have a doubt, why we need ThreadLocal here,

shanmugakesavan
Автор

Hello Bakkappa,

Thanks for creating this video. I need one solution to a problem.
Actually, I have around 200 test cases to execute. All those(200 TC) I want to execute on Chrome and Firefox parallelly.
Also, we have different user types, like admin, super admin, manager.

Now I want to run my test cases parallelly on chrome and firefox but with different user types. This means, chrome should use Admin user credentials and firefox should use super admin user credentials.

I don't want you to create a full video on this. If possible just suggest the approach o follow.

kapilrana
Автор

Hi Bakkappa.. nice video.
I just want to know can we achieve same multibrowser testing using Thread local selenium c# nunit?

stephenshinde
Автор

Hello Bakkappa, how run parallel test with cucumber and re run if of the test case fail for random issue? please i dont and i need it. sorry for my bad english.

mats_D
Автор

Appreciated.

You've explained in a very good way.

But, how can we make it generic (you have used ChromeDriver specifically)
Can you please advise?

rajatt
Автор

Hi Bakkappa, Thanks for the video. Very helpful. Could you please explain how to run the tests parallel in case of the remote driver.

shrikantjoshi
Автор

Hi Sir, I was facing null pointer exception when I execute my scripts in parallel... Code has static variables...XXX.GET() method is null... Please help me on this

abhilash
Автор

if i want invoke the firefox dynamically bypassing the value from Parameter from Testng file

krishnauppara
Автор

Hello Bakkappa,
Thanks for sharing this video. Can you please help me to run parallel test cases using Page Factory Framework.

ishanmittal
Автор

Hello Bakkappa, It is really a nice video. But I have one doubt over here, that you have passed a generic as "chromeDriver" in ThreadLocal class but if I want to use firefox or IE browser so how can we achieve that? Should we need to create multiple ThreadLocal class with Generics.

viveksrivastava
Автор

How to run the selenium in chrome and Firefox in at time ? Can you answer

hardiky
Автор

Without using threadlocal we will directly use parellel=methods in testng.xml file, then i don't understand why we have used thread local over here, , ,
Directly we can create base class and extend it in our test case without using threadlocal, , these test case I can convert as testng.xml file and execute the same

Please let me know the use of thread local here, are we using threadlocal to print the I'd only???

qhubaibsyed
Автор

how to pass unique data from excel to every test case in case of parallel testing
say I have 10 test cases all need to run in parallel but I am passing the data to all test cases through excel and I need to pass only unique data to each test case

onkarkulkarni
Автор

If I am trying to reduce the overall time of test execution then whats the best approach
Multi threaded Selenium WebDriver vs Selenium Grid? If the number of parallel sessions is lets say 5-10 at a time

PawanKumar-bpyi
Автор

I don't know why we have used thread local to run parallel. Testng have standalone option to run in parallel.

Here thread local concept doesn't do the purpose. We should do parallel Execution without using testng

dineshkarthik
welcome to shbcf.ru