Giter Club home page Giter Club logo

iosapp_appiumautomation's Introduction

Quint Appium iOS App Automation

sample test demo:

Setup

$ npm install

Run tests

Note: For the first time running the tests:

  • You may want to check your appium setup by running:
node ./node_modules/appium/bin/appium-doctor.js
  • And you will see popup "Instruments wants permission to analyze other processes." You need to allow access. You need to do this every time you install a new version of Xcode.

start Appium server:

./node_modules/.bin/appium

execute tests:

# Run test by test case name:
./node_modules/.bin/mocha test/memo/script/ -g 'C0001'

# Run all the tests:
./node_modules/.bin/mocha test/memo/script/

TODO: Magellan Integration

https://github.com/TestArmada/magellan

About the tests

file structure, e.g:

.
└── iOSApp-Automation
    ├── README.md
    ├── common
    │   └── mocha_rerun.js
    ├── config
    │   ├── default.json
    │   └── logging.js
    │   └── testData.json
    ├── package.json
    └──── test
        ├── mocha.opts
        └── memo
            ├── module
            │   └── memoModule.js
            └── script
                └── memo.js
  • default.json (/config) is the setup for Local appium server, Testing app and Desired capabilities that will be sent to Appium server. Settings in this file could be set as runtime variables.
  • Test scripts (test cases) could group by test flow similarity.
  • For every test script, there is a matching module file (test/memo/module/) for locators and libraries reused.
  • Libraries that are shared for all the module files are in common.js (/common).
  • In common.js, there is an AppiumDriver constructor, it has bindModule method to bind libraries from module files.
  • When create new test script, you want to create a new object of the AppiumDriver, and bind the module file(s) that will be needed for the tests. e.g.
    before(function() {
        appiumDriver = new AppiumDriver(Config.localServer);
        appiumDriver.bindModule(SigninModule);
    });

iosapp_appiumautomation's People

Contributors

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