Skip to content

Artenes/appium-calculator-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“± Appium Test Suite for Samsung Calculator

This project is an automated UI test suite written in Java using Appium, JUnit 5, and Maven. It tests basic arithmetic operations on the Samsung Calculator app pre-installed on Samsung Android devices.

✨ Features

  • πŸš€ Appium setup using UiAutomator2
  • βœ… Tests for addition, subtraction, multiplication, division, and error handling
  • πŸ§ͺ Reusable utility methods for key actions
  • πŸ”§ Configuration via environment variables

πŸ›  Prerequisites

Ensure the following tools are installed and configured:


πŸ“¦ Installation

Clone the repository:

git clone https://github.com/Artenes/appium-calculator-tests.git
cd appium-calculator-tests

Install dependencies:

mvn clean install

πŸ”§ Environment Setup

Before running the tests, set these environment variables:

Variable Name Description Example
CALC_TEST_APPIUM_SERVER_URL Appium server URL http://127.0.0.1:4723/

Linux/macOS

export CALC_TEST_APPIUM_SERVER_URL="http://127.0.0.1:4723/"

Windows (CMD)

set CALC_TEST_APPIUM_SERVER_URL=http://127.0.0.1:4723/

▢️ Running the Tests

Start your Appium server in a separate terminal:

appium

Then run the tests with Maven:

mvn test

πŸ“‚ Project Structure

src/
└── test/
    └── java/
        └── org/
            └── example/
                └── MainTest.java

βœ… Test Cases Included

  • testAddition() – Verifies 2 + 2 = 4
  • testSubtraction() – Verifies 8 - 3 = 5
  • testMultiplication() – Verifies 6 Γ— 7 = 42
  • testDivision() – Verifies 8 Γ· 2 = 4
  • testDivisionByZero() – Tests division by 0 behavior
  • testClearButton() – Tests the clear button resets input

πŸ“˜ Notes

  • Only works on Samsung devices that have the stock Calculator app (com.sec.android.app.popupcalculator)
  • Tests use implicit waits for basic synchronization
  • Tests can be extended to include scientific functions or history features if available

πŸ§‘β€πŸ’» Author

Artenes Junior Gomes Nogueira


πŸ“„ License

This project is open-source and available under the MIT License.

About

Sample test suite using Appium + Android + Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages