GithubHelp home page GithubHelp logo

calculator's Introduction

calculator

Appium tests for an android calculator

How to run the tests:

  1. Checkout the repository

  2. Ensure that the followings are installed on your machine:

  3. Start running the appium server on host 127.0.0.1. If you’re using terminal: “appium -a 127.0.0.1”

  4. Connect an android device or launch an emulator.

  5. If the Android version of the device is not 8, then please edit the “utils/TestConfiguration.java” file and change the “platformVersion” field in line 6.

  6. Open Terminal and navigate to the directory path where build.gradle file is located in the repo (e.g. C:\Users<name>\IdeaProjects\calculator>,

  7. Enter the following commands:
    On Windows enter “gradle runTests”.
    On Mac enter: “./gradlew runTests”.
    And the tests should start running.
    I also added a task for running a regression test suite. At the current state these tests are failing because of issues in the app. These issues are reported in the Bug Reports document. (Issue1 and Issue13)
    You can run it by “gradle runRegressionTests” or “./gradlew runRegressionTests”

  8. Alternatively the project can be opened by IntelliJ and run the tests by the “RunCucumberTest.java” file. Or trigger tests by right clicking on the scenarios in the “Operations.feature” file and selecting the run scenario option

About the code

The suite lives within the src/test package.
The src/test/java/utils package contains all the configurations.
The DriverMethods class (src/test/java/sharedMethods/) will be injected to any class that needs to call the driver. E.g. the src/test/java/stepDefinitions/OperationsSteps.java file
The steps are in: src/test/java/stepDefinitions/
The tests are in: src/test/resources/

calculator's People

Contributors

vargajohanna avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.