Hi,
I have to start and stop appium server (node) on mac machine using java code from a windows machine
is it possible and if it so can i have the code pls
Thanks in advance
Sugu
Hi,
I have to start and stop appium server (node) on mac machine using java code from a windows machine
is it possible and if it so can i have the code pls
Thanks in advance
Sugu
Hello All,
Please check the below link from my blog,
Regards,
A. K. Sahu
Hi
I am getting Invalid character error with code 800A03F6. Please help.
Hi Priyank_Shah
I was using this to Start/Stop my Appium Server. It has been working for the past 3 months. But now i upgrade to Appium 1.4.16.1 and this doesnât start the Appium Server and doesnât throws any error. Please let me know if I am doing anything wrong.
public class SampleJavaTest {
private static Process process;
public static String APPIUM_NODE_FILEPATH = âC:/Program Files (x86)/Appium/node.exeâ;
public static String APPIUM_SERVERSCRIPT_FILEPATH = âC:/Program Files (x86)/Appium/node_modules/appium/bin/appium.jsâ;
public static String APPIUMSERVERSTART = ââ" + APPIUM_NODE_FILEPATH + ââ ââ + APPIUM_SERVERSCRIPT_FILEPATH + ââ ";
public void startServer() throws IOException, InterruptedException
{
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 {
startAppiumServer();
stopAppiumServer();
}
I donât have a solution to your problem but you may want to look into the new version of the java-client which supports starting the server from java and offers, as far as I can see, a very elegant solution.
Hello Friend,
Please try the code that I posted in my post http://aksahu.blogspot.in/2015/10/start-and-stop-appium-server.html
Hope it will help you!
Thanks,
Aswini Kumar
Hi All,
I had found couple of github repo which has got really optimized code; showing this plus running test cases on multiple device parallel or distributed way.
Thanks to saikrishna321 for sharing this knowledge with community.
Regards,
Vikram
Hi,
I have posted detailed explanation on starting and stopping Appium server with java code which works in windows as well as in Linux.
Regards,
Anuja
Thanks for all the help! I got it working.
Thanks, most welcome⌠hope people are finding it usefull⌠iâm currently working on extending this to cucumber-jvm where u can run your features in parallel and distributed way âŚ
Thanks !!
This is very useful code.
Thats awesome⌠looking forward for it
For anybody reading this who happens to be using npm (node/js/typescript), Iâve created a module called appium-controller that starts and stops appium in the background programmatically⌠appium logs are stored as well.