Giter Club home page Giter Club logo

appcenter-samples's Introduction

Community maintainer applications welcome

I'm no longer heavily involved in maintaining this, but am willing to hand over this to community if people are still using it in some way. File an issue if you're interested in doing so.

App Center Test samples

These samples are preconstructed to demonstrate how each test framework included can be used along with a demo app in App Center Test.

Primary documentation for App Center Test is available here: https://docs.microsoft.com/en-us/appcenter/test-cloud/

Upload commands

No matter which test framework you are using, to run UI Tests in App Center, you must generate a prototype upload commandline in one of the systems using the wizard. This command line requires modifications in order to be executed, which the test framework-specific upload scripts demonstrate for basic usage.

  1. Log into https://appcenter.ms
  2. If you have not already created your app, do so by selecting Add new > Add new app. (More info: https://docs.microsoft.com/en-us/appcenter/dashboard/creating-and-managing-apps)
  3. Name your app, select the target OS of your app, and the platform your app is written in.
  4. Select the Test icon on the left side of the screen, it is a circle with a checkmark inside of it.
  5. Click New test run
  6. Select the devices you wish to run your tests on.
  7. Configure the test framework you are using.
  8. On the submit screen follow the "prerequesites" step if this is your first time creating a run in AppCenter/Test.
  9. Copy the command from Running Tests > Upload and schedule tests.

Example (Your exact command will differ)

appcenter test run appium --app "kegr/ReadmeDemo" --devices "kegr/top-4" --app-path pathToFile.apk --test-series "master" --locale "en_US" --build-dir target/upload

Framework Samples in this Repo

Appium

These samples include the App specific steps documented here: https://docs.microsoft.com/en-us/appcenter/test-cloud/preparing-for-upload/appium

  • Appium Android Sample This sample includes an APK file and a pre-written Appium test suite prepared for running in AppCenter/Test.

  • Appium iOS Sample This sample includes IPA & app files and a pre-written Appium test suite prepared for running in AppCenter/Test.

Xamarin.UITest

This sample includes the App Center Test specific steps documented here: https://docs.microsoft.com/en-us/appcenter/test-cloud/uitest/

Espresso

This sample includes the App Center Test specific steps documented here: https://docs.microsoft.com/en-us/appcenter/test-cloud/preparing-for-upload/espresso

XCUITest

This sample includes the App Center Test specific steps documented here: https://docs.microsoft.com/en-us/appcenter/test-cloud/preparing-for-upload/xcuitest

  • XCUITest sample This sample iOS App and XCUITest includes an Xcode project for an app and XCUITest written using Swift. It has a shell script for submitting the tests to App Center Test. This sample does not require any App Center specific extensions.

appcenter-samples's People

Contributors

ahanag22 avatar andrew-lundy avatar glennwilson avatar john7doe avatar king-of-spades avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

appcenter-samples's Issues

Add Backdoors sample

Overview

Sample: https://github.com/King-of-Spades/BackdoorExample
Documentation: https://docs.microsoft.com/en-us/appcenter/test-cloud/uitest/working-with-backdoors

I have an independent Backdoors sample for customers that would be worthwhile to add to our documentation.However, I need to migrate the app to this repo and then add an upload script before it will be ready.

Once I've got that set up, I'll file it as an issue here: https://github.com/MicrosoftDocs/appcenter-docs-pr/issues/new

Sample .ipa file getting crashed in AWS Device farm

H,

i tried to build a CI pipeline thru AWS Device farm.. but not able to do with the same, as the ipa file(debug mode) is getting crashed everytime.. so i got a sample .ipa file from this repo.. but this too is getting crashed in AWS Device farm.

Is there any issue with building the .ipa file ??
can you please help me with the same.??

Thanks,
Nitish

[Appium (Android)] Readme requires a few more details on set up steps.

  • How to install Appium:

sudo npm install -g appium
(may require additional permission arguments to work. One of our engineers had to use the workaround noted here: npm/npm#17268)

https://github.com/King-of-Spades/AppCenter-Test-Samples/blob/e5205966d432c37b89b38f124a31978b7fd08e0b/Appium/Android/Maven/src/test/java/com/microsoft/altframeworktraining/StartAppTest.java#L33

To actually upload, Maven also needs to be installed, so that it can package the upload:

Appium - Android run in App Center Test displays possible red-herring stacktraces

Overview

Unfortunately this link is not publicly sharable at this point, but I'm including it for my reference: https://appcenter.ms/orgs/XTCTeam/apps/Swiftnotes-Appium/test/runs/77a1c67e-2cfb-4bbd-a75a-eb2b4fd0a747/0-0-0/7bd64936-8d1e-484c-aff9-063db240bb59/logs

A lot of stacktraces are shown in the log for the test run, even though the test launches and operates normally. I'm not sure why. The log page if I'm not mistaken may just be collecting some "noise" from other logging events. Here's a snippet of the stacktrace I'm seeing:

 java.lang.NoSuchMethodException: getSlotId [int]
at java.lang.Class.getMethod(Class.java: 2068)
at java.lang.Class.getDeclaredMethod(Class.java: 2047)
at com.google.android.apps.a.a.a.c.i.b(SourceFile: 51)
at com.google.android.apps.a.a.a.c.i.d(SourceFile: 73)
at com.google.android.ims.k.w.a(SourceFile: 22)
at com.google.android.ims.k.w.a(SourceFile: 21)
at com.google.android.ims.k.x.a(SourceFile: 7)
at com.google.android.ims.k.a.<init>(SourceFile: 7)
at com.google.android.ims.k.k.<init>(SourceFile: 8)
at com.google.android.ims.k.k.a(SourceFile: 7)
at com.google.android.ims.CarrierServicesReleaseApp.onCreate(SourceFile: 61)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java: 1118)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java: 5791)
: 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 1661)
at android.os.Handler.dispatchMessage(Handler.java: 105)
at android.os.Looper.loop(Looper.java: 164)
at android.app.ActivityThread.main(ActivityThread.java: 6541)
at java.lang.reflect.Method.invoke(Native Method: )
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java: 240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java: 767)

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.