Git Product home page Git Product logo

nunit-appium-app-browserstack's Introduction

nunit-appium-app-browserstack

This repository demonstrates how to run Appium tests in NUnit on BrowserStack App Automate.

Setup

Requirements

  1. Visual Studio and .NET Core

    • Download Visual Studio from here
    • Install .NET Core while installing Visual Studio

Getting Started

Getting Started with Appium tests in NUnit on BrowserStack devices couldn't be easier!

Run first test :

  • Switch to appium_dotnet_driver_4_examples(or appium_dotnet_driver_3_examples) under android or ios directory

  • Open the project in Visual Studio by opening android.sln or ios.sln file

  • Follow the steps outlined in the documentation to run your first test - Get Started with your first test on App Automate

Speed up test execution with parallel testing :

  • Switch to appium_dotnet_driver_4_examples(or appium_dotnet_driver_3_examples) under android or ios directory

  • Open the project in Visual Studio by opening android.sln or ios.sln file

  • Follow the steps outlined in the documentation to run parallel tests - Get Started with Parallel testing on App Automate

Use Local testing for apps that access resources hosted in development or testing environments :

  • Switch to appium_dotnet_driver_4_examples(or appium_dotnet_driver_3_examples) under android or ios directory

  • Open the project in Visual Studio by opening android.sln or ios.sln file

  • Follow the steps outlined in the documentation to run local tests - Get Started with Local testing on App Automate

Note: If you are running Local test on Mac, you need to download and run the BrowserStack Local binary before starting the test:

  1. Download BrowserStack Local binary for mac: OS X (10.7 and above)
  2. Switch to the directory where binary is downloaded and run using following command ./BrowserStackLocal --key <YOUR_ACCESS_KEY>

Integration with other CSharp frameworks

For other CSharp frameworks samples, refer to following repositories :

Note: For other test frameworks supported by App-Automate refer our Developer documentation

Troubleshooting

  • In case Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json' issue is encountered while running a Local test on Windows, please follow the these steps to resolve it :

    • Go to Tools > NuGet Package Manager > Package Manager Console

    • Run the command update-package Newtonsoft.Json -reinstall in the opened console

    • Then run update-package Newtonsoft.Json in the same console

Getting Help

If you are running into any issues or have any queries, please check Browserstack Support page or get in touch with us.

nunit-appium-app-browserstack's People

Contributors

gshah30 avatar kamal-kaur04 avatar kn-neeraj avatar tejasshah93 avatar agundawar avatar bstack-security-github avatar raghuhit avatar dhimil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.