3 ms·
I think his reasons for not using Selenium Grid are based out of ignorance and there's a clear whiff of 'not invented here' in his post. Happily, if you read t
by jgrahamc 18y ago
I think his reasons for not using Selenium Grid are based out of ignorance and there's a clear whiff of 'not invented here' in his post. Happily, if you read the comments a Selenium developer has now responded.
If I might deconstruct his argument:
"As far as I can tell, Selenium Grid requires that you use Selenium to run your tests. Currently no major JavaScript library uses Selenium (and it would be a major shift in order to do so)."
Doh, yes Selenium Grid uses Selenium. And the argument about no major JS using Selenium is not an argument to not use it.
"It isn't able to test against non-desktop machines. Each server must be running a daemon to handle the batches of jobs - this leaves mobile devices out of the picture."
Unless you write the appropriate daemon for those devices and integrate it into the existing Selenium Grid set up. Surely that's easier than starting afresh?
"It can't test against unknown browsers. Each browser needs special code to hook in to triggering the loading of the browser by Selenium, thus an unknown browser (such IE 8, Opera 10, Firefox Nightly, or Chrome) may not be able to run.'
Huh? That's just bizarre. If you've got some new browser then teach Selenium how to start it. It's not that hard.
"And most importantly: Selenium Grid requires that you actually own and control a number of machines on which you can run your tests. It's not always feasible, especially in the world of distributed Open Source JavaScript development, to have the finances to have dedicated machines running non-stop. A more cost effective solution is required."
This is solved by virtualization.
- jeresig 18y ago> Doh, yes Selenium Grid uses Selenium. And the argument about no major JS using Selenium is not an argument to not use it. Sure it is. If a developer will never switch to Selenium then Selenium Grid (in its current state) is useless. TestSwarm is completely test suite agnostic - which is huge. I don't know of a single Open Source JavaScript projects which uses Selenium. > Unless you right the appropriate daemon for those devices and integrate it into the existing Selenium Grid set up. Surely that's easier than starting afresh? It absolutely is. There are no daemons in TestSwarm. It's a single URL that you can open in any browser. No 3rd party software is required to be installed. > Huh? That's just bizarre. If you've got some new browser then reach Selenium how to start it. It's not that hard. So the only solution for an unknown browser is to wait for the Selenium team to add it? That's unacceptable. New browsers must be added instantly and on-demand (which TestSwarm handles). > This is solved by virtualization. No it's not, not at all. A virtualized environment requires a few things: A machine on which to run it and enough resources to run as many virtualizations as required. As an Open Source project we don't have that sort of money. Second, virtualization is insufficient for testing. Within the Mozilla project we've discussed problems with virtualization and how they are not always precise. Nothing is better than running the tests directly on an actual user's machine. Third, virtualization does not solve the problem of manual testing. We want to get tests in front of users wherever possible - throwing them to some dumb server does nothing to help us.
- jgrahamc 18y ago> So the only solution for an unknown browser is to wait > for the Selenium team to add it? That's unacceptable. New > browsers must be added instantly and on-demand No, the solution, as with any FLOSS project, would be for you (or someone else) to add the browser to Selenium and not wait for the Selenium team to do it. I don't understand the requirement for adding new browsers 'instantly and on-demand'. > Second, virtualization is insufficient for testing. Within > the Mozilla project we've discussed problems with > virtualization and how they are not always precise. Nothing > is better than running the tests directly on an actual > user's machine. I'd be curious to hear those arguments and to have examples of when virtualization is not sufficient and you need to go to the actual user's machine.
- jeresig 18y ago> I don't understand the requirement for adding new browsers 'instantly and on-demand'. Because the major JavaScript libraries' timetables should not be bound by how willing they are to twiddle config files/write new browser loaders in Java. It shouldn't be anymore complicated than hitting a button that says "Add this browser as a new test base." > I'd be curious to hear those arguments and to have examples of when virtualization is not sufficient and you need to go to the actual user's machine. Timing, performance analysis, and CPU/memory availability are huge ones. Being resource constrained in a VM is not an acceptable approximation of what a user's desktop actually is. Nor is running a mobile browser in a simulator. Nothing beats running an actual browser on an actual desktop. If you were to argue that you could have no resource constraints in your VM, that brings it back to the argument of cost and resources.
- jgrahamc 18y ago> Timing, performance analysis, and CPU/memory availability are huge ones. Being resource constrained in a VM is not an acceptable approximation of what a user's desktop actually is. Fair enough. Don't you run into the same problem with volunteer machines though? You can't actually control their configuration in TestSwarm so you can't control the resources (e.g. you can't control what else the machine is doing). If you are going to do do any serious analysis of timing or performance then you are going to have to control the machines.
- dnaquin 18y agoDoh, yes Selenium Grid uses Selenium. And the argument about no major JS using Selenium is not an argument to not use it. Selenium is the flakiest test framework I've ever used. Though, my solution would use the best of both worlds. jsunit tests fired off by Selenium on a grid.