Git Product home page Git Product logo

galen-framework-js-project-structure's Introduction

Galen Framework JS API Project Structure

IMPORTANT!: This project is old, I strongly recommend using the npm handler: https://github.com/agomezmoron/galen-framework-handler. There are some examples done in the Drupal Developer Days 2017.

Galen Framework is an open-source tool for testing layout and responsive design of web applications. It is also a powerfull functional testing framework. For more information visit http://galenframework.com

In this project you will find a structure with some additional functionalities in order to work with Galen Framework through the JS API and also overriding some functionalities (like generating for each given divice to test, all the possible possibilities (portrait and landscape) for tablet or mobile devices.

The project also includes a catalog with some commons devices (iPad, iPhones, etc) with the correct dimensions.

##Requirements

Before using this project structure you must have installed Galen Framework. You can follow the provided steps in http://galenframework.com/docs/getting-started-install-galen/

You will also need the GeckoDriver binary added to the system's path. Download the latest version from here: https://github.com/mozilla/geckodriver/releases

##How to use it

Once you have Galen Framework installed you have to provide execution permissions for the run.sh file. That file will perform all the existent tests in the tests/suites folder. According to the Galen Framework JS API test guide, each test should be located in tests/suites/xxxx.test.js

Secondly, you will find a configuration file located in tests/config/config.js where you will find:

  • config (JSON object): Here you will be able to define some basic config parameters (baseURL, etc).
  • devicesToTest (JSON object): Here you will have to define all the devices you want to test. In the existent browsers.js file you have some defined devices. If you miss someone else, it's strongly recommend to add there before using it.

Once having configuring the project and defined the first test like in the provided example you will have to create the key of the responsive testing: the .gspec files. Those files are written following the Galen spec language and you can find a simple example in specs/google.gspec.

Galen Framework uses for the checkLayout test method a provided (https://github.com/agomezmoron/galen-framework-js-project-structure/blob/master/specs/google.gspec)

After all is set, type ./run.sh in the terminal and the test will start.

##Contributing

This project is under the MIT License. So you can request to be a contributor if you think you can provide more extra functionalities just contact to the owner to start working with him.

galen-framework-js-project-structure's People

Contributors

agomezmoron avatar agommor avatar pmsobrado avatar

Watchers

 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.