/SauceLabsAPKUsingSHAFT_Engine

📲 Mobile Test Automation for sauce Labs mobile APK Using SHAFT Engine 📲

Primary LanguageJava

test-light

📲 Mobile Test Automation for "Sauce labs" mobile APK 📲

Screenshot 2023-04-27 205939


  • ⚙️ The main Frameworks included in the project:

🏗️ Project Design:

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

🏬 project Structure:

Screenshot 2023-08-18 011751

🗃️ Documentation

🚧 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✅ PASSEDNo
2sauceLabsTests.LoginFeatureTestTC2: login Using Invalid Email or Password/td>✅ PASSEDNo
3sauceLabsTests.CartFeatureTestTC3: Add Item To The Cart And Validate Title And Price Of The Item✅ PASSEDNo
4sauceLabsTests.CartFeatureTestTC4: Removing Items From The Cart And Validate That The Cart Is Empty✅ PASSEDNo
5sauceLabsTests.CartFeatureTestTC5: Online Ordering E2E Scenario✅ PASSEDNo