Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahmedkhaled14/saucelabsapkusingshaft_engine

πŸ“² Mobile Test Automation for sauce Labs mobile APK Using SHAFT Engine πŸ“²
https://github.com/ahmedkhaled14/saucelabsapkusingshaft_engine

allure-report appium fluentdesign mobile pageobjectmodel shaft-engine testautomation testng

Last synced: 8 days ago
JSON representation

πŸ“² Mobile Test Automation for sauce Labs mobile APK Using SHAFT Engine πŸ“²

Awesome Lists containing this project

README

        


test-light


πŸ“² Mobile Test Automation for "Sauce labs" mobile APK πŸ“²



![Screenshot 2023-04-27 205939](https://user-images.githubusercontent.com/68038931/234965123-d83a5fa8-bd9f-46ab-9d32-2ecfb7d25387.png)






- ### βš™οΈ The main Frameworks included in the project:
SHAFT logo




### πŸ—οΈ Project Design:

* Page Object Model (POM) design pattern
* Fluent design approach
* Data Driven framework
* Java Docs

### 🏬 project Structure:
Screenshot 2023-08-18 011751


### πŸ—ƒοΈ Documentation
* **[Appium Docs](http://appium.io/docs/en/2.0/quickstart/)**
* **[SHAFT Engine Docs](https://shafthq.github.io/docs/Getting_Started/Prerequisites)**

### 🚧 Requirements & Setup

* install Java JDK-17 & `set JAVA_HOME: C:\Users\yourUserName\jdk-17.0.8_windows-x64_bin\jdk-17.0.8 `
* Appium 2.0 `npm install -g appium@next`
* Maven ` 1-install maven 2-open Environment variables 3-open path and add C:\Users\yourUserName\apache-maven-3.9.4-bin\apache-maven-3.9.4\bin `
* Android Emulator `you can use Android Studio`
* set new Environment variable: `ANDROID_HOME: C:\android-studio\data\sdk`
* Add 3 variables to the path in user variables:
`%ANDROID_HOME%\bin`
`%ANDROID_HOME%\tools`
`%ANDROID_HOME%\platform-tools`
### πŸš€ Running Tests

* Start appium server: `appium`
* start android emulator `use Android Studio AVD Manager `
### πŸ›Έ Run tests open a terminal on the project root path:
* to run a specific testclass: `mvn test -Dtest="PackageName.TestClassName"`
* to run all the test classes in the package: `mvn test -Dtest="PackageName**"`
* to run a specific test case: ` mvn test -Dtest="PackageName.TestClassName#TestMethodName"`

* πŸ—ƒ Generate reports:
Summary Report & Allure Report will open automatically after Execution.


πŸ“Š Allure Report πŸ“Š


allure
allure2


πŸ“Š Summary Report πŸ“Š


summary1
summary2








Test Cases Details












Status

βœ… PASSED
❌ FAILED
🚧 SKIPPED








Id
Suite
Name
Error
Status
Has issue


1sauceLabsTests.LoginFeatureTestTC1: login Using Valid Email And Passwordβœ… PASSEDNo2sauceLabsTests.LoginFeatureTestTC2: login Using Invalid Email or Password/td>βœ… PASSEDNo3sauceLabsTests.CartFeatureTestTC3: Add Item To The Cart And Validate Title And Price Of The Itemβœ… PASSEDNo4sauceLabsTests.CartFeatureTestTC4: Removing Items From The Cart And Validate That The Cart Is Emptyβœ… PASSEDNo5sauceLabsTests.CartFeatureTestTC5: Online Ordering E2E Scenarioβœ… PASSEDNo