Parallel execution of selenium webdriver modeled with pom

47 views
Skip to first unread message

Sindhu Anand

unread,
Oct 25, 2019, 7:29:01 AM10/25/19
to Selenium Users
Please let me know how to run a selenium test designed with page object model and test ng to run them in parallel.

thilana Athi

unread,
Oct 25, 2019, 7:36:48 AM10/25/19
to seleniu...@googlegroups.com

On Fri, 25 Oct, 2019, 4:59 pm Sindhu Anand, <sinn...@gmail.com> wrote:
Please let me know how to run a selenium test designed with page object model and test ng to run them in parallel.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a1ba03b7-b57d-447a-bc9b-a9be19ede38b%40googlegroups.com.

Sindhu Anand

unread,
Oct 25, 2019, 9:08:20 AM10/25/19
to Selenium Users
Thank you.
But the selenium framework developed uses same methods in the background for test1 and test2. 
In that case how would the issue be resolved.?

Regards,
Sindhu


On Friday, October 25, 2019 at 5:06:48 PM UTC+5:30, thilana Athi wrote:
On Fri, 25 Oct, 2019, 4:59 pm Sindhu Anand, <sinn...@gmail.com> wrote:
Please let me know how to run a selenium test designed with page object model and test ng to run them in parallel.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seleniu...@googlegroups.com.

thilana Athi

unread,
Oct 25, 2019, 9:12:32 AM10/25/19
to seleniu...@googlegroups.com
Both the method parallely access the method (multithreading). Kindly let me know if you have any specific use case to be resolved on running parallely

To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a335ff1c-6e42-48b7-8e6c-c0974379ba57%40googlegroups.com.

Sindhu Anand

unread,
Oct 25, 2019, 2:38:07 PM10/25/19
to Selenium Users
Thank you.

Please find my scenario below
TestBase Class
PageFactory Classes

TestCases - here for each test, Browser gets initialized and uses the classes from TestBase and Pagefactory.
Test1
Test2

So, when I run such a scenario in parallel="tests" TESTNG , then it is messing up things and browser closes

Regards,
Sindhu

On Friday, October 25, 2019 at 6:42:32 PM UTC+5:30, thilana Athi wrote:
Both the method parallely access the method (multithreading). Kindly let me know if you have any specific use case to be resolved on running parallely

On Fri, 25 Oct, 2019, 6:38 pm Sindhu Anand, <sinn...@gmail.com> wrote:
Thank you.
But the selenium framework developed uses same methods in the background for test1 and test2. 
In that case how would the issue be resolved.?

Regards,
Sindhu

On Friday, October 25, 2019 at 5:06:48 PM UTC+5:30, thilana Athi wrote:

On Fri, 25 Oct, 2019, 4:59 pm Sindhu Anand, <sinn...@gmail.com> wrote:
Please let me know how to run a selenium test designed with page object model and test ng to run them in parallel.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a1ba03b7-b57d-447a-bc9b-a9be19ede38b%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seleniu...@googlegroups.com.

thilana Athi

unread,
Oct 25, 2019, 5:37:47 PM10/25/19
to seleniu...@googlegroups.com
Kindly let me know did you declare Webdriver as static or non static

To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1ae6510e-8c4d-4510-91c6-85abe30b6bd8%40googlegroups.com.

Sindhu Anand

unread,
Oct 26, 2019, 2:32:59 AM10/26/19
to Selenium Users
Thank you.

It is non-static.
But it is a RemoteWebDriver.

Regards,
Sindhu

⇜Krishnan Mahadevan⇝

unread,
Oct 26, 2019, 2:40:03 AM10/26/19
to Selenium Users
Sindhu,

I think you would be better by sharing what you have as code (either in the email or by posting it in https://gist.github.com and sharing a link) so that someone can suggest you on what needs to be done instead of giving information in bits and pieces.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribblings @ https://rationaleemotions.com/


To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/4950a1c2-b348-456a-8fb0-0e15ad139ba0%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages