Coder Social home page Coder Social logo

ioskonbiniautomation's Introduction

iOSKonbiniAutomation - Page Object Model for XCUITest made easy

iOSKonbiniAutomation is result of working on multiple projects with XCUITest. I've seen multiple approaches and this is amalgamation of the bits that I liked the most. There is fair bit of inspiration by work of Andrey Kozlov This project brings [page object model] (https://www.guru99.com/page-object-model-pom-page-factory-in-selenium-ultimate-guide.html) (or POM in short) approach to your projects. It also provides capability to build app transitions graph to be able to have automatic navigations from one screen to another. You also get assortment of ways to select your elements thanks to convenience functions added as extensions to XCUIElement and XCUIElementQuery via iOSBenrinaAutomationHelpers

Adding iOSKonbiniAutomation to project is super easy using Carthage and you can start using it right away.

This project is using under the hood iOSBenrinaAutomationHelpers to make selections, element value settings, waiting etc. easier.

Note: This project is targeting minimum iOS version 10.0 to support last two major iOS releases

Installation

iOSKonbiniAutomation can be installed with Carthage, so please make sure that you got this prerequisite installed. After getting Carthage, you can follow steps [here] (https://github.com/Carthage/Carthage#if-youre-building-for-ios-tvos-or-watchos)

Cartfile reference to this repository should be as follows:

github "lochness42/iOSKonbiniAutomation"

Note: this will fetch also iOSBenrinaAutomationHelpers as dependency so don't forget to add those along with iOSKonbiniAutomation framework as it's necessary.

Use

Once you've successfully added iOSKonbiniAutomation to your project, you can start using your convenience functions by adding to the header of your file:

import iOSKonbiniAutomation
import iOSBenrinaAutomationHelpers

Once this is done, all convenience functions and new TestCase and Screen objects are exposed for your use.

I'm working on demo application which will show how to use this framework easily.

Contribution

Please feel free to fork, create pull requests and to open issues for any discovered issues or suggestions for additions. I really appreciate everyone's input as I would like to make test automation less painful for all people.

Acknowledgement

Big thanks to Andrey Kozlov who inspired quite a bit of my work and had good discussions about how to approach this.

Author

lochness42, [email protected]

ioskonbiniautomation's People

Contributors

lochness42 avatar

Watchers

 avatar  avatar

ioskonbiniautomation's Issues

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.