Giter VIP home page Giter VIP logo

Android Test Automation with JS Mocha

"Software Testing Bootcamp" is a community of people interested in software testing. We record the weekly webinars that we organize and publish them on Youtube. For more information -> https://testingbootcamp.com/

Youtube Webinar Video

https://www.youtube.com/watch?v=ziVxr698mlQ&t=1183s

image

Requirements:

Appium Desktop Installation -> https://github.com/appium/appium-desktop

Java JRE or JDK Installation -> https://www.oracle.com/tr/java/technologies/javase-downloads.html

Android Studio Installation -> https://developer.android.com/studio

Android SDK platforms & SDK tools -> https://developer.android.com/studio/intro/update

NodeJS Installation -> https://nodejs.org/en/download/

Mocha Installation -> https://mochajs.org/#installation

VS Code IDE installation -> https://code.visualstudio.com/

VS Code Mocha, Mocha Test Explorer Plugin -> https://marketplace.visualstudio.com/search?term=mocha&target=VSCode&category=All%20categories&sortBy=Relevance


Demo APK adres: https://apkpure.com/tr/tripadvisor-hotels-activities-restaurants/com.tripadvisor.tripadvisor

Appium capabilities: https://appium.io/docs/en/writing-running-appium/caps/

Appium Documentation: http://appium.io/docs/en/commands/element/find-element/

Selenium Documentation: https://www.selenium.dev/documentation/


How to use ?

  1. Open Project folder with VS Code
  2. Terminal -> New Terminal on VS Code
  3. Run this command on the root of the project to download dependencies -> npm install
  4. Start Appium Server
  5. Start your Android Virtual Device (simulator) or connect your real device with USB debugging enabled real device via USB
  6. Run this command on the terminal and learn your device name / UDID number -> adb devices
  7. Udpate your device / UDID on local/local-driver.js file
  8. Download Tripadvisor APK file to your computer and update your app path on local/local-driver.js file
  9. Run this command on the root of the project to start test -> mocha testcases/search-hotel-text.js

image

image

image

Software Testing Bootcamp's Projects

appium icon appium

:iphone: Automation for iOS, Android, and Windows Apps.

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.