Appium mobile automation
  • About the Book
  • Introduction to Mobile Test Automation
  • Pre-requisites for Appium Verification
  • What is Appium
    • Appium 1.6.0
  • Installation Instructions
    • Installing Android SDK
    • Installing Appium using app
    • Install Appium using npm
    • Installing an App on Emulator
  • Appium For Beginners
    • Understanding Desired Capabilities
    • Desired Capabilities for Android
    • Cucumber-JVM-Appium - Gradle Project
    • Start Appium Server
  • Write your first Android Test
    • How to use UiAutomatorViewer
    • Appium Inspector
  • Execution of Android tests
    • Execute on GenyMotion Emulator
    • Execute on Real Device
  • Appium Advanced
    • How to automate gestures
    • How to Change contexts
    • Remote Debugging using chrome
    • Running multiple Appium Server for parallel execution
Powered by GitBook
On this page
  • Creating Gradle Project
  • Adding dependencies to build.gradle
  • Adding app folder

Was this helpful?

  1. Appium For Beginners

Cucumber-JVM-Appium - Gradle Project

PreviousDesired Capabilities for AndroidNextStart Appium Server

Last updated 5 years ago

Was this helpful?

Creating Gradle Project

You can choose to create a gradle project. Below steps will guide you for the same.

  • Select New Project

  • In the New Project window, select Gradle on the left side of the screen as shown below. If the SDK is already defined in IntelliJ then it will pick up from there, else click New and select the installation folder of the desired JDK.

  • Click Next

  • Give a GroupID, ArtifactID, and a Version for the project. Click Next.

  • Select the option of "Use auto-import" and "Create directories for empty content...". Click Next

  • Lastly enter a project name and project location and click on Finish.

It should create a project with following structure.

Adding dependencies to build.gradle

Open build.gradle file and copy the below two lines

compile 'io.appium:java-client:4.0.0'

```testCompile 'info.cukes:cucumber-java:1.2.4',
            'info.cukes:cucumber-junit:1.2.4'

Adding app folder

Once the project is created, created folder called apps and put the .apk file there which is your application under test.