Posts

Showing posts from July, 2020

How To Connect Real Android Mobile Device On Windows and MAC OS

Connect Real Android Mobile Device On Win PREREQUISITES - Java installed on system - JAVA_HOME is set in environment variables command to check : java -version - An android mobile device - Connecting cable - 200 MB to 1 GB of free space Step 1 : Download SDK tools https://developer.android.com/studio ---------------------------------------------------------------------------------- Step 2 : Unzip folder & Extract platform tools ---------------------------------------------------------------------------------- Step 3 : Set environment variables ANDROID_HOME = location of sdk folder Path : append path of platform_tools folder ---------------------------------------------------------------------------------- Step 4 : Check command adb devices on command line ---------------------------------------------------------------------------------- Step 5 : Make device ready - enable developer mode- tab on - make USB Debugging on -------------------------------------------------...

connect mobile to computer without USB cable

Step 1 : Ensure your computer and mobile phone are connected to same wifi network Step 2 : Connect mobile with computer using cable Step 3 : On cmd run adb devices. This will list the devices connected Step 4 : Now on CMD run adb tcpip 5555 You can use any other port also You should get output like - restarting in TCP mode port: 5555 Step 5 : Disconnect mobile cable Step 6 : Get your mobile ip - Settings - About Phone - Status OR Settings - WiFi - your connected network - and note down the IP address Step 7 : Run on cmd adb connect ip adb connect 192.168.1.4 if any issues can do add kill-server adb connect 192.168.1.4 OR add kill-server adb connect 192.168.1.4:5555 Step 8 : Now you can use your mobile without cable Step 9 : To verify run adb devices command and it should list your device

connect mobile to computer without USB cable

Step 1 : Ensure your computer and mobile phone are connected to same wifi network Step 2 : Connect mobile with computer using cable Step 3 : On cmd run adb devices. This will list the devices connected Step 4 : Now on CMD run adb tcpip 5555 You can use any other port also You should get output like - restarting in TCP mode port: 5555 Step 5 : Disconnect mobile cable Step 6 : Get your mobile ip - Settings - About Phone - Status OR Settings - WiFi - your connected network - and note down the IP address Step 7 : Run on cmd adb connect ip adb connect 192.168.1.4 if any issues can do add kill-server adb connect 192.168.1.4 OR add kill-server adb connect 192.168.1.4:5555 Step 8 : Now you can use your mobile without cable Step 9 : To verify run adb devices command and it should list your device

Appium

First Appium Project with Java, opening the Calc App in android Device

First Appium Project with Java import java.net.MalformedURLException; import java.net.URL; import org.openqa.selenium.WebDriver; import org.openqa.selenium.remote.DesiredCapabilities; import io.appium.java_client.AppiumDriver; import io.appium.java_client.MobileElement; import io.appium.java_client.android.AndroidDriver; public class CalculatorTest { static AppiumDriver<MobileElement> driver; public static void main(String[] args) { // TODO Auto-generated method stub try { openCalculator(); } catch (Exception e) { System.out.println(e.getCause()); System.out.println(e.getMessage()); System.out.println(e.getStackTrace()); e.printStackTrace(); } } public static void openCalculator() throws Exception { //DeviceDetails DesiredCapabilities cap = new DesiredCapabilities(); cap.setCapability("deviceName", "sudheerdevice"); cap.setCapability("udid", "Z...

How To Connect Real Android Mobile Device On Windows and MAC OS

Connect Real Android Mobile Device On Win PREREQUISITES - Java installed on system - JAVA_HOME is set in environment variables command to check : java -version - An android mobile device - Connecting cable - 200 MB to 1 GB of free space Step 1 : Download SDK tools https://developer.android.com/studio ---------------------------------------------------------------------------------- Step 2 : Unzip folder & Extract platform tools ---------------------------------------------------------------------------------- Step 3 : Set environment variables ANDROID_HOME = location of sdk folder Path : append path of platform_tools folder ---------------------------------------------------------------------------------- Step 4 : Check command adb devices on command line ---------------------------------------------------------------------------------- Step 5 : Make device ready - enable developer mode- tab on - make USB Debugging on ------------------------------------------------...

Appium Install in Mac OS

1. How to install appium with node.js 2. How to install appium with with Appium Desktop Client 3. How to check installation & dependencies (appium-doctor) 4. How to uninstall appium http://appium.io/ Step 1 : Check if node is installed on your system node -v Step 2 : Install node.js https://nodejs.org/en/download/ https://brew.sh/ brew install node Step 3 : Check if node is installed node -v npm -v Step 4 : Install appium npm install -g appium Step 5 : Check appium is installed appium -v Step 6 : Start appium appium Installing appium with appium desktop client Step 1 : Download appium desktop client - http://appium.io/ https://github.com/appium/appium-desktop Step 2 : Double click on the .dmg file to install appium desktop client Step 3 : Start appium desktop client Appium-Doctor https://www.npmjs.com/package/appium-... https://github.com/appium/appium-doctor npm install appium-doctor -g How to uninstall appium If inst...