Skip to content

Behavior driven development (BDD) approach to write automation test scripts to test mobile applications using Java, Appium and Cucumber.

Notifications You must be signed in to change notification settings

leoduprates/JavaMobileTesting

Repository files navigation

Java APPIUM Cucumber Gradle LinkedIn

Java Mobile Testing

Behavior driven development (BDD) approach to write automation test scripts to test mobile applications using Java, Appium and Cucumber.

Project Architecture

The project architecture uses the standard Cucumbers structure.

JavaMobileTesting
├── src
│   ├── test
│       ├── java/com/example/testautomation
│           ├── features
│           ├── pages
│           ├── steps
│           ├── support
│           ├── utils
│       ├── resources
│           ├── app
│           ├── configs
│           ├── reports
│           ├── screenshots

Built With

Design Patterns

This project uses the design patterns from Google Java Style Guide.

Getting Started

Project

  1. Install Java using Official Documentation.

  2. Install Gradle using Official Documentation

  3. Review and setup the configuration in src/test/resources/configs:

     appium.server=http://0.0.0.0:4723/wd/hub
     appium.timeout=30
     appium.platformVersion=11
     appium.deviceName=Pixel_3_API_30
     appium.app=/src/test/resources/app/test-automation-tool.apk
  4. Build Project

    $ gradle build
  5. Run Tests

    $  gradle test -Dcucumber.options="-tags @tagname"

Appium

  1. Install Appium Server using Official Documentation.

  2. Run Appium Server (NPM Global):

    appium
    

Android

  1. Install Android SDK using Official Documentation.

  2. After created an emulator, can use the follow command to start:

    $ emulator @emulator_name
  3. List Devices

    $ emulator -list-avds
  4. Mapping the elements

    $ uiautomatorviewer

Links

About

Behavior driven development (BDD) approach to write automation test scripts to test mobile applications using Java, Appium and Cucumber.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages