https://github.com/husna-poyraz/hepsiburada-mobile-automation-cucumber-testcase-v2
Mobile Automation with Appium and Cucumber in Java
https://github.com/husna-poyraz/hepsiburada-mobile-automation-cucumber-testcase-v2
Last synced: about 2 months ago
JSON representation
Mobile Automation with Appium and Cucumber in Java
- Host: GitHub
- URL: https://github.com/husna-poyraz/hepsiburada-mobile-automation-cucumber-testcase-v2
- Owner: Husna-POYRAZ
- Created: 2022-07-27T13:02:15.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-30T20:20:52.000Z (about 3 years ago)
- Last Synced: 2025-06-04T12:17:21.006Z (4 months ago)
- Language: Java
- Homepage:
- Size: 351 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mobile Automation with Appium and Cucumber in Java
![]()
# Desired Capabilities for Appium (Androig/iOS)
* Desired Capabilities are keys and values encoded in a JSON objecti sentby Appium clients to the server when a new automation session is requested
* Desired Capabilities can be scripted in the WebDriver test or set within the Appium Server GUI (via an Inspector Session)
# Get the Device ID
* iOS
From command line : $ xcrun simctl list* Android
From command line : $ adb devices
# Appium Inspector in Appium Desktop
* Appium Desktop offers an Inspector that you can use to look up or locate elements of an application.
* It alsı lets you perform basic actions on these elements (such as tap and send keys)

# Dependencies
* Appium Java Client
```
io.appium
java-client
7.0.0
```* TestNG
```
org.testng
testng
7.4.0
test
```# Identifying UI Elements
Appium supports a subset of the WebDriver locator strategies such as:
* find by "class"
* find by "xpath"
Appium additionally supports some of the Mobile JSON Wire Protocol locator strategies.# Android and iOS Locator Strategies

# Cucumber
* Cucumber was created to drive Behavior Driven Development (BDD) process.
* In Cucumber world, these files are called Feature files.
* Once development is ready, the developers and(or QA will write Step Definitions.# Dependencies
* Cucumber JUnit
```
io.cucumber
cucumber-junit
7.0.0
test
```* Cucumber Java
```
io.cucumber
cucumber-java8
7.0.0
test
```* Gherkin
```
io.cucumber
gherkin
23.0.1```
# Requirements for Windows
* Java JDK 8 Installation -> https://www.oracle.com/tr/java/technologies/javase-downloads.html
* Jetbrains IntelliJ IDEA Installation -> https://www.jetbrains.com/idea/
* Gherkin IntelliJ Plugin -> https://plugins.jetbrains.com/plugin/9164-gherkin
* Cucumber for Java -> Cucumber for Java IntelliJ Plugin -> https://plugins.jetbrains.com/plugin/7212-cucumber-for-java
* Appium Server and Documentation -> https://appium.io/
* Android Mobile Devices