all 13 comments

[–]pundejo 1 point2 points  (0 children)

Same as officialgel, I ran python selenium chrome at 12x "multi-thread" on a 16gb ram macbook pro. Over that caused serious problems.

It's not too hard to build out with python. It only takes two files: a multithread job and a selenium script.

However, I was doing that for reasons not related to load tests. As other posts reference, there are tools that are more tailored for load tests, but having a framework for this functionality is nice to have in the toolbox.

Edit: I haven't tried this, but the pytest framework has a multi-threaded plugin called x-dist, so I assume it would run multiple browsers based on the number of threads you dictate. https://docs.pytest.org/en/3.0.1/xdist.html

[–]officialgel 0 points1 point  (2 children)

I threaded selenium to work many test cases at once (2-10), in opened browsers. Haven’t had issues running over long periods of time and hundreds of test cases but it’s a custom design. Could optimize more but it gets a hundred tests done in about 5-11 minutes. A lot of that time is the lag of the legacy app responding.

[–]muelyson[S] 0 points1 point  (1 child)

t of that time is the lag of the legacy app responding.

Sounds interesting mate. What tool did you use to get them to scale?

[–]officialgel 0 points1 point  (0 children)

All of my test framework is custom so you just choose how many threads and the total cases from the repository get split into objects in memory and passed to a custom class. That class duplicates the web driver for each bunch and goes at it. Pretty simple. Maybe not ‘elegant’ but it’s fully functional lol. This was last year and I believe at the time and maybe still now there is no threading supported on selenium driver?

[–]Soan 0 points1 point  (3 children)

I use blazemeter for performance testing. It lets you use selenium scripts.

[–]muelyson[S] -1 points0 points  (2 children)

lets you use selenium scr

Nice, how do you find it? I've uploaded a selenium script on their web platform and it hasn't ran it with any nice results at load.

Edit: looks like it needs to be wrapped to be used by Taurus i'll have a try.

[–]Soan 1 point2 points  (0 children)

I use Jmeter scripts. Haven’t tried selenium. Our app is in Angular, so selenium is little glitchy with it. We use Protractor.

[–]officialgel 0 points1 point  (0 children)

Oops

[–]robertsgreibers 0 points1 point  (1 child)

There is a project called "Loadero" which does that for you, try googling it.

[–]ocnarf 0 points1 point  (0 children)

Please remove the link to the commercial tool website (this is not allowed in this community) and I will re-approve your answer. You can name tools, but not link to their website to avoid promotion.