Parallel running of Selenium testcase

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Parallel running of Selenium testcase

Ali G
Hi,

I have a Selenium test case (Junit 4.12) implemented in Java11 (Firefox Web
Driver) for a login scenario to a website that requires two steps:

1) The first step user enters a username and after identifying by the
server the page will be navigated to a new page for entering a password.

2) In the second step, the user enters the passwords and a successful login
is done. So the username and password are located in two different web
pages and not on one page and this requires navigation.

I would like to run this test case in parallel for 100 different users to
find the average login time for peak loads.

Can you please help me how to implement this in Jmeter?

Thanks in advance!
Ali
Reply | Threaded
Open this post in threaded view
|

Re: Parallel running of Selenium testcase

Owen Pahl
Hi Ali,

That isn't going to scale well using Selenium as each user will need a
browser session running; normally you'd only get 3-5 instances per host.
For testing things like this it would be better to implement the
functionality using native JMeter samplers.

I would only take the Selenium route if you have a hard requirement for
including page render time, there is a lot of custom JS code that needs to
be executed and you have plenty of hardware available for executing the
test.


Cheers,
Owen

On Fri, 3 Jul 2020 at 13:50, Ali G <[hidden email]> wrote:

> Hi,
>
> I have a Selenium test case (Junit 4.12) implemented in Java11 (Firefox Web
> Driver) for a login scenario to a website that requires two steps:
>
> 1) The first step user enters a username and after identifying by the
> server the page will be navigated to a new page for entering a password.
>
> 2) In the second step, the user enters the passwords and a successful login
> is done. So the username and password are located in two different web
> pages and not on one page and this requires navigation.
>
> I would like to run this test case in parallel for 100 different users to
> find the average login time for peak loads.
>
> Can you please help me how to implement this in Jmeter?
>
> Thanks in advance!
> Ali
>