mirror of https://github.com/OpenVidu/openvidu.git
Update Android user to use correct remote URL
parent
82fe3dc986
commit
19f9bee16e
|
@ -11,6 +11,11 @@ public class AndroidAppUser extends BrowserUser {
|
||||||
public AndroidAppUser(String userName, int timeOfWaitInSeconds, String appPath) {
|
public AndroidAppUser(String userName, int timeOfWaitInSeconds, String appPath) {
|
||||||
super(userName, timeOfWaitInSeconds);
|
super(userName, timeOfWaitInSeconds);
|
||||||
|
|
||||||
|
String REMOTE_URL = System.getProperty("REMOTE_URL_ANDROID");
|
||||||
|
if (REMOTE_URL == null) {
|
||||||
|
REMOTE_URL = "http://172.17.0.1:4723/wd/hub";
|
||||||
|
}
|
||||||
|
|
||||||
UiAutomator2Options options = new UiAutomator2Options();
|
UiAutomator2Options options = new UiAutomator2Options();
|
||||||
options.setAutoWebview(true);
|
options.setAutoWebview(true);
|
||||||
options.setApp(appPath);
|
options.setApp(appPath);
|
||||||
|
@ -18,7 +23,7 @@ public class AndroidAppUser extends BrowserUser {
|
||||||
|
|
||||||
URL url = null;
|
URL url = null;
|
||||||
try {
|
try {
|
||||||
url = new URL("http://172.17.0.1:4723/wd/hub");
|
url = new URL(REMOTE_URL);
|
||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue