Skip to content
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

Is there any option to set adb remote server for device-farm? #609

Closed
macro-dadt opened this issue Jan 18, 2023 · 10 comments
Closed

Is there any option to set adb remote server for device-farm? #609

macro-dadt opened this issue Jan 18, 2023 · 10 comments

Comments

@macro-dadt
Copy link

In Appium, we can set adb remote server to run tests on remote devices. Since Appium and appium-dashboard-plugin are both using appium-adb, I assume it is possible to set adb remote server for appium-dashboard-plugin aslo. However, I couldn't find it anywhere. Could anyone please help me out? This is super crucial for me to build a distributed cloud-based system

@saikrishna321
Copy link
Member

@macro-dadt currently we don't. If you can explain how this will be help, we can work it out.

@macro-dadt
Copy link
Author

hi @saikrishna321 , So the concept here is to utilize Appium nodes in the cloud, they are accessing mobile devices via an on-premise ADB server. These Appium nodes will then be linked to an Appium hub (at this point we need device-farm to support remote adb server).
imo, It would be beneficial for a lot of teams if this feature was available

@saikrishna321
Copy link
Member

@macro-dadt Thanks for the information. This plugin does support remote device(node) execution.

Please check https://github.com/AppiumTestDistribution/appium-device-farm/wiki/Remote-Execution

Let us know if this is helpful.

@macro-dadt
Copy link
Author

@saikrishna321 Thank you for providing the information. I comprehend that the hub can connect to remote nodes. However, in order for those remote nodes to access remote smartphones, they need to connect to remote ADB servers. Without this support, device-farm won't be able to display connected smartphones.

@saikrishna321
Copy link
Member

saikrishna321 commented Jan 19, 2023

So your saying remote node machines don't have devices connected? @macro-dadt

@macro-dadt
Copy link
Author

@saikrishna321 yes, that is correct. the remote machines will be in cloud, so they can't have smartphones connected physically.

@saikrishna321
Copy link
Member

@macro-dadt I did try with remoteAdbHost and seems we also need to run command on remote machine

adb kill-server
adb -a -P 5037 server nodaemon

Is this the case or am I missing something?

@saikrishna321
Copy link
Member

@macro-dadt Can you try with the latest version 3.17.0. It has support to connect to adbRemotHost. Please refer https://github.com/AppiumTestDistribution/appium-device-farm/blob/main/sample-config.json#L8

@macro-dadt
Copy link
Author

@saikrishna321 this is great! Thanks a lot. Let me try it out. Sorry for the delay, just got back from a vacation

@saikrishna321
Copy link
Member

saikrishna321 commented Jan 31, 2023

@macro-dadt Feel free to close this issue if its resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants