-
Notifications
You must be signed in to change notification settings - Fork 134
Ocaramba framework with Appium
To use Ocaramba with Appium, you need to configure your test project to use the Appium browser type. The framework supports Appium through a dedicated browser type enum BrowserType:
Appium
Ocaramba includes a dedicated Appium test project that demonstrates the integration Ocaramba.Tests.Appium.csproj. This project includes the necessary Appium.WebDriver dependencies and shows the proper project setup.
The framework provides built-in Appium support through the DriverContext class, which contains an Appium-specific startup method DriverContext.cs. This method handles the configuration and initialization of Appium drivers for mobile testing.
Appium-specific configuration properties are defined in the BaseConfiguration class BaseConfiguration.cs , which reads settings from your appsettings.json file.
"AppiumPlatformName": "Android",
"AppiumDeviceName": "emulator-5554",
"AppiumAppPath": "/home/runner/work/Ocaramba/Ocaramba/Ocaramba.Tests.Appium/bin/Release/net8.0/ApiDemos-debug.apk",
"AppiumAppPackage": "io.appium.android.apis",
"AppiumAppActivity": "io.appium.android.apis.ApiDemos",
"AppiumServerUrl": "http://127.0.0.1:4723/",
"AppiumAutomationName": "UiAutomator2"
The framework includes a ProjectTestBase class that shows how to properly initialize the driver context for Appium tests ProjectTestBase.cs .
Example configuration files are provided showing the structure needed for Appium settings appsettings.json and appsettings.Linux.json .
The Ocaramba framework provides comprehensive Appium integration that supports both Android and iOS platforms. The implementation uses modern AppiumOptions instead of deprecated DesiredCapabilities, and the configuration is driven through JSON settings files. The framework includes proper dependency management with Appium.WebDriver version 8.0.0 across all mobile testing projects.
For detailed implementation examples and specific configuration options, refer to the Ocaramba.Tests.Appium project within the repository, which serves as a complete working example of Appium integration.
- Home
- Getting started
- Ocaramba framework with Appium
- Parallel tests execution
- MsTest DataDriven tests from Xml and CSV files
- NUnit DataDriven tests from Xml, CSV and Excel files
- Comparing files by NUnit DataDriven tests
- Visual Testing
- Screen shots: full desktop, selenium. PageSource saving
- Verify-asserts without stop tests
- Downloading files
- Helpers
- Override browser profile preferences, install browser extensions, Headless mode
- Debugging Test.Automation framework
- Logging
- Performance measures
- Webdriver Extends
- More common locators
- Selenium-Grid-support
- Advanced Browser Capabilities and Options
- AngularJS synchronization
- Update App.config or appsettings.json
- Cross browser parallel test execution with testing-Cloud-Providers\SeleniumGrid
- Verifying Javascript Errors from browser
- Enabling Performance Log for Chrome
- Azure DevOps Support
- Edge browser Support
- Downloading and running Selenium Grid with Powershell
- Run Ocaramba tests with Docker container
- HTTP auth in Internet explorer
- ExtentReports Support