GithubHelp home page GithubHelp logo

imrohitsinghal / oneframework Goto Github PK

View Code? Open in Web Editor NEW

This project forked from srinu-kodi/oneframework

0.0 1.0 0.0 103.35 MB

OneFramework for all your android, ios and web application automation needs.

JavaScript 25.83% CSS 22.67% HTML 13.82% Java 36.15% Gherkin 1.52%

oneframework's Introduction

OneFramework

This is a generic Page Object Model which will fit for both Mobile & Web platforms. This will serve the benefits to both native android, ios and web platforms with single framework.

We often tend to create different test frameworks for different platforms and it is very difficlut for anyone to serve all platform needs in one test automation framework.

Be it web app or mobile app (ios & android) or you have to automate both the platforms, however you need single test automation framework, This is the solution for you.

As part of this framework I have taken Wordpress mobile app for Android & iOS mobile platforms, It's web application for web application automation. In order to create the framework, I have used below libraries/technologies.

Libraries used:

  1. Appium
  2. Selenium WebDriver
  3. Java
  4. Cucumber-java, Cucumber-junit
  5. jUnit
  6. Log4j
  7. Gradle

How this framework works:

This framework is built in BDD style using cucumber framework and scenarios will be run using cucumber-junit runners.
We have 3 different runners for 3 platforms and here is how we tag those scenarios and execute them.

Scenarios tagging
@web - for web tests
@android - for android tests
@ios - for ios tests
@ignore - to ignore certain tests

Execution
gradle clean test -Pplatform=

For eg. If it is android platform, the command is
gradle clean test -Pplatform=android

Pending tasks:

  1. Proper logging at each step
  2. Parallel test execution
  3. Integration with CI i.e. Jenkins (or) Travis (or) Circle CI (or) Go
  4. Recording of test execution
  5. Detailed cucumber profiling
  6. Gradle tasking (Created one task for running the tests, few tasks are pending)
  7. Scroll up/down
  8. Scroll to particular elements
  9. Swipe left/right

Moreover will incorporate if anything pops up in mind, going forward. Raise an issue, uf you face any issues with this. Raise a Pull Request, if you see and fix any issues.

oneframework's People

Contributors

srinu-kodi avatar srinukodi avatar

Watchers

 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.