Skip to content

AnnaKlueva/appiumHomework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Tests can be run with the following gradlew command:
$ ./gradlew runAllTests


This task will run all TestNg tests and create allure report at tne end.
You should see failed tests and generated Allure XML files in build/reports/allure-report directory.

Tasks

runAllTests - runs all TestNg tests
runTemperatureServiceTests - run TestNG tests with 'temperatureService' group

Overview

Create test framework based on:
Appium
Java
TestNG
Allure
Gradle
Local run and remote run (Kobiton)

As app for testing was taken 'Unit converter' which can convert different measurements like length, weight, area, temperature and other.

Test plan

Common test cases:
  • User opens application. The home page should appear with action bar title with default name ('Area')
  • User opens application and selects "Temperature" service from menu. Than the "Temperature" service page should be displayed with action bar title "Temperature".
  • User opens application and selects "Temperature" service from menu. Than user click on 'home' button. The home page should appear with action bar title the same as prevoiusly selected service

Test cases for temperature service:
Prestep: User opens application and selects "Temperature" service from menu.

  • User enters number with the all different numbers in input field. Verify that entered value is displayed in input field
  • User clicks on 'calculator' icon on the bottom of the page. The panel with numbers should appear. User clicks on 'ok' button and the panel with numbers should disappear
  • User opens panel with numbers and enters number. After clickng on "clear" button the input field becomes empty.
  • User opens panel with numbers and enters number. After clickng on "back" button the last symbol from entered number disappears.
  • User opens panel with numbers and enters numbers. After clickng on "+/-" button at first time the entered number becomes negative. After clickng on "+/-" button at second time the entered number becomes positive again.
  • User opens panel with numbers and enters number. The degree icons should be displayed correctly:
      Celsius degree - °C
      Fahrenheit degree - °F
      Kelvin degree - K
  • User opens panel with numbers and enters positive numbers. User closes panel with number. The degree values should be converted by next formula:
      Celsius degree(C) = (entred value)
      Fahrenheit degree(F) = (entered value)*1.8 + 32
      Kelvin degree(K) = (entered value) + 273.15
  • User opens panel with numbers and enters negative numbers. User closes panel with number. The degree values should be converted by next formula:
      Celsius degree(C) = (entred value)
      Fahrenheit degree(F) = (entered value)*1.8 + 32
      Kelvin degree(K) = (entered value) + 273.15

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published