appium-sikuli-driver icon indicating copy to clipboard operation
appium-sikuli-driver copied to clipboard

Starting AppiumServer within code

Open saikrishna321 opened this issue 8 years ago • 5 comments

there is no need to start the appium server from commandline. This PR will start the appium-server programatically.

We need to specify APPIUM_JS="/usr/local/lib/node_modules/appium/bin/appium.js" as part of the runner command, location for appium.js varies for every-user

saikrishna321 avatar Dec 18 '15 09:12 saikrishna321

Thank You. This is very good way if You want to run tests only locally. Let's keep it as separate branch. But in general, if You want to do it against some test cloud like Testdroid or Saucelabs then we need to specify the URL and port.

dzaiats avatar Dec 18 '15 10:12 dzaiats

@dzaiats Makes sense.. how about keep it this way driver = new SikuppiumDriver(new URL("http://127.0.0.1:4723/wd/hub"), CapabilitiesFactory.getCapabilities());

Still you will b able to run the server from your code ?

saikrishna321 avatar Dec 18 '15 10:12 saikrishna321

@dzaiats ahh .. i get what your saying... if its running on the cloud then the URL and PORT would b passed as part of the appium --server-caps .. i get that :+1:

saikrishna321 avatar Dec 18 '15 10:12 saikrishna321

Yes, exactly. And I think that specifying of the path to the local Appium library could make issues. Especially if You have few versions of Appium. But You showed very good example of how to do it locally. Thanks!

dzaiats avatar Dec 18 '15 10:12 dzaiats

Thank you. Your Welcome :+1:

saikrishna321 avatar Dec 18 '15 10:12 saikrishna321