Skip to main content

Posts

Showing posts from November, 2017

How to find appPackage and appActivity from android project

If you have android project, there is a easy way to fine find appPackage and appActivity Open android project (Android studio) Go to Project > Expand the project > app > src > main > Open the AndroidManifest.xml file Collect appPackage and appActivity as given example below: appPackage =   com .example.ezyautomation.myapplication appActivity =   com .example.ezyautomation.myapplication . MainActivity How to find app package and app activity from apk file

How to find app package and app activity from apk file

There are three ways to find app package and activity form apk, here I'm trying to show the ways Way 1: B y using Appium server Install the old version of Appium on your PC  (Appium 1.2.2) Open the  Appium server > Click on the  Android icon > Check the  Application Path check box> Choose > Select apk file Package and Launch Activity will be populated automatically Use Package as appPackage and Launch Activity as appActivity Way 2: By using APK Info application Install test application(which you want to test) on your device Install 'APK Info' application on your device from Play Store (Play Store link) Open 'APK Info' application > Long press on desired application (in my case 'Calculator') Detailed Information   Collect the appPackage and appActivity from below the Activates title Note: For some application appPackage and appActivity not same for that case you should use uiautomatorv

Prepare Windows PC for Automating your Android Application by using APPIUM

Prepare Windows PC for Automating your Android Application by using APPIUM and run your first Automation script with TestNG framework. In this tutorial series I'm trying to show how to automat all types of mobile app ( Native , Hybrid , and Web ). Here I'm following few simple steps for the installation process. This tutorial not for those who are expert in Automation/APPIUM Prerequisite to use APPIUM 1. ANDROID SDK 2. JDK (Java Development Kit) 3. APPIUM server for Windows 4. IntelliJ IDEA (Community Edition) Steps: Step 1: Download all the prerequisite Step 2: Install JDK and set environment variable path Step 3: Install IntelliJ IDEA Step 4: Install SDK and set environment variable path Step 5: Install APPIUM server Step 6: Run your first Automation script Step 1: Download all the prerequisite ANDROID SDK (Download link) JDK (Java Development Kit) (Download link) APPIUM For Windows (Download link) IntelliJ IDEA (Community Edition) (Download lin