Stress test with selenium IDE

749 views
Skip to first unread message

Dalila

unread,
Nov 6, 2015, 4:22:15 AM11/6/15
to Selenium Users
hello all,

i would like to know how can i devlop my loed test, today i've a suit test case devloped with selenium IDE, i'll like to rin it with 100 users differents.

How can i do it please?

Thnk you very much for uyour answers.


Mark Collin

unread,
Nov 6, 2015, 6:01:21 AM11/6/15
to Selenium Users
Use JMeter or a performance testing tool.

Selenium IDE is not going to be able to do this for you.

Dalila

unread,
Nov 6, 2015, 6:23:16 AM11/6/15
to Selenium Users
Thank you very much for your answer,

yes i'll use Jmeter but i need how to reuse my selenium's scripts with Jmeter,  I think there is a way to reuse them rather than to redo all the work?

Advance thanks.

Ripon Al Wasim

unread,
Nov 6, 2015, 7:01:07 AM11/6/15
to seleniu...@googlegroups.com
Selenium IDE doesn't support Stress Testing.

--
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 post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/59bf8d1c-627f-47c0-ac07-08e7e152ad24%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Dalila

unread,
Nov 6, 2015, 7:31:23 AM11/6/15
to Selenium Users
Thank you very much for your answer,

yes i'll use Jmeter but i need how to reuse my selenium's scripts with Jmeter,  I think there is a way to reuse them rather than to redo all the work?


Krishnan Mahadevan

unread,
Nov 6, 2015, 7:47:08 AM11/6/15
to Selenium Users

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 Scribbings @ http://rationaleemotions.wordpress.com/

Dalila

unread,
Nov 6, 2015, 8:33:48 AM11/6/15
to Selenium Users
Ok, thank's i'll see it; i hope that are not very difficult :)

Dmitri T

unread,
Nov 6, 2015, 10:08:40 AM11/6/15
to Selenium Users
Selenium IDE is a browser plugin, you won't be able to conduct any load using it. 

In general it is recommended to use load testing tools as modern browsers are very resource-intensive and in general it makes sense to run 1 browser instance per CPU core and/or 4 GB or ram. If you have such a "beast" in your test lab - you can consider Selenium Grid to run your tests in parallel. 

Take a look into the following free and open source solutions:

See Open Source Load Testing Tools: Which One Should You Use? guide for more information on above tools including feature comparison matrix, sample scripts and load reports. 

If you plan to re-use existing JMeter scripts you can consider using Taurus which can consume Selenium tests written in Java or Python.

Dalila

unread,
Nov 6, 2015, 10:29:36 AM11/6/15
to Selenium Users
Thank's for your answer, i'll explain you more; 

i've my suite tests cases, i convert it from Selenium IDE to Wbdriver/testNG to be used in Selnium Grid, saw my problem is how to run my suit with 100 diferents users?

my web application don't accept more than one connection, i'm not able to test my suite with 100 connections in parallel because one login is accepted;

i hope that i was clear?

Advace thank's :)

PeterJeffreyGale

unread,
Nov 6, 2015, 10:51:25 AM11/6/15
to Selenium Users
That's not very clear ... could 100 real people - each sat at a different PC - all connect to the same website / web app - and all be logged on with their own credentials and use the website at the same time?

Dalila

unread,
Nov 6, 2015, 12:25:36 PM11/6/15
to Selenium Users
Hi,
I'll explain you what my suit case tets do (Excuse me my english is not very well )

Connect to the application with Login password (only one connection per login is permitted simultaneously )

Choose a tab and do some jobs.

Saw when i run my suite test with selenium Grid but i ve got error because in my suit i ve one user scripted not 100, how can run my suite with 100 diferents users?
I ll not copy 100 test case with 100 logins?!!!!
Advance Thanks

David

unread,
Nov 7, 2015, 1:13:08 PM11/7/15
to Selenium Users
Have you heard of data driven testing Dalila? That's what you will need to do with your Selenium scripts, in a way, to be able to use them for load testing via concurrent parallel logins.

At a minimum, this means you don't hard code the login username and password in the test itself but it pulls the data off Excel or CSV file or database, etc. You could make it such that each test case instance (run with Grid, JMeter, etc.) has its own Excel/CSV file or that each instance is mapped to a particular row in the spreadsheet or database such that each test will never use the same login. This of course means modifying your Selenium IDE exported test cases in actual (Java) code. You can't make this kind of change directly in Selenium IDE then export to code.

Dalila

unread,
Nov 7, 2015, 2:07:30 PM11/7/15
to Selenium Users
Hi David, Thank's for your answer, what i've done actually is export my selenium ide scripts to Selenium webdriver testNG, i don't know how to use Excel or csv, any informations will be welcome :)

Thank you.

Krishnan Mahadevan

unread,
Nov 7, 2015, 11:52:54 PM11/7/15
to Selenium Users
Dalila,

Guess then now's a good time to start exploring how to work with Excel sheets :)

Since you are stating that you exported your IDE test as WebDriver test code powered by TestNG as the test runner, you should be able to leverage TestNG's data driven capabilities and couple them with reading an excel sheet to iterate through your test code and get your requirement satisfied with ease.

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 Scribbings @ http://rationaleemotions.wordpress.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 post to this group, send email to seleniu...@googlegroups.com.

Dalila

unread,
Nov 9, 2015, 3:34:17 AM11/9/15
to Selenium Users
@David, @Krishnan

Hi, please what can you advise me as or tutorial site to start as quickly and efficiently as possible?

Thank you very much for your help :)

Dalila

unread,
Nov 9, 2015, 3:47:43 AM11/9/15
to Selenium Users
Another question please, i've found TestNG Data Provider with Excel, saw l'll always need Jmeter or i'll use Selenium Grid, i must give an clear answer about tools's used in my prohect for my boss.

Advance Thanks

David

unread,
Nov 9, 2015, 12:30:49 PM11/9/15
to Selenium Users
Maybe someone else can point you to data driven testing and TestNG data provider tutorials or you can search online.

As for tooling, if you're going to use JMeter WebDriver sampler with the code, you may be able to rely on JMeter's CSV feature to pull the data to insert into WebDriver code based on a per thread/user instance. You'd probably be inserting it into WebDriver via command line arguments or Java/JMeter properties (or JMeter variables), but that might be beyond your scope of knowledge, so probably better to stick with say TestNG data provider which, should work under both JMeter and Selenium Grid. Which to use really depends on your load generation/scalability needs and which works better for you. I recommend you try both yourself and determine that (e.g. which feels easier to work with and which lets you generate more users/browsers or runs more reliably with same set of hardware)

Dalila

unread,
Nov 10, 2015, 10:28:24 AM11/10/15
to Selenium Users
Hello all, 

I tried to work with TestNG of dataprovider, but my problem is not resolved, it connects with the first login but with the others logins it does not  found the login page! (the test will run in parrallel)!

Thanks for your help;

Dalila

unread,
Nov 12, 2015, 9:37:46 AM11/12/15
to Selenium Users
Hello, 
now i'm trying to use my suit test with JMetre:

i've exported my suite in Webdriver/JUnit 
launch the test it's Ok (Eclipse IDE)
Copy the code from Eclipse to JMeter (the same) 
FireFOx is launched (open Firefox/maximise/close)
the test suit is not run!
i get Error:
ERROR - com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler: In file: inline evaluation of: ``package Jmeter;  import org.openqa.selenium.By; import org.openqa.selenium.WebDr . . . '' Encountered "static" at line 14, column 8.
 in inline evaluation of: ``package Jmeter;  import org.openqa.selenium.By; import org.openqa.selenium.WebDr . . . '' at line number 14............

Advanced Thanks
Reply all
Reply to author
Forward
0 new messages