Wednesday 13 August 2014

Android Build installation

There are following methods using which you can install your android testing build on your testing devices.
------------------------------------------------------------------------------------------------------------

  1. OTA 
  2. USB
  3. ADB

1.OTP
   One of the easiest way  installation android build i found in my experience is Over The Air with the                  help of

  •                IIS,
  •                WAMP
  •                XAMPP
2. USB [MTP]

    Copy APK file in sdcard & Install Manually.

3. ADB [Android Device Bridge]
    Using adb command

    adb install path of file filename.apk

Android QA Essential ADB Commands

Finally after long time i am glad to post QA Essential ADB commands
------------------------------------------------------------------------------------------------------------
ADB -  Android Device Bridge
------------------------------------------------------------------------------------------------------------

Start ADB 

adb start or adb start-server
adb stop  or adb kell-server
________________________________________________

List of devices [Emulator/ Hardware] attached system

adb devices
________________________________________________

Install APK

adb install "Path of apk"
________________________________________________

List on Packages 

adb pm shell list packages

________________________________________________

Uninstall APK

adb unistall "packege name"

_______________________________________________

Remotely Input

adb shell input text "Text"
________________________________________________

Monkey Runner

adb shell monkey -p your.package.name -v 500
________________________________________________

Log Write

adb -d shell logcat > xyz.txt

adb -d shell logcat > logss.txt

________________________________________________

Replace Package

adb install -r myapp-release.apk

__________________________________________________

Copying Files

adb push foo.txt /sdcard/foo.txt

adb pull  /sdcard/foo.txt  newfoo.txt

__________________________________________________

ScreenRecord Video file

adb shell screenrecord /sdcard/demo.mp4
adb pull  /sdcard/demo.mp4
__________________________________________________

To clear application data

adb shell clear com.packagename

MobileAutomation - Handle Pop-ups, Alerts and Prompts in Automate and App Automate Tests

This article shows you how to handle user permission pop-ups, alerts, and prompts in your automated tests on BrowserStack. Introductio...