Unable to connect to another machine from iOS using RemoteWebDriver

0

Hello everybody. I'm using AWS Device Farm to run my tests. This is web to mobile testing for video calls, where both desktop pc and mobile phone must be used in one framework. I have a problem to connect to my remote machine in test while using iOS, but everything is fine with Android. I have both Android and iOS applications for mobile testing.
The steps I do to run tests using AWS device farm:

  1. We have a remote machine with open static IP address where I have a selenium-server-standalone started;
  2. I put my project to AWS Device Farm -> Mobile device testing project -> Create a new project;
  3. I fill out all the blanks, upload my application, select Java Appium TestNG, set configuration, create device pool and launch run;
  4. Project goes to AWS Device Farm and while method 'setup' is invokes both the remote machine and selected mobile device and tests run;

When I use my Android application, the test is able to connect to my remote machine and then invoke Android phone, then tests run in parallel on both web pc and mobile device.

But when I try to do the same thing with iOS application, I have an unknown problem. I do the same steps with Android. So, the difference is only that it is iOS phone. And when I try to connect to my remote machine, the test skips. Without any log or comment...just skips and that's it.

The way I connect to my machine from AWS Device farm mobile project:

@BeforeTest
public void setUp() {

//web
DesiredCapabilities dc = new DesiredCapabilities();
dc.setBrowserName("chrome");
dc.setPlatform(Platform.ANY);
URL remoteHostURL = new URL("http://x.x.x.x:4444/wd/hub");
DRIVER_WEB.set(new RemoteWebDriver(remoteHostURL, dc));

//mobile
capabilities = CapabilityManager.getAndroidCapabilities();
DRIVER_MOBILE.set(new AppiumDriver<MobileElement>(remoteAppiumHostURL, capabilities));
...
}
What could cause this problem? Cos it works only for Android, but doesn't work for iOS. I'd be very thankful to get any help from you!

질문됨 3년 전257회 조회
1개 답변
0

The problem was in the version of test spec. We have to use TestSpec V6

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠