-
-
Notifications
You must be signed in to change notification settings - Fork 760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How to set up AppiumDriverLocalService #274
Comments
@saikrishna321 new AppiumServiceBuilder().
withArgument(GeneralServerFlag.UIID,"your UIID"); If it is enough please close this ticket. Otherwise please provide some more details. |
@TikhomirovSergey Awesome.. 👍 Closing the ticket |
@TikhomirovSergey How can we set the path of LOG_LEVEL, like i want to name the file as udid.txt where should i specify that ? |
(GeneralServerFlag.LOG_LEVEL, "info") i see logs.txt created under ma project dir. How can i specify the path and fileName of this ? |
@saikrishna321 new AppiumServiceBuilder().withLogFile(new File("path to the log file")) Please close it again if the answer is right. |
@TikhomirovSergey Thanks a lot.. very helpfull.. 👍 any info on how to use SHELL and WebHOOK flag ? Would b great if you can join the gitter room . |
@saikrishna321 new AppiumServiceBuilder().withArgument(GeneralServerFlag.SHELL). //here I can be wrong
.withArgument(GeneralServerFlag.WEB_HOOK("localhost:9876")); //Also send log output to this HTTP listener Some flags are boolean. At this case you have only new AppiumServiceBuilder().withArgument(YOUR_DESIRED_FLAG); Some flags require values new AppiumServiceBuilder().withArgument(YOUR_DESIRED_FLAG, "ITS_VALUE"); The full list of flags you can fing here: http://appium.io/slate/en/master/?ruby#appium-server-arguments Here are samples. All flags are described in java_cleint via: |
During the test execution, if i hit localhost:9876 nothing on this port is running |
It just was a sample :) |
Can we run Appium Server as daemon ? Do we have any flag to run AppiumDriverLocalService in background, as it is blocking my code to execute further. |
@cdewangan it is most likely you are facing up this issue |
Thats right @TikhomirovSergey , Thanks for letting me know. I will wait for this merge. |
If there is no question anymore I'm closing it... |
Hi @saikrishna321 @TikhomirovSergey I am not able to set the device Udid using the code below: new AppiumServiceBuilder(). For me "UIID" flag is not coming in GeneralServerFlag. I am using appium java_client 4.0.0 . kindly help me on this. Thanks |
Hi @saikrishna321
But if I am supplying like this, my Appium server is not getting started.Am I doing wrong? could you please let me know the actual implementation. After supplying capabilities I am getting output on console like this shown below:
|
@ravikr42 Which version of appium server are you using? If it is appium 1.4.x please use the latest server and client which is 1.5.3 & 4.0 |
Hi @SrinivasanTarget -Ravi |
Uninstall Appium 1.4.x and install Appium1.5.3. Give a try after that, it On 18-Jul-2016 11:16 PM, "Ravi Kumar" notifications@github.com wrote:
|
@SrinivasanTarget Thank you for your reply. I will try this and let you know. Thank you 👍 |
It Worked. Thank you. |
@TikhomirovSergey is it possible to set the Android UDID when running appium server programmatically, as i'm running my tests in parallel. Can we set the way BOOTSTRAP port is set below?
new AppiumServiceBuilder().
withArgument(AndroidServerFlag.BOOTSTRAP_PORT_NUMBER,"Your port number");
The text was updated successfully, but these errors were encountered: