Skip to content

macaca-sample/sample-nodejs

Repository files navigation

Macaca Samples

build status Gitter Chat

Contributors


xudafeng


loftyet


paradite


LiangjunJiang

This project follows the git-contributor spec, auto upated at Mon Feb 04 2019 18:33:48 GMT+0800.

This reposistory contains various samples that demonstrate how to use Macaca to test:

  1. native iOS app
  2. native android app
  3. mobile Safari web app
  4. mobile Chrome web app
  5. desktop Electron app
  6. desktop Chrome web app
  7. generate custom report for desktop web app

Start

then select one from the following

$ npm i                          Install all the depedences
$ npm run test:ios               Test sample for iOS
$ npm run test:android           Test sample for Android
$ npm run test:ios-safari        Test sample for iOS Safari
$ npm run test:android-chrome    Test sample for Android Chrome
$ npm run test:desktop-puppeteer Test sample for Desktop PC
$ npm run test:desktop-electron  Test sample for Desktop PC
$ npm run test:desktop-chrome    Test sample for Desktop PC
$ npm run test:simple-reporter   Test sample for PC with simple reporter

Note

You have to open an android emulator if you want to run it against an emulator, before you run npm run test:android

Source Code of Mobile Apps

The source code of mobile apps used in this example can be found

License

The MIT License (MIT)