Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Comment from SeanBannister on Google+ (limited access), but moving here to keep track and share: "Yeah, I was thinking about writing install scripts for each OS (XP, Vista, 7, 8, Ubuntu, Mac OS) that'd install a large set of browsers (to be determined). Plus when the VM was launched it'd launch all the browsers. I was also thinking about writing some code for the VM host that would watch for a new commit launch the VMs and then shut them down once the commit has been tested."
Comment | File | Size | Author |
---|---|---|---|
#3 | windows.vbs_.txt | 2.12 KB | SeanBannister |
Comments
Comment #1
attiks CreditAttribution: attiks commentedFor the moment we have TestSwarm running on one of our servers, both Drupal and TestSwarm are updated every 30 minutes using the following script
Comment #2
attiks CreditAttribution: attiks commentedAnother possibility for the VM's is to have a look at http://www.browserstack.com/automated-browser-testing-api
Comment #3
SeanBannister CreditAttribution: SeanBannister commentedBrowserStack looks interesting and the pricing is very reasonable. However it does concern me that their pricing isn't based on actual usage, could they really handle us testing every Drupal.org project on the $19 a month plan? Apart from that its certainly more affordable than buying a license of Mac OS X, Win XP, Vista, 7, 8. However on looking at the Operating Systems they support it doesn't list multiple versions of Windows so I'm not sure if they actually provide this. This is important as some browsers perform differently under different versions of Windows.
Either way I'm keen to run my own testing environment. I started writing an install script for Windows and realised it might be more effort than its worth and I'm probably better off writing an install guide. I ran into a number of issues, and while none of them were show stoppers they weren't ideal:
So I really didn't get far into the VBScript but I've attached the basic code I came up with just in case someone wants to run with it. I just really felt the maintenance hassle was going to be higher than the convenience but if someone else feels differently please run with this.
So I decided to start writing an install guide, and work on some boot scripts that launch all the browsers when the VM launches.
So I've decided to start with IE, presuming it would be the hardest and it hasn't disappointed. I started researching and came to the conclusion along with this article that the best way to test multiple versions of IE under a single operating system is using Utilu IE Collection but the problem with it is it won't install IE7 and IE8 under Window 7 or Vista instead it tells you to use IE9 and switch rendering engines but this doesn't provide a 100% accurate representation of IE7 and IE8, plus I can't even figure out a way to launch IE with a different rendering engine you have to manually do it. Anyway I've shot of a question to the guy who wrote that article to see if he can give us a hand.
Comment #4
attiks CreditAttribution: attiks commentedI've sent an email to browserstack asking for details on the OS. Regarding the pricing, jQuery is being sponsored by them.
Using VBScript isn't really an option, AFAIK it isn't installed by default on Win7. The only way to test this is to have separate browsers, so no emulation, for IE this means separate installs or separate VM's. I have no idea how Safari, FF, Chrome behave on different installs of (Win) OS's, but assume there will be differences as well.
to be continued ....
Comment #5
SeanBannister CreditAttribution: SeanBannister commentedYeah I noticed jQuery uses them but I guess they're only testing their main project not contrib projects as well?? Whereas if Drupal takes this up we have 1000's of contrib projects to test which I presume would add significant load.
I'm really hoping they come back and say they support multiple versions of Windows.
Addy Osmani got back to me about running IE Collection and says they now run multiple VMs instead https://twitter.com/#!/addy_osmani/status/182915347102433280
That'd be a complete nightmare to handle all those VMs.
Comment #6
attiks CreditAttribution: attiks commentedI think we first have to sort out everything for core, in a second phase we can look at contrib.
BrowserStack runs the IE's on Windows Server 2003 & Windows Server 2008, and their API only supports Windows for the moment, I asked them to get access to the APi so we can run some tests.
Regarding the multiple VM's, in theory we only need to set them up once, open the browser and keep them pointed at http://testswarm003.h001.attiks.com/testswarm-browser-tests