Skip to content

tariful-islam98/Demoblaze_Cucumber_Appium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test automation project using Cucumber and Java


Pre-requisites (Installations):

  • JDK 17.0.1+
  • Maven
  • Node.js
  • Appium
  • Appium Server
  • IntelliJ IDE
  • Android Emulator (Android version 9 preferred)

Dependencies:

  • cucumber-java 7.8.1
  • cucumber-testng 7.8.1
  • cucumber-junit 7.8.1
  • selenium-java 4.5.0
  • appium java-client 8.2.0
  • cucumber-compiler-plugin 3.10.1
  • maven-surefire-plugin 3.0.0.M6

Path Setup

  • Set JDK bin path to the environment variables
  • Set Maven bin path to the environment variables
  • Set node.js path to the environment variables

Running the Tests:

  • Open project in IntelliJ IDE.
  • Open the terminal (from IntelliJ IDE) and execute the command mvn clean install

  • Open Android Emulator
  • Open Appium Server GUI and click on start server
  • For running single Scenario-
    • open a Feature file from directory: src>test>java>features
    • then right click and select run scenario
  • For suite-run:
    • open TestNG.xml file from project root directory
    • then right click and select run
  • For running from terminal:
    • execute command mvn test