Skip to content

BrowserStackCE/xamarinforms-appium-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xamarin Forms with Appium UI Test Automation

Using C# and Appium, this project automates UI testing of a Xamarin Forms App, with a single test code base in mind.

Steps

  • 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\"}"

Docs

  1. 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/

  2. Integrations Generic List across Tools / Frameworks / DevOps / Development & Project Management Tools etc: https://www.browserstack.com/integrations

  3. CI / CD: Azure: https://www.browserstack.com/app-automate/azure, Others: https://www.browserstack.com/integrations/?category=ci-cd

  4. BrowserStack Capability Generator: https://www.browserstack.com/app-automate/capabilities

  5. BrowserStack REST API: https://www.browserstack.com/app-automate/rest-api, https://www.browserstack.com/app-live/rest-api

About

Appium Test using C# against a Xamarin Forms App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%