GithubHelp home page GithubHelp logo

emmanvazz / uitest-pop-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xamarin-automation-service/uitest-pop-example

0.0 0.0 0.0 26.1 MB

A cross-platform UITest example that uses the Page-Object Pattern (POP)

C# 72.57% Pascal 27.43%

uitest-pop-example's Introduction

Page object pattern sample

This project demonstrates the page object pattern (POP) that we use internally here at Xamarin. We have tried both simpler and more complex architectures in the past and have found this approach to be one of the best. It is easily adopted by people who are learning how to write tests, but also provides the scalability needed to build out larger, more complicated test suites.

This project is based on the Tasky Pro Calabash example and uses many of the same concepts as Calabash's page object pattern.

Want more information?

Running these tests on your computer

  1. Clone this repo
  2. Build
  3. Run*

*If you want to run this on a physical iOS device, you will need to clone and build the app from source in order to get an IPA file that is compatible with your device.

POP Implementation

  1. Create a new test project or open up your existing one

  2. Install the Xamarin.UITest.POP NuGet package, which will add all the necessary files to your project

    Alternatively, you can manually add the following files to your project (making sure to change the namespaces to match your own):

  3. Remove AppInitializer.cs (if it exists)

  4. Ensure page object classes inherit from BasePage

  5. Ensure test fixture classes inherit from BaseTestFixture

For more detailed instructions check out the wiki.

Contributors

uitest-pop-example's People

Contributors

matissehack avatar ethanis avatar sweekriti91 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.