SpecFlowOSS / SpecFlow.Actions

BSD 3-Clause "New" or "Revised" License
57 stars 53 forks source link

Allow additional capabilities on AppiumOptions #100

Closed aronweiler closed 2 years ago

aronweiler commented 2 years ago

Currently, there is no way to pick up additional capabilities for Appium through the specflow.actions.json file.

See feature request: Allow additional options for Appium (WindowsAppDriver) to be configured in specflow.actions.json

This PR is a simple change that allows additional capabilities specified in the specflow.actions.json file to be added to the AppiumOptions in SpecFlow.Actions.WindowsAppDriver.

The need for this change arose due to a requirement to pass environment variables to Appium when launching the AUT using WindowsAppDriver.

Now, in the specflow.actions.json file in my test project, I can add additional capabilities, such as the following:

"windowsAppDriver": {
  "capabilities": {
    "app": "<path to AUT>",
    "appArguments": "-env local"
  }

Added one additional unit test to verify.

SabotageAndi commented 2 years ago

Awesome! Thank you!