Appium Installation Through Terminal

Pre-Requisites

Brew Installation

Java Installation:

IntelliJ Installation:

TestNG Installation:

<dependencies>
<!-- https://mvnrepository.com/artifact/org.testng/testng | TestNG for running testing-->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.1.0</version>
<scope>compile</scope>
</dependency>
</dependencies>

Maven Installation:

Appium Installation

<dependencies>
<!-- https://mvnrepository.com/artifact/org.testng/testng | TestNG for running testing-->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.1.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>7.3.0</version>
</dependency>
</dependencies>

Android Studio Installation:

Charles Proxy Installation:

Launch Apps Using IntelliJ:

//Launch Android Sys App in Real Devicepublic class LaunchSysAppInRealDevice {
private static AndroidDriver driver;

@Test
public static void setUpAppium() throws MalformedURLException {
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android");
caps.setCapability(MobileCapabilityType.PLATFORM_VERSION, "9.0");
caps.setCapability(MobileCapabilityType.DEVICE_NAME, "SM-G950U");
caps.setCapability(MobileCapabilityType.UDID, "98883746303999999");
caps.setCapability(AndroidMobileCapabilityType.APP_PACKAGE,"com.android.calculator2");
caps.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY,"com.android.calculator2.Calculator");

driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), caps);
System.out.println("SYS APP Launched In Android Real Device Successfully");
}
}
===================================================================//Launch iOS Sys App in Real Device

public class LaunchSysAppInRealDevice {
private static IOSDriver driver;

@Test
public static void setUpAppium() throws MalformedURLException {
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
caps.setCapability(MobileCapabilityType.PLATFORM_VERSION, "12.4");
caps.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
caps.setCapability(IOSMobileCapabilityType.BUNDLE_ID, "com.apple.news");
caps.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone X");
caps.setCapability(MobileCapabilityType.UDID, "86be2eb53ab8483cce86428ae90628a343988988)");

driver = new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"), caps);
System.out.println("IOS Simulator Launched In Sys App File Successful");
}
}

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store