vividus-framework / vividus

VIVIDUS is all in one test automation tool
https://docs.vividus.dev
Apache License 2.0
382 stars 85 forks source link

Introduce step' availability on the platform checking mechanism #1991

Open ikalinin1 opened 3 years ago

ikalinin1 commented 3 years ago

We can introduce platform availability checking step monitor similar code https://github.com/vividus-framework/vividus/blob/master/vividus-plugin-mobile-app/src/main/java/org/vividus/bdd/mobileapp/steps/ElementSteps.java#L56 cc @valfirst @uarlouski

@SupportedOn(platform="ios", errorMessage= "Profiling is supported only on ios")

Originally posted by @ikalinin1 in https://github.com/vividus-framework/vividus/pull/1988#r713732196

uarlouski commented 2 years ago

sidenote Even if we close the platform availability checking at step level, it's still will be possible to use the underlying API used by platform specific steps outside of those steps due to lack of platform check