How to start with mobile testing with Appium - selenium

Can anyone suggest to startup way with Appium mobile testing. Already have knowledge of Automation testing using Selenium.

start with android automation as you automate basically any app. Use your phone if you have android and if not install genny motion as virtual machine
try this
https://www.guru99.com/introduction-to-appium.html

You can get started with Android automation which is easy to understand and resources & tutorials are easily available.
Refer : http://appium.io/slate/en/tutorial/android.html?java#
Also , if you are starting with Android first , get familiar with few basic Android commands - like ADB , AAPT .
Learn how to obtain package name of any application. UDID of Android device etc.
try this to get package name /udid of android phone - https://www.youtube.com/channel/UCEUDm1ZxsX6teks8wM71bmQ/videos
&
https://qahumor.blogspot.in/2015/06/
Hope these are helpful to get start with basic things.

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.

How to test mobile apps on different devices

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

"Searching for devices..." when I try to run a new nativescript-vue project?

I create a nativescript-vue project which following the official start guide here
But when I try to start and preview it on the browser...Nothing I can get from the terminal except "Searching for devices..."
I'm new to it, can someone give me some help on it?
nativescript-vue is searching for a mobile devices connected to your environment (or emulators). Nothing will happen in the browser as this is a mobile development framework. To test it attach a real mobile device (Android or iOS but for iOS, you will need MAC and provision profiles & certificates) or create an emulator/simulator and give it a go.

Calabash Automation Testing

I am new in Automating the apps for testing Android and i like to advance to this level... I have researched for Appium and Calabash... but knowing the difference pretty complicated.. There are my questions:
1: For Calabash, do we need the source code, i mean can i have APK and give test cases and so on? or do I NEED the source code even if im using the elements from app?
2: I heard i can use the Appium with cucumber, and same question do i need source code for that?
I have researched about it and all i get is for Apple apps... but nothing much for android...
You don't need source code. All you need is apk file, packageName and ActivityName to launch the app.
In Appium framework, all you need is app file (for android it will be simply .apk file).
Source code will be never needed, all elements from UI that you would like to interact with, can be simply get from Appium Inspector.
For both calabash and Appium you don't need to source code. you can automate application using apk file.
Yes you can use Appium with cucumber.
To find object locators of application use calabash console and Android UI Viewer, Appium GUI.

How to test Phonegap application on Phonegap emulator

I am using Phonegap build to generate executable files for each platform. Each time I make changes in my code, I have to upload the code on phonegap build and generate new Apk file (for android). I don't want to test on real device, How can I test my code on phonegap emulator??
Getting started guides are very confusing for beginners like me. Please help me out.
You can download the AVD from http://developer.android.com/sdk/index.html. Click on DOWNLOAD FOR OTHER PLATFORMS and choose installer_r22.2.1-windows.exe if you are a windows user. Once you have installed it go to the install dir and execute SDK Manager.exe and download the virtual device images you need. Then execute AVD Manager.exe, create a virtual device and you are ready to go.
I Know I'm late but you can use this to test, then generate your apk when you're done.
Only for chrome