Are there NPAPI testing tools? - testing

I'm using firebreath to build a plugin that downloads an application and runs it (something very simple). I know that some browsers are dropping npapi support, but I need to run this plugin just in old versions of browsers (e.g. IE 6, Firefox 38, Chrome 31). I'd like to know if there are any tools that could help testing the plugin's in a variety of environments (e.g. Firefox on Linux,windows, Safari on OSX). So far, what I'm doing, is setting up each environment (windows, linux, Mac) and building/installing the plugins manually. I think cross browser testing tools that I've found on internet won't help, because they don't allow plugin install.
I couldn't find anything on my research, so thanks in advance

Any browser automation tool capable of instrumenting pages on all of those platforms can test NPAPI, since it runs in a browser...
so, Selenium, for example.

Related

IntelliJ Idea Ultimate cannot enter debugging mode

When I try to debug it shows this dialog:
Error dialog
And when I clock "fix" It shows this:
Web Browsers dialog
I can't solve this problem, any suggestion? Also I am developing a react native app. But i don't think that's the problem...
I am running Intellij Idea in Elementary OS.
This is expected - debugging is only supported in Chrome and browsers of the Chrome family, as it's clearly stated in Help. So, when you start the debugger, the IDE will try to open Chrome regardless of the browser chosen in run configuration. You need to make sure that Chrome is installed and the correct path to it is specified in Settings | Tools | Web Browsers.
We used to support Firefox Remote Debugging (but without source maps) through the FireFox Remote run configuration, but our solution doesn't work in the latest Firefox versions due to changes in the protocol, and there doesn't seem to be an easy way to fix it. We've made some progress recently, but there are still some blocking issues
related ticket: WEB-45986

DUT Chrome App Automated Testing on Chromebook using Autotest and Chromedriver

My company has a Chrome App I have been running automated testing on using Selenium and Chromedriver on Mac and Windows. They recently asked if it would be possible to get an automation setup going on an actual ChromeBook. I had initially looked into this ~three years ago, but the Autotest and Chromedriver integration into the Chromium test builds wasn't in place then.
From all of the research I have done thus far it appears to be possible. However there really seems to be a lack of instructions and documentation for Autotest, test_that (Autotest's Chromium script), and how to get it hooked to the DUT (Device Under Test). Chromedriver is built into the Chromium test images (and I have located it on my own Chromium test build) and supposedly can be launched using Autotest on the DUT from a host chronos root.
If anyone knows of a good resource or has first hand knowledge please let me know. I'll post links to all the Chromium resources I have been reading.
Is there a decent resource for autotest and test_that script usage within a Chromium test build?
Many thanks!
https://chromium.googlesource.com/chromiumos/third_party/autotest/
https://sites.google.com/a/chromium.org/chromedriver/getting-started/chromeos

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 Selenium platform specific?

Is Selenium paltform specific. If yes then how can I develop a cross-platform specific application with it by first identifying the platform and then call the platform-specific selenium routines.
The IDE is a firefox plugin, but you can develop tests in multiple languages, which run on and against multiple platforms (including multiple browsers). Not really sure what you're trying to accomplish, but hopefully that helps.
Selenium is platform independent. This is because you run a Selenium RC server (which is a java application and hence can be run on any platform). Then you send selenese commands to the server which controls the testing activity on the browser. To send the selenese commands you can use any language (such as Java, PHP, Ruby etc). Now this again does not limit you in any way to a certain OS.
If you are using the Firefox plugin IDE to run the test cases then of course the platforms supported would be limited to platforms supported by Firefox.
Hope that answers.
I may be misunderstanding your question, but:
With Selenium RC (or Grid, more specifically), you can specify what platform you want your test to run on. Each node registers with the hub under a particular platform, and each test's DesiredCapabilities can request a platform.
As the other answers have stated, Selenium itself is platform independent but you can run your tests on a by-platform by-browser basis. Either way, the tests (in theory) should look the same and use the same native Selenium commands.
I am not so familiar with Selenium, but it looks to me that it works almost everywhere where you can install Firefox 2+.
Platforms Supported by Selenium
I'm using Selenium for a project that runs under Windows and Ubuntu. The only platform specific code is for starting the environment where it executes (headless X server under Ubuntu) and starting the Selenium jar file. The rest is all platform independent. I don't know if this will also work as smoothly when you try to use different browsers (I'm using Firefox on both platforms).

Webkit browser & automation

Have anyone come across open source tools/framework for Webkit browser test automation?
There is (not tried) WebAii Automation Framework where the current Beta 2.0.0.1 has Safari 3 support added on windows (it's free but I don't think it's opensource).
If you want do it yourself:
On Apple you should be able to script it AppleScript or from
MAC OS X > 10.4: there is Automator
On Windows you might consider using P/Invoke and looking at the WinLauncher tool from WebKitTools
I haven't seen a framework to run the tests but if you're looking for input to test against there is Ian Hickson's adhoc and evil test suites in addition to the traditional acid tests.
Which WebKit? Selenium seems to have drivers for several WebKit-based browsers.
WebKit itself has a test suite, to be implemented by each platform, which the WebKit documentation calls DRT or DumpRenderTree (see also LayoutTestController).