Giter Site home page Giter Site logo

applitools-hackathon's Introduction

applitools

Applitools Visual Hackathon is a hackathon aimed at creating awarenesss of the differences between functional testing of web applications and using Visual AI tools to conduct testing. Applotools eyes SDK is a platform that uses Artificial intelligence to check for differences in a web application that would have otherwise been difficult to identify with a nacked eye and too cumbersome to validate using functions and assertions in the tests.

Installing package dependencies

To run the tests locally on your machine install package dependencies that are listed in the package.json. The installation will ensure that both cypress and eyes sdk is installed. The installation instructions will also cover installation on Windows, macOS and Linux operating systems.

$ npm ci or npm install

Running tests locally

$ npx cypress run

Running Visual AI tests (Modern approach)

$ npm run test:visual:dev

Running Traditional tests (Traditional approach)

$ npm run test:functional:dev

Debug Cypress Tests

$ npx cypress open 

Page Objects

PageObjects found under the directory cypress/pageObjects are used to encapsulate the test logic so that in the event of a change its only the objects that change and not the tests themselves. Page Objects ensure that the written tests are not only clear but simple to understand for anyone onboarding on to the repository as a new contributor.

Running Applitools Eyes Visual AI

To run applitools visual AI one needs to export their api_key which is unique to their terminal and export it so that the tests can detect it. To obtain an API_KEY one nees to sign up on the Applitool site. The API_KEY is used to identify where the visual tests will be uploaded and subsequently where the test dashboard will be located.

For Windows
set APPLITOOLS_API_KEY = 'Your_api_key'
For MacOS/linux
export APPLITOOLS_API_KEY = 'Your_api_key'

After exporting the API_Key no other configuration is needed.

Contributors

Mwaura Waweru

Resources

Cypress Applitools Visual AI

Applitools Dashboard

Hackathon Dashboard

DISCLAIMER: The views expressed in this repository do not necessarily reflect the views of the Organizations that i am affiliated with.

applitools-hackathon's People

Contributors

mwaz avatar

Stargazers

Roman avatar Cecilia Soto avatar Royalyn Gifty avatar Chris Kenst 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.