Skip to content

Here you will find an structure with some additional functionalities in order to work with Galen Framework through the JS API.

License

Notifications You must be signed in to change notification settings

agomezmoron/galen-framework-js-project-structure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Here you will find an structure with some additional functionalities in order to work with Galen Framework through the JS API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published