How to Start Appium Server using Coding in MAC.
package com.flipkart;
import java.io.IOException;
public class AppiumLaunch {
public static String APPIUMSERVERSTART = "/Users/pardeep.k/local/bin/appium";
public static void startAppiumServer() throws IOException, InterruptedException {
ProcessBuilder pb = new ProcessBuilder(APPIUMSERVERSTART);
pb.redirectOutput(ProcessBuilder.Redirect.INHERIT);
pb.redirectError(ProcessBuilder.Redirect.INHERIT);
Process process = pb.start();
Runtime runtime = Runtime.getRuntime();
process = runtime.exec(APPIUMSERVERSTART);
Thread.sleep(5000);
if (process != null) {
System.out.println("Appium server started");
}
}
public static void main(String[] args) throws IOException, InterruptedException {
AppiumLaunch.startAppiumServer();
}
}
Informative blog... Thanks for sharing and keep updating
ReplyDeleteEthical Hacking Course in Chennai
Ethical Hacking course in Bangalore
Excellent Blog to read. You have shared useful information. Thank you.
ReplyDeleteSEO Online Training
Learn SEO Online
Happy to read the informative blog. Thanks for sharing
ReplyDeletebest selenium training center in chennai
best training institute for selenium in chennai
Such a good post .thanks for sharing
ReplyDeletePHP Training in Porur
PHP Training in Porur
Mindblowing blog very useful thanks
ReplyDeletejava training in t nagar
Java training in chennai