Skip to main content
Kat
Employee
Jul 20, 2023 2:30 PM UTC
Question

Why is TOSCA / Appium using the wrong device for mobile test?

I have setup a mobile Test to run on an iOS device:

image

The Test currently just opens the Application

image

Yet when I start the Application then execution stops with an error  imageThe device UUID is an Android device. Why does TOSCA / Appium tries to execute an iOS application on an Android device? Why device set in the test configuration ignored? Where does the Android device ID come from.

 

[Originally asked and solved on Support Hub]

3 replies

Community Manager
Jul 20, 2023 2:30 PM UTC

Is there a second ApplicationId configuration parameter associated with that test, perhaps? I can see a second (unexpanded) iOS configuration at the bottom of your screenshot.

krischik
Squadron Leader
Mar 28, 2024 3:23 PM UTC

Is there a second ApplicationId configuration parameter associated with that test, perhaps? I can see a second (unexpanded) iOS configuration at the bottom of your screenshot.

No it’s not. If something important had been in that configuration I would have expanded it and would have added it to the screenshot:

The Problem still exist. In fact it’s even worse. I tried to run tests on two Android devices and it was started twice on the same device. It seems TOSCA executes all tests on the same device.

krischik
Squadron Leader
Mar 28, 2024 4:02 PM UTC

Since we have DEX Agents I did a few additional tests. I setup the tests to run on two android and two iOS devices. So I have a total of 4 devices.

The first test is executed on each DEX Agents is sent to then correct device and and any subsequent test is executed on the same device. If the first test on any given DEX-Agent is Android then even iOS tests will be send to that Android device. If the first test is iOS then even Android tests will be sent to that iOS device.

It seems the DEX-Agent won’t switch devices and is stuck to the first device used.