GithubHelp home page GithubHelp logo

openedx / edx-app-test Goto Github PK

View Code? Open in Web Editor NEW
6.0 15.0 12.0 33.62 MB

Automated testing for edX Android and iOS mobile applications.

License: GNU Affero General Public License v3.0

Python 99.25% Shell 0.58% Makefile 0.17%

edx-app-test's Introduction

edx-app-test

Automated testing for edX Android and iOS mobile applications.

Using Docker

Manual Installations

iOS(Simulator)
Android(Phone/Tablet/Simulator)

Don't forget to set environment variables for adb, platform-tools etc.*

Setup

  • connect/start Android/iOS Device/Simulator

  • Browse tests/ directory

  • Rename 'user_preferences_sample.yml' to 'user_preferences.yml' and set following values,

    • set `Android' to execute test cases on Android or 'iOS' to execute on iOS

      target_environment: Android
      
    • set above selected target_environment's OS Version(of specific running device/simulator) like below

      ios_platform_version: iOS emulator version 
      
      android_platform_version: Android device/emulator version
      
    • set valid credentials to login

      login_user_name: username 
      
      login_password: password 
      
  • install edx(iOS/Android) app on specific device/simulator

Run

  • Check out/download the source code, browse its directory

      git clone https://github.com/openedx/edx-app-test
    
  • pytest - to run all test cases

  • pytest -v tests/android/tests/ --html=report.html --self-contained-html - to run all android test screens

  • pytest -v tests/ios/tests/ --html=report.html --self-contained-html - to run all ios test screens

  • pytest -v <test case name> --self-contained-html to run specific test case

  • pytest -v <test case name> --html=report.html --self-contained-html to run specific test case and create html report at end of execution

edx-app-test's People

Contributors

bilalawan321 avatar dependabot[bot] avatar ericfab179 avatar feanil avatar jawayria avatar nedbat avatar nedo avatar sarina avatar wesmason avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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