Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[plugin-mobile-app] Add profile for local execution using Appium 2.x server #3302

Merged
merged 1 commit into from
Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 22 additions & 8 deletions docs/modules/plugins/pages/plugin-mobile-app.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,31 @@ selenium.grid.automation-name=UIAutomator2
----

=== Local
:local-profile: mobile_app/local

The profile simplifies execution of tests against the local Appium server. It could be used in conjunction with: `{android-profile}`, `{ios-profile}`, `{tvos-profile}`
The profile can be enabled by adding `{local-profile}` to `configuration.profiles` property
The local profiles can be used in conjunction with:

Default profile configuration
- `{android-profile}`,
- `{ios-profile}`,
- `{tvos-profile}`.

==== `mobile_app/local`

The profile simplifies configuration of tests execution against the local Appium *1.x* server.

.Configure local execution of the tests for iOS native application
[source,properties]
----
configuration.profiles=mobile_app/local,mobile_app/ios
----

==== `mobile_app/local2`

The profile simplifies configuration of tests execution against the local Appium https://appium.github.io/appium/docs/en/2.0/guides/migrating-1-to-2/#breaking-changes[*2.x*] server.

.Configure local execution of the tests for Android native application
[source,properties]
----
selenium.grid.url=http://127.0.0.1:4723/wd/hub
selenium.grid.platformName=${selenium.grid.platform-name}
selenium.grid.automationName=${selenium.grid.automation-name}
configuration.profiles=mobile_app/local2,mobile_app/android
----

== xref:commons:variables.adoc[Dynamic variables]
Expand Down Expand Up @@ -484,7 +498,7 @@ accomplish it by deleting following files: */Media/PhotoData/Photos.sqlite*, */M

=== Switch to Web view by name

Switches context to a web view with name that matches the rule {web-view-info}. Also Appium capabilities for https://github.com/appium/appium-xcuitest-driver#web-context[iOS] and https://github.com/appium/appium-uiautomator2-driver#web-context[Android] are available for the fine-tuning configuration.
Switches context to a web view with name that matches the rule {web-view-info}. Also Appium capabilities for https://github.com/appium/appium-xcuitest-driver#web-context[iOS] and https://github.com/appium/appium-uiautomator2-driver#web-context[Android] are available for the fine-tuning configuration.

[source,gherkin]
----
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
selenium.grid.url=http://127.0.0.1:4723/

selenium.grid.capabilities.platformName=${selenium.grid.platform-name}
selenium.grid.capabilities.automationName=${selenium.grid.automation-name}