Parallel Test Execution in Selenium WebDriver

preview_player
Показать описание
Parallel Test Execution in Selenium webdriver automation testing."Selenium Tutorial","TestNG Tutorial","Tutorials for beginners","Selenium scripts or Tests",#SeleniumJava #SeleniumWebDriver #TestNGTutorials
----------------------------
click on #LIKE ,#SHARE and #SUBSCRIBE button for more updates from this channel.
------------------------------
Please watch to previous video
-------------------------------
For more Selenium Automation videos please visit below channel
--------------------------------
Follow and Connect with us on Facebook page
--------------------------------
Follow and Connect with us on Facebook Group
Test Automation Tool - selenium(open source tool)
--------------------------------
Follow and Connect with us on Linkedin
------------------------------
"Keywords":
Рекомендации по теме
Комментарии
Автор

Thank you soooo much for this been searching from when...so simple n easily understandable 🙏

prajaktawalhekar
Автор

Very much helpful for me, , please also make a video how to handle auto suggestive drop downs, Thanks in advance

lakshmikanth
Автор

Nice Video.
Have you done reporting part for parallel execution?
i.e. Extent reports with java+TestNG?

yogeshdawkhar
Автор

Hello,

Thanks for sharing this...

I wanted to execute the the parallel tests using the same driver with multiple instances. How can we achieve this without declaring the another webdriver instance?

Background to this question.
I have multiple data sets (~50 user accounts) and I wanted to execute one test for all these accounts. Please note that I am reading the test data from the Excel using dataprovider.

I think this can be achieved by copying the tests and renaming it with new driver instance variable. But I want it to be the one single method without duplicating the driver instance or tests. Because, my test data (count of user accounts ) in the Excel file may vary time to time. OR Any dynamic approach. Thanks

Please help. I appreciate it.

ravikumarshallagi
Автор

Hello I have a question, You have executed parallel tests with single file that contains 3 tests, but how to run the same with 3 different files each having 1 test.

anilt
Автор

Hi Bakkappa, What if we have 100+ cases ? do we need to create 100 driver instances? or we have to use the 3 instances alternatively? Awaiting your response.

shrikantjoshi
Автор

Selenium Automation Script

package SeleniumScripts;

import org.openqa.selenium.By;
import
import
import org.testng.annotations.Test;

public class ParallelTesting
{
WebDriver driver1;
WebDriver driver2;
WebDriver driver3;

@Test
public void Test1() throws Exception
{
System.setProperty("webdriver.chrome.driver",
driver1=new ChromeDriver();

Thread.sleep(2000);
Thread.sleep(2000);
driver1.quit();
}
@Test
public void Test2() throws Exception
{
System.setProperty("webdriver.chrome.driver",
driver2=new ChromeDriver();

Thread.sleep(2000);
Thread.sleep(2000);
driver2.quit();
}
@Test
public void Test3() throws Exception
{
System.setProperty("webdriver.chrome.driver",
driver3=new ChromeDriver();

Thread.sleep(2000);
Thread.sleep(2000);
driver3.quit();
}
}

XML File

<?xml version="1.0" encoding="UTF-8"?>
<suite name="Suite" parallel="methods" thread-count="3">
<test name="Test">
<classes>
<class
</classes>
</test> <!-- Test -->
</suite> <!-- Suite -->

testerstalk
Автор

What will be the limit of thread-count ..means how many browser we can open parallel

Luckydhami
Автор

What if we are having 100 classes and each class is having 10 - 20 Test Methods ?
Do we have to create this much number of diver instatnces ?

nehaawasthi
Автор

please provide solution Dataprovider trying to pass one parameter but method takes 3

ravik