Appium Server Property Mapping

Good Afternoon Experitest;

I am trying to make my client code usable (as much as possible) for both iOS and Android tests. I believe that the Appium Studio server will map client accessibilityIdentifier to ios AccessibilityIdentifier and android ContentDescription. Please confirm. Are there other mappings done by the Appium Server ? if so, where can they be found/documented ?

thanks
walter

Hi Walter

My recommendation will be to rely solely on the properties that you see in the object spy - these are the only “truths” that you can actually rely upon

Regarding the mapping -

We try to map identifiers for a single OS, in-order to ease your test transition when upgrading a version

so if apple decides to switch the name of the identifier from iOS 9 to 10, we do the internal mapping so

accessabilityLabel (iOS 9) => acessabilityIdentifier (iOS 10 \ 11)

we don’t map fields for cross OS (Android \ iOS )

Hi Tom,

Thanks for the quick reply.

Is it not possible to map cross-OS to try and make our lives easier (= less code on our part) ? Seems there could be a “mapping” file that gets read in by Appium Studio Server to provide flexible mapping of certain appium client constructs (such as accessibilityId).

Perhaps you can suggest another way that the Appium Studio Server can be used to better provide cross platform ability for the client ?

regards
Walter

Hi

How are you managing your object repositories today? can you share a sample class for page elements?

you can share in private if you don’t want to send it here

Tom, I responded privately. Look forward to hearing from you.