Giter VIP home page Giter VIP logo

suryastest / webdriverio-mocha-appium-momentumsuite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from momentumsuite/webdriverio-mocha-appium-momentumsuite

0.0 1.0 0.0 8.63 MB

Boilerplate project to run MOBILE Test Automation with WebdriverIO v7, Mocha, Appium, Allure reporting and Momentum Suite cloud device farm support

Home Page: https://www.momentumsuite.com/

License: Apache License 2.0

JavaScript 100.00%

webdriverio-mocha-appium-momentumsuite's Introduction

WebdriverIO Mocha Appium Momentumsuite

image WebdriverIO Integration with local or Momentum Suite real mobile farm devices

Supports

  • Native or Hybrid Android and iOS apps (APK, AAB, IPA)
  • Chrome mobileweb testing on Android devices
  • Safari mobileweb testing on iOS devices
  • Page Object Model (POM) usage with wdio
  • Example BDD scenarios with cucumber.js and wdio
  • Testing with multiple files
  • Parallel testing on multi mobile devices
  • Local testing or using Momentum Suite's 150+ Android or iOS devices
  • Auto generated HTML Allure test report after test
  • Take screenshot on test failure

Setup

Requirements:

  • WebdriverIO v7 requires Node.js version 14 or higher. If you don't have Node installed, download it from here.
  • Install the Allure command-line tool, and process the results directory after test run.

Install the dependencies:

Run the following command in project's base directory :

npm i

Getting Started

Getting Started with Appium tests using WebdriverIO on Momentum Suite couldn't be easier! With a Momentum Suite account, You need 4 things to start without any Appium or Android SDK dependencies.

  • momentum:user Usually it could be your email address
  • momentum:token Your unique access token learned from momentumsuite.com
  • momentum:gw Comma seperated Momentum Suite mobile device ID list (4 digit number) to run the test. First number will be your default phone for all except parallel-testing.
  • appium:app Your uploaded IPA, APK or AAB app file from Momentum Suite Application Library. Example format is ms:// Optionally you can use a public accessible web URL.

Do not forget to set these 4 Appium capability values and check hostname, port, path and protocol values on your test-settings.js file.

Start with Android device: Open for editing your test-settings.js file under root directory.

Set momentum.user, momentum.token, momentum.deviceList, momentum.app on test-settings.js file.

Test script is available in getting-started directory

Run the following command in project's base directory :

npm run android-first

Start with iOS device: Same with Android, but need to change test-settings.js file.

Run the following command in project's base directory :

npm run ios-first

Start with local testing: Use Local testing that access resources hosted in your development or testing environments. You need to install Appium and it's all dependencies like Android SDK, Xcode, Command Line tools. At the same sime you will need to run a real device or simulator/emulator. Do not forget to check hostname, port, path and protocol values on your test-settings.js file with your own Appium server.

Run the following command in project's base directory :

npm run android-local

All available commands to start mobile testing:

npm run android-first
npm run android-parallel
npm run android-local
npm run android-pom
npm run android-cucumber
npm run android-multiple
npm run android-chrome
npm run ios-first
npm run ios-parallel
npm run ios-local
npm run ios-pom
npm run ios-cucumber
npm run ios-multiple
npm run ios-safari

Allure Reporting

Run the following command in project's base directory after test run has been completed. This command will open a browser window with HTML test results.

allure open

Getting Help

If you are running into any issues or have any queries, please check Momentum Suite Contact page or get in touch with us.

Our Technical Documentation space is here.

webdriverio-mocha-appium-momentumsuite's People

Contributors

momentumsuite avatar hakantektas avatar ozgurkaya-mobven avatar software-testing-bootcamp avatar ardakazanci-mobven avatar

Watchers

James Cloos 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.