How to test LOCALLY an rails application layout on IE7 and IE8 from an MacOSX? - ruby-on-rails-3

So, I'm developing my rails applications on my mac, thro WEBrick at 0.0.0.0:3000 and I need to test how the layout are showing on PC running Windows with Internet Explorer 7 and IE8.
I have tried to test it thro Wine + Wine Bottler, but I can't access that point.
And now I'm thinking to install VirtualBox to give a try, but before doing this, it will be good to know from others if it will or not work for me in this case.
Any advice?
Thanks!

I use VirtualBox for interface testing. I've had no problems with it at all. I have an external drive with various disk images for firing up various versions of Windows and thus various versions of IE as well as Firefox and Chrome. Works a treat and no complaints.

We have used VirtualBox and a program called IETester:
http://www.my-debugbar.com/wiki/IETester/HomePage
It works well, even for IE6 although there are some very minor differences for IE6.
Makes it very quick to test in all versions of IE as you can have a tab for each.
Give it a go.

Related

How to force compatibility view

I have IE 11 installed, but I need to run a few tests in IE 8, 9, & 10 as well. How can I force the compatibility mode when running a test.
FYI, I did try F12, and set the mode to 8. It works manually, but not through selenium.
Thanks!
I ran into exact same issue recently. Unfortunately, there is no way unless you change page source. See this. However, I can tell you what I have done. I used VMS of course. Luckily, microsoft also provides trial versions of VMS with different versions of IE. visit this. After getting the VMs ready I installed NUNit Console. I then simply copied and loaded the test dll on that and just run.

Ubuntu Freeze if kept untouched for a few minutes

So I have Ubuntu 14.04 Installed on my system with a few "tweaks", mainly ccsm. I also have google chromium browser installed as well. I do a lot of work in the browser and usually have 10+ tabs open in my system.
I also like to use the multi-window (Workspace) and have 8 Workspaces (thus one of the reasons for ccsm).
Once I leave the computer and try to come back (before the screen locks), the computer is COMPLETELY frozen with my HDD running at very high speeds. I have a system monitor that monitors the CPU activity and HD activity and right before those things freezes, my RAM is at 100% and so is my HDD.
I'm wondering if anyone can help me FIGURE OUT what the problem is? I've been using ubuntu since '08 so I'm familiar with it. I just don't know where to start!
HELP!
I can not deal with the problem until I install the following packages as follows
sudo apt-get install linux-generic-lts-quantal xserver-xorg-lts-quantal
You could get the detailed reason from http://www.howtoeverything.net/linux/hardware/random-freezes-integrated-hd-4000-graphics
Maybe you have to consider the Google Chrome or Chromium, whose two or more different Flash plugins conflict with each other, and the freeze problem disappear after you Disable the Flash plugins in the webpage opened by inputting
chrome://plugins
in the URL address of Chrome
Or another useful method of changing the chrome plugins is to uninstall the google-chrome completely,and then install the current chrome with newest flash plugin.
After all the above are done, the system need restart.
Hope it can help. Good luck!

How to test webapp with different versions of IE from single windows machine?

I need to test a Web application on different versions of IE (IE9, IE8 & IE7).
I found that IE9 provides the compatibility view for IE8 & IE7 so I had installed IE9 in my test system.
There is one header META tag "X-UA-Compatible" by which you can set the compatibility view But in my case we don't have access to the source files.
If some how from selenium or by any other way if we can dynamically set the "X-UA-Compatible" tag then It can resolve my problem. Please let me know if there is any good way to Test the WebApp in different version of IE (7,8 & 9) from Single windows machine/instance.
Any suggestion would be appreciated.
Please do share your experience with this.
Thanks.
For testing your web application on different version of IE you can use online test tools, IETester, IECollection, Microsoft TestDrive
or in IE 8 & 9 press F12 and select IE version from Browser Mode menu
You speak about compatibility mode. Not sure if you know this but if you dont, press F12 in IE 9 to open developer tools. From there, you can set rendering version. This is the way I test on different IE versions.
From the official source:
4 ways tp test...
Another solution, you can try is spoon.net/, which is online simulator for browsers. You can select different browsers & versions there. You could also find other similar online simulator.
Microsoft provide virtual machines for different versions of IE at http://modern.ie . So, on a single machine it is possible to have multiple test versions of IE by running your tests in a virtual machine.
Update Nov 2014: There is now a way to achieve this.
Spoon has a Selenium grid that runs all versions of IE (Chrome and Firefox too) on the same Windows dev machine.
It uses the Spoon virtual machine to achieve this, by virtualizing a selenium setup including all browser nodes.
Its 100% compatible with your existing selenium tests. You don't need to launch the nodes beforehard, they launch on demand when test code requires a specific browser/version via capabilities.
Disclaimer: I work at Spoon and helped build this.

Is the new IE9 a standalone browser

Anyone that has installed the new IE9 know if I can keep IE8 installed? I do a lot of web testing and don't want to update to IE9 if I loose IE8.
best way is to install a Virtual Machine
Per Microsoft:
If you are running Windows Vista or
Windows 7 on your computer, you can
install the Internet Explorer 9 Beta
to replace your existing version of
Internet Explorer. After you install
Internet Explorer 9, you can uninstall
it to restore the previously installed
version of Internet Explorer.
So no, it will overwrite IE8 (at least the Beta will. I suppose this is not guaranteed to be the same for the release version).
I use Virtual PC with images of the browsers I need to test, but also and more lately, IETester, http://www.my-debugbar.com/wiki/IETester/HomePage. It allows you to run multiple versions of IE side by side.
If you want to be able to play with the new features of IE9 without installing the entire browser (which will replace IE8) you can install the Platform Preview. The PP is stand-alone, includes the latest features and bug fixes and has been getting updated roughly every 8 weeks. You can get the latest Platform Preview at:
www.ietestdrive.com
FYI: the production IE 9 does not accurately reproduce IE 8. I've got a CSS issue I'm chasing down now because IE 9's IE 8 mode isn't the same as real IE 8.
If you are concerned with testing how your site looks in IE8/7, you can use the Developer Tools (press F12) to switch the Browser modes and Document modes so that IE9 interacts with the web server as a different user agent, and renders the HTML document according to the version rules.
http://msdn.microsoft.com/en-sg/ie/ff468705(en-us).aspx#_New_Dev_Tools
IE9 beta is released as a Windows update, so after installing it and playing around, you can remove it from Programs and Features -> Installed Updates, which will recover IE8.
hit f12 on ie9, it will pop up the debug console. In the menu there is a browser mode option where you can set the browser to display as ie8 and a bunch of other versions too.
Also, if you're mouse focus is on the console and you hit ctrl+r, it will clear your browser cache... This is a feature that all the other browser debuggers lack.. ability to quickly clear cache.... I'm rambling now.
The best way to see your site on old versions of IE is that:
If you have IE9+, open your current version of InternetExplorer, press F12, click on "Browser Mode" tab, then choose the version you want.
see screenshot here:
Works better than IE-tester, and easier than using virtual machine.

Is there a way to install all versions of all browsers on one machine?

Is there a way to install all versions of all browsers on one machine?
I use virtual machines to do different browser version configurations. I'm assuming you want to test different version of IE, Firefox etc.
If you automate your testing at any point the virtual machines are also handy for having a way to store many different configurations for testing on one machine.
Sure, and the best way to do this is to use virtualisation technology such as VirtualBox.
we have used this to install mutiple versions of IE for testing it goes as far back as 3.0
http://tredosoft.com/Multiple_IE
Try Sandboxie. Much less work to deal with than a VM. Probably will run faster.
For several browsers, like Firefox or Opera, it is just a matter of copying the original program directory elsewhere and upgrading. Most of the time, the old version should still work.
For IE, there are several distributions, IETester seems to be a complete, easy solution.
For FireFox, you can install the portable versions available here
With IE, I think the only way is via virtual machines. I can recommend VirtualBox, works smoothly for me.
Why would you want to do that?
Typically, a product wont allow parallel installs (multiple versions of same product, though certainly you can have multiple versions of different products).
If you want to do some analysis or testing , doing that in separate Virtual Machines (check out VMWare) may be an option.
I am not sure why you really want this but if you want to install different versions of IE use the following tool:
http://tredosoft.com/Multiple_IE
Yes. I have IE8 Beta2, FF3, Chrome Beta, and Safari 3.1.2 with the applicable developer plugins.