Which is the most comprehensive browser compatibility testing tool? - cross-browser

An ideal one would be where I could:
Test my JS live, not just see screenshots
Test in multiple browsers in multiple OSes
Test under various resolutions
Test in different mobile platforms
I know that's too much to ask for, but which one gets closest?

The two that spring immediately to mind are:
http://browsershots.org/
http://deviceanywhere.com/

You can use Selenium RC or Selenium 2 (WebDriver) for automated cross-browser testing as well as different platform.
Selenium WebDriver is better than Selenium RC. Selenium RC is deprecated now. You can find the details about Selenium2 (WebDriver) in the following URL:
http://docs.seleniumhq.org/docs/03_webdriver.jsp

Related

Best way to test a web application for multiple versions of browser using Selenium automation?

I have been doing a research for quite a sometime but unable to find a good solution - therefore thought of asking on StackOverflow.
I have automated the testing using Selenium Webdriver for different browser but lately I had seen there were some issues which came for Chrome's older version - now, the question I had was if there is any way through which I could run the script for different versions of browsers e.g. test should run on Chrome 48 - Chrome 59 (covering majors versions only).
The two solution I got from my research was -
1.
Overriding the chrome binary location like the below link:
https://stackoverflow.com/a/16562068/6738995
I then started my research on how to download the binaries for Chrome and I found the official repo also - http://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html
2. Use Selenium Webdriver on cloud solution provider like BrowserStack or SauceLabs etc who provides multi-version-browser support
Now, I want to exhaust all the options related to the 1st approach i.e. if there is no proper/easy way to implement the solution then I would have go for the 2nd approach.
The reason I am reluctant to go for 2nd approach is that I might loose control(I am speculating that there might be some restrictions on using that platform, I might be wrong and could only find out the try after tring that) and also there will be learning curve associated with this and I would also have to spend time & resources in order to stabilize with the chosen technology.
Thanks in advance.
If resource isn't a concern/constraint for you, then you can use a Virtual Machine, like VMWare and simulate separate test environments with different web browsers. However, if you are looking for the best solution, then you have to use Cloud solutions like SauceLabs or BrowserStack.

Android Studio test for libraries

I'm new on testing, I read some pages on testing for Android. I can't find pages for testing libraries on Android Studio.
My problem is to test a class without activity and with some private methods.
Someone know how to test libraries on Android Studio 1.1?
Thanks
It's a pretty broad question but if you're new to testing on Android take a look at: http://www.vogella.com/tutorials/AndroidTesting/article.html
This is mostly on how to test elements in Android, like activities and such.
Testing encapsulated methods and classes can be a pain, especially if it's stuff like libraries, but take a look at this (option 4): http://blog.octo.com/en/android-testing-testing-private-methods/
Hope it helps.

Good Unit Testing Options in FlashDevelop

I'm new to AS3 and Flex, but I am creating a mobile app with them in FlashDevelop. I want to add some unit tests, but I can't find any really good frameworks or documentation on it. I saw a little bit on FlexUnit and AsUnit, but both seem to be a few years old, and there isn't much documentation on using them in FlashDevelop.
Is there a good framework I can use for unit testing here? Even if I can't test the UI layer, I'd like to at least make sure my backend functions work correctly.
If you are testing backend functions, then you generally want to use the testing framework of whatever backend you are using. If you want Flex to test your backend functions, then you aren't Unit Testing, you are Integration Testing. While FlexUnit seems old, it still performs well at serving its purpose. The usage of FlexUnit should be independent of your IDE, you may just have to do more typing.
You can try to use the Flexunit4.0 for testing the business logic on the client side mixing it with the Mockito. None of these actually support testing the UI.
i've never tried to test the backend services with the Unit testing because of the authentication issues, but we created another testing UI for testing the services, This UI has a tons of screens, each screen to test different services.
I've seen that there is a ServiceBrowser for amfphp, i'm not sure if this can be used for Java or other platforms.
Other ways of testing the UI is by automation testing, use flexmonkey, selenium for that.

Does Google Chrome work with Selenium IDE (as Firefox does)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I can't find an equivalent of Selenium IDE that works with Chrome.
Does anyone know how to use Selenium IDE with Chrome instead of Firefox? Or is there an alternative tool which works with Chrome?
artejera, do you mean Selenium as plugin to your browser (Selenium IDE)?
Here is something for automation in Google Chrome.
But if you want to work with Selenium RC, just set up browser in your test script. There is setBrowser() method in Selenium.
you can use Google chrome extensions like imacros, scirocco on chrome 21 or later versions. they are similar to selenium IDE for Firefox. Scirocco seems to be new with some limitations like navigation is not supported. So, I recommend 'imacros', seems very close to selenium.
If you want to harness Selenium IDE record & playback capabilities for Chrome browser there is an equivalent extension for Chrome called Scirocco.
You can add it to Chrome by visiting here using your Chrome browser https://chrome.google.com/webstore/search/scirocco
Scirocco is created by Sonix Asia and is not as polished as Selenium IDE for Firefox. It is in fact quite buggy in places. But it does what you ask.
No, Google Chrome does not work with Selenium IDE. As Selenium IDE is a Firefox plugin it works only with FF.
According to your last portion of question: Or is there any alternative tool which can work with Chrome? The possible answer is as follows:
You can use Sahi with Chrome. Sahi Test Automation tool supports Chrome, Firefox and IE. You can visit for details:
http://sahi.co.in/
A couple of months ago, Micro Focus released a free tool that allows you to record Selenium scripts in Chrome and Firefox. It's called Silk WebDriver, you can download it for free from https://www.microfocus.com/products/silk-portfolio/silk-webdriver/
Disclaimer: I work for Micro Focus.
There is not a Google Chrome extension comparable to Selenium IDE.
Scirocco is only a partial (and reportedly unreliable) implementation.
There is another plugin, the Bug Buster Test Recorder, but it only works with their service. I don't know it's effectiveness.
Sahi and TestComplete can also record, but neither are free, and are not browser plugins.
iMacros is a plugin that allows record and playback, but is not geared towards testing, and is not compatible with Selenium.
It sounds like there is a demand for a tool like this, and Firefox is becoming unsupported by Selenium. So, while I know Stack Overflow isn't the forum for this, anyone interested in helping make it happen, let me know.
I'd be interested in what the limitations are and why it hasn't been done. Is it just that the official Selenium team doesn't want to support it, or is there a technical limitation?
While you cannot record tests using the Selenium IDE in Chrome (or any other browser other than FF), you can run them (from the IDE) in Chrome, IE and other browsers using the Webdriver playback feature of Selenium 2 IDE. Tests will need to be recorded and launched from FF - Chrome will launch before the first step of the test is executed. Instructions for setup and test execution are here and here. You will need to install Selenium 2 IDE (if you haven't already done so) and the Chrome Webdriver Server executable - both are available for download on the Selenium HQ website.
NOTE: If the above meets your needs, you may also want to consider just converting all your tests to Selenium Webdriver (which means they would be all code and no longer run from the Selenium IDE). This would be a better solution from the perspective of test maintenance and simplicity of execution. The Selenium documentation (on the Selenium website) has more information on the process to convert Selenium IDE tests to Webdriver.
See Scirocco Recorder For Chrome. It does IDE recording for Selenium 2 on Chrome.
https://chrome.google.com/webstore/detail/scirocco-recorder-for-chr/ibclajljffeaafooicpmkcjdnkbaoiih
Just fyi . This is available as nuget package in visual studio environment. Please let me know if you need more information as I have used it. URL can be found Link to nuget
You can also find some information here. Blog with more details

Chrome extension testing

Does anyone have experience with Chrome extension testing?
For example:
I want to create an extension that uses the
popup browser action, and automate a test case that checks the
behavior of the popup when clicked.[chromium issue]
Perhaps you could use selenium (it would be really great if this is possible).
Have you considered using a general purpose GUI-testing tool? If you are looking for a free, basic solution, check out Sikuli. There is a bunch of similar tools out there.
I've gotten some mileage using protractor to navigate to the url for the popup and running tests on it as if it were a regular page.