Test execution on Mobile so slow

Hi @satish1607,

How are you defining the Test Objects? Is it by xpath, type, name, etc.? Having a unique name (which comes from the accessibility id in the Xcode project) should provide the fastest way to get the element.

It is likely that iOS tests are going to be slower than Android tests for a couple of reasons:

  • iOS interactions need to go through the WebDriverAgent to access the device or simulator, which is another app that gets installed on the device. This may not be as efficient as Android.
  • To determine what’s on the screen, Appium gets an XML representation of all of the elements. For Android, only the visible or loaded elements on the screen come back, so the XML can be much smaller than iOS, which returns everything. This makes parsing XML in iOS take longer, hence the need for more targeted xpaths.

– Chris

1 Like