How to test mobile apps on different devices - testing

I want to test my IOS,Android and hybrid apps on various virtual devices. Please suggest me a good tool that can perform these functions.

We currently use Genymotion for testing with Android and XCode's simulator for iOS. These will allow you test a wide range of iOS/Android devices.
If you are looking for one tool to test both iOS and Android I believe Visual Studio's Xamarin supports both, there is also a browser based solution with appetize.io. I haven't used either of those so can't comment on if they are any good.

You can make use of chrome developer toolbar it has most of the device options like device horizontal/Vertical, Zoom

You get the different versions along with the different screen sizes in the simulator which you are working.
Eg: IOS(xcode) when you build it you get which version to build when running the application. Same for Android and hybrid apps

Related

ios appium automation queries

Can we perform automation on preinstalled app like Facebook on ios real device using appium without having ipa/app file?
Can we perform automation on real ios device without having developer team id for a ios app for which we have ipa/app file?
Yes, you can specify the app bundleId in the desired capabilities and attach Appium to the pre-installed application.
No. You need to build and sign the appium-webdriveragent app with your developer certificate to be able to install it on the real iOS device.
Yes you can automate pre installed apps in your phone. But make sure following configurations are already done:
"noReset" capability should be set to true. It won't install your app on every run.
You will need apple developer account if you want to automate it on Real Device. If you are running on simulator, developer account is not needed.

Can we use a signle ionic-4 app for mobile and desktops

I am developing an ionic-4 app, Ionic provides cross platform apps but I am a bit confused and my confusion is can I use a single ionic-4 application for mobiles(e.g. Android and IOS) and desktops browsers(Chrome, firefox etc.) as website. Is it possible by using ionic version 4.
Yes, Ionic 4 provides a single code for the execution of multiple platforms.
Ionic Doc
here is help for you. You can check everything.
Yes, you can use Ionic for Android, IOS and Browser. Once the coding is done, you can add any platform to make its build. For example, if you add Android platform then you can take an Android build(APK).Before that you need to setup an environment for that . For example, you need Android studio for taking Android build and Xcode for taking IOS build. It's all depends on the platform that you use.
Please go through Ionic documentation and Youtube tutorials to get a correct picture.
Thank you

Which platforms does Xamarin support?

I tried finding the information both on their website and on the Internet, but it appears that everywhere I look, a different list pops up.
Their front page says iOS, Android, Windows and Mac.
In their documentation (http://docs.xamarin.com/), only Android iOS,
Mac are mentioned at the docs front-page. I'm wondering does this
mean Windows has lesser priority compared to others.
On the Internet, I've found even more inconclusive information. Also,
it's hard to conclude what Windows means, mobile or desktop.
I've never used the product, but would love to try it for the game that I want to create, so I have two questions:
Can you give me a complete list of supported platforms (Android, iOS, Mac, Windows, Windows Phone, HTML5, Flash...)?
Can I target Facebook app with Xamarin?
Thanks in advance.
To update and extend Jason's answer there is now Xamarin.Forms that let us build cross-platform GUI for Android, iOS and Windows Phone. Looking at Xamarin's FormsGallery sample app I think it is fair to say that it de facto supports Windows Phone as well.
In addition to Xamarin.Forms there's always the possibility to use Xamarin.iOS, Xamarin.Android and Xamarin.Mac for platform customizations.
Xamarin.Mobile is in a preview release and supports Android, iOS and Windows Phone. It is used as an abstracted API of the native services (camera, geolocation etc).
However since you need the local SDK's installed for compilation you need a Mac computer to be able to deply for iOS. In order to compile for Windows Phone you need to use Visual Studio and the Xamarin Plugin, Xamarin Studio is not able to do this.
To conclude Xamarin supports development for
Android
iOS
Windows Phone
Mac
However not all of Xamarin's API's are implemented for all platforms.
Xamarin has three products
Xamarin.iOS - write iOS apps using C#
Xamarin.Android - write Android apps using C#
Xamarin.Mac - write Mac desktop apps using C#
Xamarin does not directly support Windows Phone apps. However, because you can write iOS and Android apps in C#, and C# is the native language for Windows Phone, using Xamarin allows you to write code that is usable across all three mobile platforms. Xamarin also provides some tools (like their Xamarin.Mobile library) that make this easier by providing a common interface to some common platform functions that will run on all three platforms.
You can write a mobile app that uses Facebook's API with Xamarin, but you cannot create a Facebook app (one that runs on Facebook).
You may find the actual list of additional platforms here.
On April 2019, it's listed as:
Android (incl. Android Wear)
iOS (incl. watchOS and tvOS)
Windows (UWP and WPF)
Linux (GTK)
Mac
Tizen
Windows Phone not supported since Xamarin 3.x

Mobile test automation tools recommended in industry

Please suggest the recommended open source tools for mobile automation testing which supports ios and android?
For Android I would recommend
UI automator framework and Robotium
I recommend Monkeytalk. Try it-
http://www.gorillalogic.com/monkeytalk
It has very good online documentation and tutorials.
I would recommend to use appium: http://appium.io/ which is open source, cross-platform test automation tool for native, hybrid and mobile web apps
Selenium webdriver is good for Android as well as iphone.
On iphone it works slowly but accurate result.
Appium is really coming up in these days to capture Android and IPhone mobile automation market though it has some limitation for Android automation like support for Toast messages is missing etc.
Robotium can be a good choice for Android automation as it comes with a flexible API with a large number of utility methods included inside.
If you looking to automation Android or IPhone Web applications, Selenium Android Driver and IPhone driver can be a good choice.
Today you have plenty of approaches, you can use Appium as everyone said, here you have the advantage that is similar to Selenium and same code can run for Android and iOS. It's black box testing and it's slow, 8 times more slow than native approaches.
So, you have native approaches, Espresso for Android and XcuiTest for iOS. This approaches are faster that Appium and are white or grey box testing. The disadvantage is that you need to code Java/Kotlin and Swift for the tests and maybe you testers have no skills in this languages but developers can help.

Libgdx for Windows Phone 8

I want port my libGDX game to Windows Phone.
Can I compile my libGDX game for Windows Phone 8?
No, not directly. Currently, libGDX "only" works for Mac, Windows, Android, HTML5 (via Google Web Toolkit), and (beta) iOS.
You may be able to make the HTML5 output run on a Windows Phone (depends on how spiffy the JavaScript engine in the browser is). Then you'd need some way to package this for Windows Phone (on Android or iOS you could use PhoneGap, there may be some equivalent for WP8).
The iOS support for libGDX is actually done via a C# cross-compiler (!!?), so you may be able to use that step to build something that might run on the WP CLR. However, it looks like that won't be easy. It should be possible to use (and probably improve) other tools to translate/convert a libGDX application to WP, but doing so would probably be a lot of work.