Posts

Showing posts with the label Appium

How to use ADB (Android Debug Bridge) over WiFi | Android automation

Image
Whenever we work with Android mobile app automation we have to connect the device using USB cable. We can connect the device over Wi-Fi. To get rid of from the USB there is a super simple way! All you need is a USB cable (for the initial setup) and have both devices in the same network. This will work for non-rooted devices also. Precondition:  Your system and device must be in the same network. Android mobile must have developer option set to true. ADB (Android debug bridge) must be configure Android SDK installed. Step 1. Attach mobile via USB Step 2. Open then command terminal type  adb devices  and press enter It will confirm that your device is connected and able to recognize by android sdk. Step 3:   type: adb tcpip 5555 Step 4:To find the mobile ip type: adb shell ip - f inet addr show wlan0 Step 5: The ip address will be shown in second line like this: inet 192.168 . 1.233 / 24 brd 192.168 . 1.255 scope gl...

How to know app package and activities information without having apk | android app | Appium

Image
How to know app package and activities information without having apk | android app | Appium In Android app mobile automation,we need apk file of app but sometimes we have to perform action on inbuild app(pre installed) which come with device like call,sms etc.. for this we do not have apk file. Basically in android app automation we need app package information  and app activities. In case of apk it is easy to get above information with appium. But if we do not have apk and need the app package/activities information, we can use following command: Precondition:  1. Android mobile must have developer option set to true. 2. ADB (Android debug bridge) must be configure 3. Android SDK installed. Step1. Open then command terminal type adb devices  and press enter It will confirm that your device is connected and able to recognize by android sdk. Step2: Now in mobile, open the app of which you want to get app pkg info/activities. In your m...

Automation Testing of Android app on device using Appium

Image
1)       Run the setup using the below provided location using the URL as : http://developer.android.com/sdk/index.html#Other and click on installer_r24.0.1-windows.exe for windows. 2)       Agree to the terms of service and licence from google and download the installer. 3)       Download the Appium for windows latest version from http://appium.io/ . 4)       Download java-client version for the same latest from location http://appium.io/downloads.html 5)       Set ANDROID_HOME as environment variable providing the path for the SDK till the SDK path 6)       Set the path for platform tools and tools folder specifically like below : D:\Mobiletesting\MobileSDK\sdk\platform-tools;D:\Mobiletesting\MobileSDK\sdk\tools; 7)       Once the path for tools and platform-tools is set che...