GithubHelp home page GithubHelp logo

topshotprj's Introduction

topshotprj

Automation of NBA Topshot Site

Setup Instructions:

  1. Have Python 3, Firefox and Pip installed
  2. Run 'pip3 install -r requirements.txt'
  3. Run 'pytest' from the project root folder

Notes:

Automation Strategy:

  • Implemented a standard page object model with python and selenium webdriver, creating a BasePage class with common webdriver actions that is inherited by each Page Object. Given each Topshot page has a distinct function with minimal overlap, the page object model applies well
  • The GraphQL api functionality was implemented as an example to show how it could be used to confirm all the data being sent back by the server is rendered correctly in the UI. For a full framework, having a dedicated set of API tests to confirm all user actions & state changes are reflected in the backend (Sign Up, Purchasing Moments, Completing Challenges) would allow testing of basic functionality faster, with UI end to end tests focusing on UI specific actions
  • Selenium Webdriver had issues with rendering all the Javascript correctly, see the screenshots in the repo (DapperMissingMoments.png, DapperEmptyMarketPlaceConsoleOpen.png, DapperMarketPlaceConsoleClosed.png). These issues happened consistently for both Firefox and Chrome opened via the Webdriver API and would have needed further investigation.
  • After spending time understanding the product and automation needs, my recommended solution would be to implement a framework in Cypress. Given it is written in Javascript, it would not face the same issues with rendering the dynamic parts of the site and would encourage developer adoption of the test framework. Cypress also supports integration tests with a mocked out back end as well as GraphQL api tests so would be able to implement test cases covering most of the test pyramid.
  • Given time constraints, I only implemented the python framework and added a few test cases from the NBA Topshot CSV plan. The Marketplace tests currently fail due to the above mentioned issues with missing response backend

topshotprj's People

Contributors

iqbalg1 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.