Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

#URGENT -How to run parallel test cases in selenium + intelliJ

49 views
Skip to first unread message

Rashmi Upari

unread,
Mar 27, 2020, 1:39:43 AM3/27/20
to Selenium Users
Hello All,
Our requirement is to hit a login page and enter login details. This should be done for multiple users at same time.
user login details should be parameterised but main requirement is 100s of users should login at same time.

Can anyone please let me know how we can do it in Selenium using IntelliJ
its urgent!!

Thanks 

⇜Krishnan Mahadevan⇝

unread,
Mar 27, 2020, 1:49:31 AM3/27/20
to Selenium Users
What have you done so far to solving this problem ?
What does your code look like?
Where are you stuck and need help ?

Merely citing the requirement and prefixing the mail subject with URGENT is not going to help you a lot. What is urgent to you, isn't necessarily urgent to others.

So please help us, help you by being more specific with your question.

Your requirement looks to be more performance centric. Have you considered other tools such as JMeter (or) maybe Gatling for e.g., ?


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/


--
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/8169de51-cd35-4998-820b-456d73bf3548%40googlegroups.com.

Rashmi Upari

unread,
Mar 27, 2020, 2:44:21 AM3/27/20
to Selenium Users
Hi Krishnan,
i agree that my problem might not be urgent to others but still had to mention as we are stuck.
What have i done so far ---> we have written a simple code calling chromedriver and opening the login page but this is only for one user details
what does my code look like --> 

package SanityCases.tests;


import SanityCases.pages.a_PublicPages.PublicPage;

import SanityCases.pages.b_PatientLogin.CustomerLoginPage;

import org.junit.Test;


public class test

{


   @Test

    public void testforlogo()

    {

        new PublicPage()

           

                .openPage().clickOnPatient().clickRememberMe()


    }

   


}


package SanityCases.pages.b_PatientLogin;


import org.junit.jupiter.api.Assertions;

import org.openqa.selenium.WebElement;

import org.openqa.selenium.support.FindBy;

import org.openqa.selenium.support.PageFactory;

import org.openqa.selenium.support.ui.ExpectedConditions;

import org.openqa.selenium.support.ui.WebDriverWait;


import static SanityCases.drivers.MyChromeDriver.getChromeDriver;



public class CustomerLoginPage extends PageFactory


{

    private static final String URL = "https://rashmi.qa1.snapvcm.com/#/patient";



    @FindBy(xpath = "//*[text()='Email Address']")

    private WebElement textEmailAddress;


    @FindBy (xpath = "//*[@id='loginBoxContainer']/div/div/div[1]/div[1]")

    WebElement logo;


    @FindBy (id = "remember")

    private WebElement rememberMe;



    public CustomerLoginPage()

    {


        initElements(getChromeDriver(), this);

        openPage();

        WebDriverWait waitLoginPageChrome = new WebDriverWait(getChromeDriver(), 30);

        waitLoginPageChrome.until(ExpectedConditions.visibilityOf(textEmailAddress));

        Assertions.assertTrue(logo.isDisplayed());


    }


    public CustomerLoginPage openPage()

    {

        getChromeDriver().get(URL);

        return this;

    }


    public CustomerLoginPage clickRememberMe() {

        rememberMe.click();


        return this;

    }

}



Where am i stuck at?? ---> we need to use selenium itself for my requirement ( i did suggest jMeter but dev team wants to execute cases in UI so that they can get SignalR errors in UI which we cant get when we run via jMeter)


Hope i m clear this time



On Friday, 27 March 2020 11:19:31 UTC+5:30, Krishnan Mahadevan wrote:
What have you done so far to solving this problem ?
What does your code look like?
Where are you stuck and need help ?

Merely citing the requirement and prefixing the mail subject with URGENT is not going to help you a lot. What is urgent to you, isn't necessarily urgent to others.

So please help us, help you by being more specific with your question.

Your requirement looks to be more performance centric. Have you considered other tools such as JMeter (or) maybe Gatling for e.g., ?


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/


On Fri, Mar 27, 2020 at 11:10 AM Rashmi Upari <upari...@gmail.com> wrote:
Hello All,
Our requirement is to hit a login page and enter login details. This should be done for multiple users at same time.
user login details should be parameterised but main requirement is 100s of users should login at same time.

Can anyone please let me know how we can do it in Selenium using IntelliJ
its urgent!!

Thanks 

--
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.

⇜Krishnan Mahadevan⇝

unread,
Mar 27, 2020, 2:58:10 AM3/27/20
to Selenium Users
Rashmi,

Thanks for adding additional context.

>>>>>  i did suggest jMeter but dev team wants to execute cases in UI so that they can get SignalR errors in UI which we cant get when we run via jMeter)

You could try JMeter Selenium integration if you would like to specifically run UI tests to capture JS connection errors no ? 
Have you considered exploring something like this: https://www.blazemeter.com/blog/jmeter-webdriver-sampler/

You won't be able to scale up your solution beyond say 10 or 15 sessions on a given machine ( I have seen Chrome behaving erratically once you cross 15 concurrent sessions on a given machine).

So you would need to start looking at the Grid (which basically means that you now need additional machines, need to setup an entire Grid infrastructure etc.,)

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/c2231708-8284-4294-86f0-25adb367d81a%40googlegroups.com.

Rashmi Upari

unread,
Mar 27, 2020, 3:04:31 AM3/27/20
to Selenium Users
Krishnan,
No, i have not yet looked into any intergration of jmeter with selenium...
Thanks for the link that you have shared..

You won't be able to scale up your solution beyond say 10 or 15 sessions on a given machine ( I have seen Chrome behaving erratically once you cross 15 concurrent sessions on a given machine).
 ---> so you mean to say, even with integration of Jmeter n selenium will not work for 100 users??

Thanks


On Friday, 27 March 2020 12:28:10 UTC+5:30, Krishnan Mahadevan wrote:
Rashmi,

Thanks for adding additional context.

>>>>>  i did suggest jMeter but dev team wants to execute cases in UI so that they can get SignalR errors in UI which we cant get when we run via jMeter)

You could try JMeter Selenium integration if you would like to specifically run UI tests to capture JS connection errors no ? 
Have you considered exploring something like this: https://www.blazemeter.com/blog/jmeter-webdriver-sampler/

You won't be able to scale up your solution beyond say 10 or 15 sessions on a given machine ( I have seen Chrome behaving erratically once you cross 15 concurrent sessions on a given machine).

So you would need to start looking at the Grid (which basically means that you now need additional machines, need to setup an entire Grid infrastructure etc.,)

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/


Mallichetty Hemanth Kumar

unread,
Mar 27, 2020, 3:04:50 AM3/27/20
to seleniu...@googlegroups.com
As for as i know you can initialize up to 5 browser instances parallelly, If it will be more than 5 browser instances then system will stuck. This is not the correct approach.

Reply all
Reply to author
Forward
0 new messages