Skip to content

Instantly share code, notes, and snippets.

@kkashyap1707
Created July 14, 2016 13:10
Show Gist options
  • Save kkashyap1707/cbeeedfafbc0ca791c980ed524288457 to your computer and use it in GitHub Desktop.
Save kkashyap1707/cbeeedfafbc0ca791c980ed524288457 to your computer and use it in GitHub Desktop.
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class AppiumProg {
public static void main(String[] args) {
try
{
String line;
Process p = Runtime.getRuntime().exec("\"C:/Program Files (x86)/Appium/node.exe\" \"C:/Program Files (x86)/Appium/node_modules/appium/bin/Appium.js\" --no-reset --local-timezone");
BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
while ((line = in.readLine()) != null) {
System.out.println(line);
}
try
{
Thread.sleep(10000);
}
catch (InterruptedException e)
{
e.printStackTrace();
}
p.destroy();
}
catch (IOException e)
{
e.printStackTrace();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment