Coder Social home page Coder Social logo

testapp's Introduction

TestApp

The project for AppCenter UI tests.

The project consist of test application itself and the UI test for it (AppiumTests folder).

  • The application was created in accordance with the guide from the android portal. (https://developer.android.com/training/basics/firstapp).
  • The main activity contains some controls that allows to shows the entered text (picture 1).
  • If you put your text in textbox and click 'Send' button, you will see the new activity with this text (picture 2).
  • If you do the same actions but 'Show as alert' checkbox is activated, you will see the alert with this text (picture 3): image
  • If you click the 'Reset' button, the textbox and the checkbox will be reseted.

UI test

About test: This was written using Appium test framework. The est may be executed either on local machine or in appcenter cloud.

To test this application you should:

  • Install npm package appcenter globally: npm install -g appcenter-cli

  • Build the apk file of the test application (it must be signed).

  • Execute the follow command in AppiumTests folder: mvn -DskipTests -P prepare-for-upload package

  • Execute one more commnad in AppiumTests folder: appcenter test run appium --app "APP_ID" --devices "DEVICE_SET_ID" --app-path PATH_TO_FILE.apk --test-series "master" --locale "en_US" --build-dir target/upload where APP_ID, DEVICE_SET_ID and PATH_TO_FILE.apk must be replaced with real values. You may get APP_ID and DEVICE_SET_ID values from appcenter if you go to appcenter in Test section and click 'New test run'. You should select necessary devises there and select 'Appium' as test framework. You will see description like this: image

  • Wait for completion. It may take a few minutes.

  • If you do all correctly, you will see result of the tests in appcenter in Test section:

image

testapp's People

Contributors

denisnikulin5 avatar

Watchers

 avatar  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.