Galen is a test framework originally designed for testing layout of web applications but is also a great tool for functional testing. When it comes to testing a responsive layout it works in a following way:
- Open a page in browser
- Resize it to specified size
- Test the layout according to user-defined specs
It uses Selenium for interacting with elements on page and getting their locations and dimensions.
Once it sees that something is wrong – Galen reports the error, makes a screenshot and highlights the misbehaving element on it.
Getting Started
Will help you to install Galen and configure it properly.
- Install Galen download and install the latest version of Galen
- Configuration configure Galen project
- Running Galen run sample project with Galen
- Configuring browsers setup different browsers like Chrome or PhantomJs
Complete Reference
- Galen Spec Language Guide complete list of all specs
- Galen Test Suite Syntax
- Working in Command Line execution and reporting from command line
- Galen Extras Lib
JavaScript Tests
- JavaScript Tests Guide a JavaScript framework for functional testing
- Galen JavaScript API global functions that are available for JavaScript tests
- GalenPages JavaScript API a lightweight functional JavaScript test framework for working with Page Objects model
Java Tests
- Java + Maven + TestNG + Galen how to use Galen inside Java tests
IDE Support
- Intellij Galen Specs language support (by Martin Reinhardt)
- Sublime syntax highlighter for Galen Framework v2+ (by David Rubio)
- Vim syntax highlighting and snippets
- Visual Studio Code galen syntax support (by Simon Dickson)
Video Tutorials
Other Tutorials
- First Project a short introduction to Galen specs
- Using Galen with a task runner run your specs from the command line with gulp or grunt
- TDD for Responsive Design. Or how to automate testing of website layout for different devices
- Testing colors on your website with Galen Framework
- Integrating Galen with BrowserStack run your galen tests on a cloud service
- More tutorials you can find on MindEngine.net
Comments
We have moved all the discussions to Google Groups. From this moment, if you have problems with your test code or some issues with installation, please ask your questions in https://groups.google.com/forum/#!forum/galen-framework.