Geb_Testng_parallel

54 views
Skip to first unread message

manikandan murugaiah

unread,
Dec 29, 2017, 8:15:16 PM12/29/17
to Geb User Mailing List
My Tests are extending GebReportingTest(TestNg). When I run the testng file with classes as parallel , I can see the classes getting executed in parallel but only one browser has been opened.
It looks like the browser is shared between the tests. Could you please advise how to launch multiple browsers.

Marcin Erdmann

unread,
Dec 30, 2017, 12:36:43 PM12/30/17
to Geb User Mailing List
Geb has built-in WebDriver instance cache which by default only allows creation of a single WebDriver instance per JVM as described in http://gebish.org/manual/current/#driver-caching-configuration. You can change this behaviour to be instance per thread using cacheDriverPerThread config option which is described in the manual section I linked to.

Marcin


On Sat, Dec 30, 2017 at 1:15 AM, manikandan murugaiah <mmanik...@gmail.com> wrote:
My Tests are extending GebReportingTest(TestNg). When I run the testng file with classes as parallel , I can see the classes getting executed in parallel but only one browser has been opened.
It looks like the browser is shared between the tests. Could you please advise how to launch multiple browsers.

--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/f3e89de3-eb6f-42e9-98c9-1e5c968a0b41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

manikandan murugaiah

unread,
Jan 3, 2018, 6:57:36 PM1/3/18
to Geb User Mailing List

Thank you !!! It works :)
Reply all
Reply to author
Forward
0 new messages