Using C# and Appium, this project automates UI testing of a Xamarin Forms App, with a single test code base in mind.
- Build the applications for Android and iOS as per usual from the IDE for real devices OR
- Upload the sample apk and ipa files from this path:
SimpleApp.Appium.Core/apps
, using our App Upload REST API (Reference upload commands below). You'd also need to update your user / key in the project's App.config file:SimpleApp.Appium.Core/App.config
# Sample Commands for App Upload
# ---------------------------------------------------
# cUrl for Android:
curl -u "$BROWSERSTACK_USERNAME:$BROWSERSTACK_ACCESS_KEY" \
-X POST "https://api-cloud.browserstack.com/app-automate/upload" \
-F "file=@<path_to_file>/SimpleApp_Android.apk" -F "data={\"custom_id\": \"SimpleApp_Android\"}"
# cUrl for iOS:
curl -u "$BROWSERSTACK_USERNAME:$BROWSERSTACK_ACCESS_KEY" \
-X POST "https://api-cloud.browserstack.com/app-automate/upload" \
-F "file=@<path_to_file>/SimpleApp_iOS.apk" -F "data={\"custom_id\": \"SimpleApp_iOS\"}"
-
Documentation across BrowserStack products:
https://www.browserstack.com/app-automate/appium-c-sharp, https://www.browserstack.com/app-automate/appium-nunit NUnit C# Appium repository for iOS and Android: https://github.com/browserstack/nunit-appium-app-browserstack/
-
Integrations Generic List across Tools / Frameworks / DevOps / Development & Project Management Tools etc: https://www.browserstack.com/integrations
-
CI / CD: Azure: https://www.browserstack.com/app-automate/azure, Others: https://www.browserstack.com/integrations/?category=ci-cd
-
BrowserStack Capability Generator: https://www.browserstack.com/app-automate/capabilities
-
BrowserStack REST API: https://www.browserstack.com/app-automate/rest-api, https://www.browserstack.com/app-live/rest-api