Giter VIP home page Giter VIP logo

examples-csharp-cloud-services-alttrashcat's Introduction

This is an example repository for running tests using AltTester Unity SDK 2.0.1 and BrowserStack App Automate.

Executing tests using AltTester Unity SDK 2.0.1 (without BrowserStack).

Prerequisite

  1. Download and install .NET SDK
  2. Have a build instrumented with AltTester SDK 2.0.1.
  3. Have AltTester Desktop app, 2.0.1 installed (to be able to inspect game).
  • For SDK v2.0.1 => need to use AltTester Desktop 2.0.1
  1. Add AltTester package:
dotnet add package AltTester-Driver --version 2.0.1

Specific for running on Android from Windows

  1. Download and install ADB for Windows
  2. Enable Developers Options on mobile device more instructions here

Setup for running on mobile device

For Android, here is a build instrumented with AltTester SDK 2.0.1.

  1. Make sure mobile device is connected via USB, execute:
adb devices
  1. On mobile device: allow USB Debugging access (RSA key fingerprint from computer)

  2. Uninstall the app from the device

adb uninstall com.Altom.TrashCat
  1. Install the app on the device
adb install TrashCat.apk

Run tests manually (with dotnet CLI)

! When running v2.0.0 make sure to have the AltTester Desktop App running

  1. [Optional to do manually] Setup ADB reverse port forwarding (this can also be done in code in Setup and Teardown)
adb reverse remove tcp:13000
adb reverse tcp:13000 tcp:13000
  1. Launch game
adb shell am start -n com.Altom.TrashCat/com.unity3d.player.UnityPlayerActivity
  1. Execute all tests:
dotnet test
  1. Kill app
adb shell am force-stop com.Altom.TrashCat

Run all tests from a specific class / file

dotnet test --filter <test_class_name>

Run only one test from a class

dotnet test --filter <test_class_name>.<test_name>

examples-csharp-cloud-services-alttrashcat's People

Contributors

dianaserb1 avatar

Stargazers

 avatar

Watchers

 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.